101
Setup
Database
Metasploit Framework (MSF) in Kali Linux doesn't start its database (PostgreSQL) by default, but it’s useful for storing target data and tracking exploits.
# Initialize database
sudo msfdb init
# Start PostgreSQL service
sudo service postgresql start
# Launch MSF Console
sudo msfconsole -q
# Check database connection
msf6 > db_status
[*] Connected to msf. Connection type: postgresql.Workspaces
MSF uses workspaces to separate different tests and avoid data mix-up.
Scan results will now be saved in the selected workspace.
Modules
MSF includes modules for various purposes, categorized for ease of use.
Auxiliary
Auxiliary modules perform tasks like scanning, fuzzing, and enumeration.
Exploit
Exploit modules in MSF target specific vulnerabilities in applications or services. Key Features:
Database Integration: Automatically tracks targets, services, and vulnerabilities.
Reliability: Repeatable sessions for stable access.
Payload Flexibility: Users can select payloads based on the exploit.
Sessions & Jobs
Sessions manage interactions with successfully exploited targets. Jobs run in the background.
Inline Commands
Last updated
Was this helpful?