1. MSF Setup


Database workings:

sudo mfsdb init
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:

search type:auxiliary smb  
info <module>
unset <option>
vulns

Sessions:

sessions -l
sessions -i <id>
sessions -k
run -j