How To Install Metasploit In Android using Termux (without Root)

HeyπŸ™‹‍♂️, This Post is the most advanced post for termux and if you can learn it then you can do almost all sorts of things a beginner hacker should know. This is an advanced post on Metasploit. This tool is one of the most awesome things that you can use in termux so read it well πŸ”₯.

What is Metasploit?

Metasploit contains a lot of tools that allow you to test vulnerabilities and execute attacks on another system. it is one of the most used penetration testing tools. You can basically remotely access the victim's data.

How To Install Metasploit In Android using Termux (without Root) - 2021

How to install Metasploit on termux?

If you don't know about termux you can [read this blog].

  1. Your android version should be more than 5.0.
  2. Termux app: if you don't have termux app [DOWNLOAD TERMUX]
  3. Free space of 1GB on your device.

New Method To Install Metasploit in Termux :

A lot of you were facing issues with ruby 2 error in Metasploit. By using the below new method, you won't get any errors.  You just have to copy and paste the below command and it will install Metasploit for you.
pkg install wget && wget && chmod +x && ./ && cd metasploit-framework && gem update --system && bundle install && gem install bundler

Whenever you will get prompted with any input, just type y and press Enter. 

Old Method To Install Metasploit in Termux:

If you Don't want to read every detail about the installation just copy-paste one command at a time and hit enter and after completion of the process enter the second command or you can just download the file which will give you one command that will install everything for you.

Step 1:

Open the termux app and type or paste the below command to update and upgrade all the packages in the termux app.
pkg update && pkg upgrade
This command will update the termux so in the installation we don't get any error.

Step 2:

Now we will have to install some scripts and dependencies using the below command.
 pkg install git curl wget nmap -y 
we are installing 4 packages using a single command.
  • git will allow us to copy the files from the GitHub repository.
  • Wget will get the data from web servers.
  • curl stands for Client URL and it will allow transferring data using various protocols.
  • Nmap is a network mapper it's for network discovery.

Step 3:

Copy-paste this command and this command will Download the Metasploit in termux app.
curl -LO 
Please wait it can take some time to download.

Step 4:

We will use the chmod command to make the file executable.
chmod 777
If you will type ls you can see that the file will be green now

Step 5:

Type this command to install Metasploit on your system.
Now sit back and let the termux install the Metasploit on your Termux properly it can take a lot of time between 20-60 mins.

Check if Metasploit is properly installed or Not:

Just type the below command to run the Metasploit, It will take 20 to 60 Sec to open.
After opening the Metasploit it will show some type of logo and there will be M on that.

One Command Method to Download Metasploit:

If the above method is not working for you, You can download the given Pdf which contains all the methods for installing Metasploit using termux. It contains commands that will allow you to download Metasploit using a single command.

 Download One click commands to install Metasploit in termux


The above-given command is to install the Metasploit on the termux. The official site of Metasploit it here.If you are getting any error, you can comment. you can download the PDF, it will surely help you. if you save any suggestions just contact us.I will be happy to hear from you.

Suggested Post : Use Metasploit in Termux

Post a Comment


  1. Hello sir plz a video tutorial for the installation . Thanks

  2. your pdf file not download so many add

  3. Could not locate gem file error
    Pliz help. But thanx though

  4. Help me how to solve meterpreter session issues

  5. Successfully installed. Thanks for the cmnd

  6. thank you very much for the commands

  7. Can you help me install hydra on termux, since hydra no longer on repository


If you Wanna Learn about Termux and connect with more people like you then you can join our Discord Server Termux Discord Server