How to Install Metasploit on Termux: Step-by-Step Guide (2026)

The Metasploit-Framework is an essential and powerful tool used for security auditing and ethical hacking. In this guide, I will show you exactly how to install it on your Android phone using the Termux app.

New to this? Read our guide: What is Metasploit?

Prerequisites

  • Android Version: 5.0+ (Lollipop or higher)
  • Storage: Minimum 600MB of internal storage
  • App: Latest version of Termux

Installation Methods

We provide two ways to set up the framework. Method 1 is a manual script installation, while Method 2 (Recommended) uses the official Termux package library for stability.

Initial Setup

Before starting either method, update your Termux environment:

apt update && apt upgrade -y
cd $HOME


Method 1: Manual Script Installation

This method uses a community script to automate the build process.

1. Install Dependencies:

pkg install wget curl git -y

2. Download and Run the Script:

wget Auxilus.github.io/metasploit.sh
bash metasploit.sh

3. Launch: Once complete, simply type:

msfconsole

Method 2: Official Package Method (Recommended)

This is the cleanest and fastest way to install Metasploit directly from the Termux repositories.

1. Enable Unstable Repository:

pkg install unstable-repo

2. Install Metasploit:

pkg install metasploit

3. Open Framework:

msfconsole

Conclusion

Now that you have Metasploit successfully installed, you can begin exploring payloads and security testing. Stay tuned for our next tutorial on Hacking Android devices using Metasploit Payloads.


Frequently Asked Questions

Q: What are the requirements for Metasploit on Termux?

A: You need Android 5.0+, at least 600MB of internal storage, and the Termux app installed from F-Droid or Play Store.

Q: Which installation method is better?

A: Method 2 is better. Using pkg install ensures that dependencies are managed by the Termux team, leading to fewer errors.

Q: Why does msfconsole take a long time to start?

A: Metasploit is a heavy framework. On mobile devices, the first launch may take a minute as it initializes the database and modules.

Devesh Singh

I am Devesh Singh, Student in Varanasi India . I like to write blog on technology and ethical hacking and other tricks or solutions to problem that anyone face during using technology and Internet.

2 Comments

Post a Comment
Previous Post Next Post