Metasploit is the most popular penetration testing framework. It is the favourite tool of Ethical Hackers. There are many security researchers who use Kali Linux and Metasploit is pre-installed on Kali. Now you can use Metasploit in your Android device through Termux. Here is the complete guide to install Metasploit in Termux without root and without error.

Install Metasploit 6 in Termux Without Error

There are two methods to download the Metasploit Framework in Termux. You can use any method that you find convenient.

#1 Method to Install Metasploit in Termux

Following are the steps to download Metasploit in Termux:

  • Firstly, install Termux in your Android device from F-Droid.

  • Then enter the below commands in Termux for basic setup.
pkg update && pkg upgrade
termux-setup-storage
pkg install git curl wget ruby perl openssh
gem install lolcat nokogiri

  • After that, download the Metasploit file.
  • Next, copy the Metasploit file to Termux.
cd /sdcard/download
cp metasploit-framework-6.2.27.zip /data/data/com.termux/files/home

  • Afterwards, unzip the Metasploit file.
cd
cd metasploit-framework-6.2.27.zip
unzip metasploit-framework-6.2.27.zip

  • Now run the Metasploit framework.
cd metasploit-framework-6.2.27
ls
./msfconsole

#2 Method to Install Metasploit in Termux

If you do not find the first method convenient, then you can use the second method to install the Metasploit Framework. Follow the below steps to download Metasploit in Termux:

  • Firstly, install Termux in your Android device from F-Droid.
  • After that, enter the following commands
pkg update && pkg upgrade
termux-setup-storage
pkg install tar
pkg install axel
axel --alternate https://github.com/rapid7/metasploit-framework/archive/refs/tags/6.2.27.tar.gz
ls
tar -xf $HOME/metasploit-framework-6.2.27.tar.gz
ls
cd metasploit-framework-6.2.27
./msfconsole

Metasploit Installation Errors in Termux

During Metasploit installation, many people encounter errors. Below are the most common Metasploit installation errors:

Metasploit Bundle Install Error

Enter the below commands in Termux to fix the Metasploit bundle install error:

gem install bundle
bundle install

Spell Check Error in Termux

Termux users are experiencing spell check Error due to Bundler’s updated version being installed alongside an older version. Get rid of multiple versions of Bundler and keep the latest version to remove the spell check error.

First check Bundler versions by entering the below commands:

gem list | grep bundle

You can uninstall any bundler version by entering the below commands:

gem uninstall bundler --version 1.2.3

Don’t forget to replace the bundler version.

  • Then enter the below commands to update Bundler.
bundle update --bundler
gem update etc --default

Conclusion

I hope these methods work for you and you can install the Metasploit Framework in Termux. Whenever you encounter difficulties, please leave your question and query in the comments section below. You can also read our other Termux Tutorials.

We hope you enjoyed our article. We are always excited when one of our posts provides useful information on a topic like this. Please comment below if you want to give any feedback. We would love to hear from you! To stay connected with us join our Telegram channel.

How to Run Metasploit in Termux?

After installing the Metasploit, enter the ./msfconsole command in Termux to run the Metasploit.

How to Install Metasploit in Android?

You can install Metasploit in Android using Termux. Termux is a terminal emulator for Android device to run commands.