This review gives an overview of the Metasploit Termux app for Android. It also shows you how to install Metasploit 6 in Termux.
In this guide, We will learn how to install the Metasploit in Termux. Installing Metasploit in Termux is a very straightforward process. Before getting started, we must know about Metasploit.
What is Metasploit?
With Metasploit, you can create, test, and run exploits. Through Metasploit, you can find vulnerabilities in the system by doing penetration testing. If you want to be an ethical hacker, You must see the best hacking tools for Termux.
Metasploit is the most important and famous hacking tool for cybersecurity experts. Thousands of exploits are available in its database. You can use these exploits to perform hacking/penetration testing on the system. The system can be Android, macOS, Windows server, etc.
Exploits for every system are available in Metasploit. Such capabilities make Metasploit the best penetration testing tool. Almost all cybersecurity experts use this tool to perform penetration testing.
You can use Metasploit to exploit vulnerabilities in a system. Metasploit is available for the Termux, Linux, Mac, and Windows operating systems. Looking for a Metasploit payload generator, check this Metasploit payload generator. By using Termux, you can install the Metasploit framework on your Android mobile. It will be easier for you to carry such a powerful tool in your handset. If you are looking for Termux scripts, then check this out. We cannot take our laptops everywhere to perform penetration testing. But we can take our Android device wherever we want, So let's see how to install the Metasploit in Termux.
How to install Metasploit in Termux
Here is the procedure on how to install the Metasploit hacking app in Termux.
Open your Termux and upgrade your repositories by using the following command.
pkg update && pkg upgrade -y
pkg install unstable-repo
pkg install metasploit
Termux will install other packages required to run Metasploit. The extra package includes Ruby, BisonFTP, etc.
The installation process may take some time. Do not close the Termux session until the completion of the installation.
Run the Metasploit
You can now run and use the Metasploit framework on your Android device via the Termux. Type the below command to run the Metasploit in Termux.
msfconsole
The first time it will take time to load because Metasploit is initializing the database. So wait for the process to finish.
Tip: If you are not running Metasploit for the first time, make sure to run the PostgreSQL. Through PostgreSQL, Metasploit runs quicker.
Make sure Postgresql is working.
Metasploit uses the PostgreSQL database as its database. It is to speed up the execution process of the commands that you type in Metasploit. Metasploit can run without Postgresql, but the problem is you will get a late response.
Make sure to run Postgresql before running the Metasploit. To check whether Postgresql is running or not, you can use the following command.
pg_ctl -D $PREFIX/var/lib/Postgresql status
You will get the following output if Postgresql is already running.
pg_ctl: server is running (PID: 9023 ) /data/data/com.termux/files/usr/bin/postgres "-D" "/data/data/com.termux/files/usr/var/lib/postgresql"
pg_ctl: no server running
Now let's see how to start PostgreSQL.
Use the following command to start the PostgreSQL.
pg_ctl -D $PREFIX/var/lib/postgresql start
Use the following command to stop the PostgreSQL.
pg_ctl -D $PREFIX/var/lib/postgresql stop
You can watch the below YouTube video on how to install the Metasploit framework in Termux.
Do you want to get more Termux packages? Then check the list of best Termux packages.
Method 2: How to install Metasploit in Termux using Github
It is the second method on how to install Metasploit in Termux using Github. To install Metasploit in Termux using GitHub, please follow the below-mentioned step. And after typing each command, you must wait until the command gets executed.
In the first step, we have to update our Termux repository. Use the below command to update the Termux repository.
pkg update && pkg upgrade -y
After updating the Termux repository, our next step is to install Metasploit requirements.
pkg install wget curl openssh git -y
Type the below command in your Termux to install Ncurses-utils
apt install ncurses-utils
Copy and paste the below command in your Termux to download Metasploit.
wget https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh
chmod +x metasploit.sh
./metasploit.sh
bash metasploit.sh
After the installation, launch the Metasploit by using this command:
msfconsole
Want to know more about Termux? Read this article on Termux full tutorial with complete Termux commands. If you bored with the Termux? Try some Termux alternatives.
Install more great tools for Termux:
Conclusion
In this article, we have learned how to install Metasploit Framework in Termux. Metasploit has great exploits present in its database. New Exploit added in Metasploit as new vulnerability comes in the systems.
You will not face any error if you read the full article. If you encounter an error in installing Metasploit, contact me by commenting below.
bhai metasploit me gem ka error aa rha h koi server ka issue h kya kyuki mane apna mobile tak reset kr diya h but ye problem dobara aa rhi h or pkg intall metasploit krne per work nahi kr rha
ReplyDeleteTry installing manually using GitHub method.
DeleteSir i also try second method but it was show me ruby version issue.
ReplyDeleteWhat i do now ? Responxe me plz
As soon as
Thanq
Even me
DeleteUpdate Ruby with pkg update Ruby
DeleteCould not find Ascii85-1.1.0 in any of the sources
ReplyDeleteUnable to locate package ruby2
ReplyDeleteinstall termux black then install ruby2
DeleteUnable to locate package ruby2
ReplyDeleteHola si se me instalo ahora como uso metasploit
ReplyDeleteAaah maaaaaaan you are "el puto amo" thank you so much!!!!!! You're the best and from now my herooooooo
ReplyDeletebro you are the fucking best one to tell the whole process step by step
ReplyDeleteGood job bro and Keep helping people like this
ReplyDeleteCan you tell me how to install nmap bro..
ReplyDelete================= *** Installation... =================
ReplyDeletemetasploit.sh: line 74:
gem: command not found metasploit.sh: line 77: gem: command not found
metasploit.sh: line 79: gem: command not found
metasploit.sh: line 80: bundle: command not metasploit.sh: line 81: bundle: command not found
found
metasploit.sh: line 82: bundle: command not found
metasploit.sh: line 93: termux-elf-cleaner: command not
found
============ *** Database configuration...
metasploit.sh: line 101: initdb: command not found metasploit.sh: line 103: pg_ctl: command not found
metasploit.sh: line 104: createuser: command not found
metasploit.sh: line 105: createdb: command not found
What can I do now🤔🤔
Post a Comment