Skip to content
Home

From service version to working exploit

The workflow connecting enumeration results to an actual exploit: MSF search, searchsploit, Nessus, WMAP, db_autopwn.

msfconsole·1 min read··INE Certification

Once enumeration hands you a service name and exact version, the next step is verifying whether it’s actually exploitable.

1. Get the exact service and version

nmap -sS -sV -O <target_ip>

2. Search for a matching exploit

search type:exploit name:Microsoft IIS          # inside msfconsole
search cve:2017 platform:windows                # cve: field also filters by year
searchsploit "Microsoft Windows SMB"                          # exploit-db, offline
searchsploit "Microsoft Windows SMB" | grep -e "Metasploit"    # narrow to ones with a ready MSF module

3. Check before exploiting

Most exploit modules have a companion auxiliary/checker module.

auxiliary/scanner/smb/smb_ms17_010          # checks if vulnerable
exploit/windows/smb/ms17_010_eternalblue    # the actual exploit

Automation

load db_autopwn
db_autopwn -p -t
analyze
vulns

Broader scanning

When you want a full report rather than a targeted check:

ToolScopeNotes
NessusCVE-tagged vulnerabilities across the whole hostdb_import <nessus_output_file> pulls results into MSF once scanned
WMAPWeb applications, fully inside msfconsoleload wmap, then wmap_sites / wmap_targets / wmap_run