CryptoCodez | Advanced Penetration Testing | Module 3 - Metasploit

Metasploit
Update
msfupdate
Enable Services
service postgresql start
service metasploit start
or
systemctl enable postgresql.service
systemctl enable metasploit.service
Usage
msfconsole
msf> search string
msf> info exploit/windows/smb/string_bla
msf> use exploit/windows/smb/string_bla
set target
msf exploit( string_bla ) > set RHOST 192.168.1.176
msf exploit( string_bla ) > show payload
msf exploit( string_bla ) > set payload windows/shell/bind_tcp
msf exploit( string_bla ) > show options
msf exploit( string_bla ) > exploit
Metasploit (part 2) Fundamentals
ls /usr/share/metasploit-framework
for sourcecodes look in
/usr/share/metasploit-framework/modules