Skip to content
Home

db_autopwn: automatic exploit matching in Metasploit

Match every open port already stored in the MSF database against known exploit modules automatically.

msfconsole·1 min read··INE Certification

db_autopwn isn’t built into modern Metasploit by default — it’s a plugin that needs installing, but once loaded it automates matching open ports on a target against known Metasploit modules.

Install

wget https://raw.githubusercontent.com/hahwul/metasploit-autopwn/master/db_autopwn.rb
sudo mv db_autopwn.rb /usr/share/metasploit-framework/plugins/

Usage (inside msfconsole)

load db_autopwn
db_autopwn -p 445 -t     # enumerate matching exploit modules for one port
db_autopwn -p -t         # do it for every open port already in the DB
analyze
vulns