Scanning/Spraying
Finding your attack surface and testing credentials
export DC=10.10.10.10
export DOMAIN=domain.tldAnonymous logins
# SMB (port 139,445)
smbclient -L //$IP -U % # Empty username and password
smbclient -L //$IP -U " "%" " # Space as username and password
smbclient -L //$IP -U guest% # 'guest' username and empty password
# LDAP (port 389,636)
ldapsearch -h $IP 389 -x -s base -b '' "(objectClass=*)" "*" +# # FTP (port 21)
$ ftp $IP
220 Rebex FTP Server ready.
Name ($IP:user): anonymous
331 Password required for 'anonymous'.
Password: [email protected]
230 User 'anonymous' logged in.
> Scanning & Networking
Spraying
Enumerating usernames
Kerberos user enumeration
LDAP query
Spray passwords
Brute Forcing

Enumerating access
Enumeration
SMB (139, 445)
RPC (139)
rpcclientLDAP (389, 636)
Last updated
