Lab5.1 Metasploit Setup - adamcunningham9990/SEC335-Journal GitHub Wiki

Metasploit Setup

Kali CLI tool used for exploits

Initialization

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

Scanning/Searching

db_nmap <options> <hosts> export scan to database, use hosts or services to check

? for help

search <keywords> search for exploits

Configuration

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

Tips/Tricks

If you're using MySQL, commands must end with a ;

Remember to check if postgresql is started if database won't connect.

⚠️ **GitHub.com Fallback** ⚠️