Lab5.1 Metasploit Setup - adamcunningham9990/SEC335-Journal GitHub Wiki
Kali CLI tool used for exploits
sudo service postgresql start (if system has been turned off)
ss -ant check for pot 5432 listening
sudo msfdb init (Only if fresh install)
msfconsole to initialize
db_nmap <options> <hosts> export scan to database, use hosts or services to check
? for help
search <keywords> search for exploits
use <module path> in order to use the module
options or info to see options
set <variable> <value> to set option
unset <variable> to unset
exploit to launch
If you're using MySQL, commands must end with a ;
Remember to check if postgresql is started if database won't connect.