Database workings:
sudo mfsdb init
- Verify database connectivity in msfconsole:
db_status
#List workspaces:
workspace
#Enter workspace:
workspace <name>
#Create new workspace:
workspace -a <name>
#Scan hosts and save to database with db_nmap:
db_nmap <hostip>
#List discovered hosts:
hosts
#List discovered services:
services
#List services by port:
services -p <port>
#List credentials:
creds
Modules:
- Searching for module by type:
search type:auxiliary smb
info <module>
unset <option>
- List vulnerabilities detected from auxiliary:
vulns
Sessions:
sessions -l
sessions -i <id>
sessions -k
- Background session:
ctrl + z
- Run exploit in the background:
run -j