This article covers how to install Metasploit Framework on Ubuntu 20.04 LTS OS. In fact, the Metasploit Framework is an open-source project that provides public resources for vulnerability research and code development. It allows security professionals to detect intrusions into their network and identify threats and vulnerabilities in various areas such as software, systems, or networks. Metasploit comes jam-packed with existing exploits but gives the framework to create your own custom exploits.
How to Access Metasploit Console ?
Metasploit provides a command-line utility called mfconsole to manage the Metasploit. You can access it using the following command:
You should see the Metasploit console.
Now, run the following command to show all available commands in msfconsole:
To display all available exploits, run the following command:
$ show exploits
To display all available payloads, run the following command:
$ show payloads
To show more information of any exploit, run the following command:
$ info exploit exploit-name
To show more information of any payload, run the following command:
$ info payload payload-name
To set the specific payload for your exploit, run the following command:
$ set PAYLOAD windows
To display all available target operating systems that can be exploited, run the following command:
$ show targets
To set your target's IP address, run the following command:
$ set RHOST target-ip-address
To set the local IP address for the reverse communications, run the following command:
$ set LHOST ip-address