How To Use Metasploit In Termux

Step by step guide on How To Use Metasploit In Termux
Metasploit

 Hello there, Techncyber readers,


In today's blog, I gonna tell you about Metasploit-framework means how to install it in Termux and how to use it.


metasploit

Metasploit was created by H.D. Moore in 2003 as a portable networking tool using Perl. Metasploit 3.0 began to include fuzzing tools, used to discover software vulnerabilities, rather than just exploits for known bugs. By 2007, the Metasploit Framework had been completely rewritten in Ruby.


In October21, 2009, the Metasploit Project announced that it had been acquired by Rapid7, a security company that provides unified vulnerability management solutions. Metasploit 4.0 was released in August 2011. 


Metasploit Framework is open-source and you can view their code repo here: https://github.com/rapid7/metasploit-framework 


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. 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 777 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 


 

metasploit

[*] Starting the Metasploit Framework console ...../




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 


metasploit

 

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 


metasploit

 

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


show exploits 


metasploit


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


help search 


metasploit

 

"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 


metasploit


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.

metasploit


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. 

metasploit


2. 

metasploit

3. 

metasploit

4. 

metasploit


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 


metasploit


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


set option_name 


metasploit


This command set your option and for running that exploit use this command : 


exploit 


 That's all, hope you guys like this information.


Also Read:

➤ How to use kali nethunter in termux

➤ How to install kali linux in termux


Thank You !!



Hello i am a Ethical Hacker and Cyber Security Researcher , working on this blog to share some knowledge with you all and make you updated with latest technology and cyber related news .

4 comments

  1. Sahi se command ko likh ....bahut saare wrong hai or ha update krte rhiyo apna blog ...
  2. It's not working Broh...
  3. An error occurred while installing pg (1.2.3), and Bundler
    cannot continue.
    Make sure that `gem install pg -v '1.2.3' --source
    'https://rubygems.org/'` succeeds before bundling.
    I'm facing this error can you please resolve it
    I'm trying again and again but its not working showing the same error
    1. I haven't installed it for a long time, while we update this tutorial, you can try with nethunter
Comments will be reviewed before publishing