Metasploit cheatsheet
In this page, you will find notes that I have made for Metasploit.
Metasploit database
To create a database in Metasploit:
sudo service postgresql start
sudo msfdb init
sudo msfconsole
Db_status
msfconsole
workspace -h
workspace -a Useful database commands in Metasploit
Db_export -f xml database.xml
Db_import PATH/NMAP.xml
Db_connect
Db_import
Db_status
Db_nmap
Db_stats
//displays the hosts db column options
hosts -h
//filter on hosts column and show only selected fields
hosts -c address, os_flavor