NAME : Metasploit
REQUIRED_TERMINAL : Termux
What is Metasploit ?
Metasploit
is One of The Most Widely Used Penetration Testing Framework Used From
Corporate to Law Enforcement Agencies. Metasploit Comprises of Over
1500+ Modules That Deliver Functionalities Covering Every Phase of a
Penetration Test, Making the life of a Penetration Tester Comparatively
Easier.Not Only it Provides a Comprehensive and an Efficient Way of
Conducting a Penetration Test But Being an Open Source Framework, it
also Offers an Extensive Approach in Developing New Exploits and
Automating Various Tasks That Reduce Tons of Manual Efforts and Saves a
Great deal of Time.
Watch Video For Practical : https://youtu.be/2hegSa08g-0
[+] INSTALLATION [+]
HOW TO INSTALL METASPLOIT IN TERMUX ?
Requirements :
1. Your android version should be more than 5.0
2. Download the Termux App from Google PlayStore : ( DOWNLOAD TERMUX )
3. How to Download Termux - Watch Video 👈Click
3. Free space of 600 Mb on your device.
Open termux app and type these commands in it :
follow these termux metasploit commands to get started
Command 1 :
pkg update && pkg upgrade
Command 2 :
pkg install git curl wget nmap -y
Command 3 :
curl -LO raw.githubusercontent.com/Hax4us/Metasploit_termux/master/metasploit.sh
Please wait it can take some time to download.
Command 4 :
chmod +x metasploit.sh
Command 5 :
./metasploit.sh
These commands will install Metasploit-framework in your termux. Now sit back and take rest it will take approx 20-30 minutes to download and install in your android.
After installing you'll need to run the following termux metasploit commands to create a database schema and start your database server :
How to use metasploit in termux?
Command 1 :
msdb init
Command 2 :
systemctl start postgresql
After these start your metasploit-framework by type this command :
msfconsole

You can change the banner by typing this command :
banner
And you can check your connectivity of database server by typing this command :
db_status

GETTING HELP IN METASPLOIT :
Metasploit has lots of great documentation built-in. You can access this documentation by typing the "help" to get the basic list of commands.
help show

Help show will give you the help section of the show command. You can then pass additional queries, such as :
show exploits

It will give you the list of all the exploits available in Metasploit.
help search

"help search" will give you the help section for the search command.
HOW TO DO INFORMATION GATHERING USING METASPLOIT :
Use this command to show the list of all the port scanners :
search portscan

More examples of port-scanning remote machines and saving the output into the Metasploit database are here.
You can find all the basic information about the information gathering using Metasploit here.

SEARCHING EXPLOITS WITH METASPLOIT AND HOW TO USE :
There is also a way to search within msfconsole for the particular exploits you can see in the pictures.
1.

2.

3.

4.

From this LINK you can see the working of active and passive exploits with Metasploit.
HOW TO USE EXPLOITS IN METASPLOIT ?
Example :
use exploit/unix/webapp/php_eval
To get the full options to set in this exploit use this command :
show options
To get the information of the exploit use this command :
show info

To set the particular option in the exploit use this command :
set option_name

This command set your option and for running that exploit use this command :
exploit
💥 That's all, hope you guys like this information.💥