HOW TO Install Metasploit Framework on Android | Part #1 - in TermuX

Hello My friends, 

In this Thread, I`m gonna show you how to install Metasploit Framework in TermuX. You can use it for Android to Android/Windows hacking. It is the best way to hack another android like WATCH_DOGS Style :)

So, lets start...

Requirements

1). Android 5.0 + (unfortunately older version are not supported)
2). TermuX (Download it from Google Play or Play Store)
3). About 1GB of internal storage (For proper installation of Metasploit)

Step 1
Installation of TermuX

Install TermuX from Google Play or Download latest APK file from HERE.

After Installing TermuX , follow these steps :

Step 2
Installing a Script for Metasploit

To install Metasploit-Framework in TermuX, enter the following commands carefully and one by one in the TermuX (After entering a single command line, don`t forget to press enter, and wait for the process to complete if any).

First of all, we have to install WGET script, for this, enter:

pkg install wget

— This is required to download script


(Wait till it is Completely installed)

Now we have to go to HOME directory, for this enter:

cd $HOME


Now, we have to install a script for Completely Installing All-in-One Metasploit Package. For this, enter:

wget Auxilus.github.io/metasploit.sh


Step 3
Installing Metasploit Framework

To run the newly installed script for installing Metasploit Framework, enter this command:

bash metasploit.sh


This script will install the latest version of Metasploit-Framework script also include some extras to make updating Metasploit faster. If all goes well, i.e. No red colored warnings, you can start Metasploit using the following simple steps:First we have to go to the Metasploit directory (If you recently installed Metasploit, you don`t have to follow this step) by typing this:

cd metasploit-framework


Now to run Metasploit, enter this command (anywhere, because shortcut is created by the Script) :

msfconsole


No Luck !?

If the above method is causing any errors or something like it, then use the following other (one-step) commands to install Metasploit:

All.in.One Script of Hax4Us :

pkg upgrade && pkg install git && pkg install curl && pkg install wget && pkg install nmap && curl -LO raw.githubusercontent.com/Hax4us/Metasploit_termux/master/metasploit.sh && chmod 777 metasploit.sh && ./metasploit.sh

— Thanks To : OMM


V3rluchie's Method :

pkg upgrade && pkg install curl && pkg install wget && pkg install git && git clone github.com/verluchie/termux-metasploit && chmod 777 termux-metasploit/install.sh && sh termux-metasploit/install.sh

— By V3rluchie


Tech-X3 's Trick

apt update && apt upgrade && apt install curl && curl -LO raw.githubusercontent.com/1Tech-X/Metasploit-4.16.12/master/metasploit.sh&& chmod 777 metasploit.sh && sh metasploit.sh

— This script will not create any shortcut commands


???... A Common Problem ...???

Some people are experiencing this problem, that they are not able to open metasploit framework console via msfconsole command. So, I`ve made two solutions for that.1). Manual Way

Just open a New Session and go to metasploit-framework directory, and enter ./msfconsole command, Like This (same for msfvenom):

cd metasploit-framework
./msfconsole
OR
./msfvenom

— 1st command will take U 2 the MSF Directory, and 2nd 1 is 2 start MSF.


2). Shortcut Method

Those people who are not satisfied with the first one, and want to create a shortcut command, as the other programs set, enter the following commands one by one in a new session (msfvenom included):

ln -s /data/data/com.termux/files/home/metasploit-framework/msfconsole
mv msfconsole $PREFIX/bin

ln -s /data/data/com.termux/files/home/metasploit-framework/msfvenom
mv msfvenom $PREFIX/bin

— This process is also called Symlinking [Updated]


Note:-

This Thread is created for education purposes only. I`ll not be responsible of any Illegal use of this information.

If you have any problems or getting any type of error or you think that I`ve missed something , then please inform me in Comments Section. I`ll fix that soon...

Moreover, this Guide is originally taken from TermuX Official Website , for more information (specially for manual installation of Metasploit on TermuX) visit their Official website.