1. Port Scanning & Database Management

Port Scanning

  1. List scanning modules:
  2. Key Port Scan Options:
  3. Direct Nmap Usage:

Database Management

systemctl start postgresql

  1. msfdb init
  2. Workspace Management:
  3. Database Features:

2. Exploit Usage & Payload Management

Exploit Workflow

  1. Search for exploits: search [term]
  2. Get exploit info: info [exploit_path]
  3. Select exploit: use [exploit_path]
  4. Configure options: show options
  5. Set required parameters: set [option] [value]

Payload Management

  1. List compatible payloads:
  2. Payload Selection:

Example Exploit Execution (MS17-010 EternalBlue):