ποΈ Database
π‘ Purpose
βοΈ Setting Up the Database
1. Check PostgreSQL status
sudo service postgresql status2. Start PostgreSQL
sudo systemctl start postgresql3. Initialize the Metasploit database
sudo msfdb initsudo apt update && sudo apt upgrade
sudo msfdb init4. Check database status
5. Run Metasploit with DB connected
π¬ Inside msfconsole
msfconsoleπ Check DB Connection
π Reinitialize DB (if needed)
π Workspaces
π§ Usage
π₯ Import Nmap Scans
Preferred format: .xml
.xmlπ Using db_nmap directly
db_nmap directlyπΎ Exporting Data
π§ Key Commands
hosts β Manage discovered hosts
hosts β Manage discovered hostsservices β View open services
services β View open servicescreds β Manage credentials
creds β Manage credentialsloot β View captured data
loot β View captured dataLast updated