├── README.md └── android-msf /README.md: -------------------------------------------------------------------------------- 1 | # android-msf 2 | use metasploit framework with your android device *Without root 3 | # How to use? 4 | 1)Install Termux from Google Play : https://play.google.com/store/apps/details?id=com.termux 5 | 6 | 2)Open Termux and type these commands : 7 | 8 | Update Termux 9 | ```bash 10 | pkg update;pkg upgrade 11 | ``` 12 | Install git 13 | ```bash 14 | apt -y install git 15 | ``` 16 | Download the script 17 | ```bash 18 | git clone https://github.com/DevoOverkill9/android-msf.git;cd android-msf 19 | ``` 20 | Give execute permission 21 | ```bash 22 | chmod u+x android-msf 23 | ``` 24 | Start the script 25 | ```bash 26 | ./android-msf 27 | ``` 28 | 3)After Installing is done you can start your metasploit : 29 | ```bash 30 | msfconsole 31 | ``` 32 | Now you can hack from your pocket ;) 33 | -------------------------------------------------------------------------------- /android-msf: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/bash 2 | 3 | echo "[*]This might take a while.." 4 | 5 | pkg update;pkg upgrade;pkg install termux-tools 6 | 7 | apt -y install autoconf bison clang coreutils curl findutils git apr apr-util libffi-dev libgmp-dev libpcap-dev postgresql-dev readline-dev libsqlite-dev openssl-dev libtool libxml2-dev libxslt-dev ncurses-dev pkg-config postgresql-contrib wget make ruby-dev libgrpc-dev ncurses-utils termux-tools -y 8 | 9 | echo "[*]Downloading metasploit 4.14.28" 10 | curl -L https://github.com/rapid7/metasploit-framework/archive/4.14.28.tar.gz | tar xz 11 | 12 | cd metasploit-framework-4.14.28 13 | 14 | sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec 15 | 16 | sed -i 's/grpc (1.3.4)/grpc (1.4.1)/g' Gemfile.lock 17 | #Install bundler 18 | echo "[*]Installing bundler.." 19 | gem install bundler 20 | 21 | #Install nokogiri 22 | echo "nokogiri is installing......" 23 | gem install nokogiri -- --use-system-libraries 24 | 25 | #Install Network-Interface 26 | 27 | gem unpack network_interface -v 0.0.1 28 | cd network_interface-0.0.1 29 | sed 's|git ls-files|find -type f|' -i network_interface.gemspec 30 | curl -L https://wiki.termux.com/images/6/6b/Netifaces.patch -o netifaces.patch 31 | patch -p1 < netifaces.patch 32 | gem build network_interface.gemspec 33 | echo "network_interface is installing........" 34 | gem install network_interface-0.0.1.gem 35 | cd .. 36 | rm -r network_interface-0.0.1 37 | 38 | #Install gems 39 | gem unpack grpc -v 1.4.1 40 | cd grpc-1.4.1 41 | curl -LO https://raw.githubusercontent.com/grpc/grpc/v1.4.1/grpc.gemspec 42 | curl -L https://wiki.termux.com/images/b/bf/Grpc_extconf.patch -o extconf.patch 43 | patch -p1 < extconf.patch 44 | gem build grpc.gemspec 45 | echo "grpc is installing" 46 | gem install grpc-1.4.1.gem 47 | cd .. 48 | rm -r grpc-1.4.1 49 | 50 | #Bundle Install 51 | echo "bundle and all other dependencies are installing......" 52 | bundle install -j5 53 | 54 | #Fixing Shebang 55 | $PREFIX/bin/find -type f -executable -exec termux-fix-shebang \{\} \; 56 | cd metasploit-framework-4.14.28 57 | bundle 58 | cd .. 59 | touch msfconsole 60 | chmod 777 msfconsole 61 | echo "cd /data/data/com.termux/files/home/android-msf/metasploit-framework-4.14.28/" > msfconsole 62 | echo "./msfconsole" >> msfconsole 63 | cp msfconsole /data/data/com.termux/files/usr/bin/ 64 | echo "[+]Installing is Done :)" 65 | exec bash 66 | --------------------------------------------------------------------------------