Msfconsole
Installing Msfconsole
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
chmod 755 msfinstall && \
./msfinstallor we can use apt install method to download it on kali linux
sudo apt update
sudo apt install metasploit-frameworkManaging msfdb database
sudo /etc/init.d/postgresql start
sudo systemctl status postgresqlAfter starting the postgres sql we will setup the msf database using following commands
db_statusonce the connection to postgre is applied , You can use any of the following commands to manage the database:
msfdb init - It initializes the database on msfconsole
msfdb reinit β Deletes and re-initializes the database
msfdb delete β Deletes the database
msfdb start β Starts the database
msfdb stop β Stops the database
msfdb status β Shows the database status
msfdb run β Starts the database and runs msfconsole
These commands will efficently manage the console database and then we can enable history of queries & results on the msfconsole.
Example modules of MSF Console
Enumeration & Scanning Modules :
Version Scan :
Exploitation & Reverse Shell :
Last updated