139,445 - SMB Pentesting
Configuration File
cat /etc/samba/smb.conf | grep -v "#\|\;"
smbclient -N -L //10.129.14.128 # List server shares , null session (-N), which is anonymous access without the input of existing users or valid passwords
smbclient //10.129.14.195/someshareFootprinting
sudo nmap 10.129.14.128 -sV -sC -p139,445
smbclient //<target>/<share$> -U username%passwordRCP (Remote Procedure Call)
rpcclient -U "" 10.129.14.128
srvinfo #Server information.
enumdomains #Enumerate all domains that are deployed in the network.
querydominfo #Provides domain, server, and user information of deployed domains.
netshareenumall #Enumerates all available shares.
netsharegetinfo #<share> Provides information about a specific share.
enumdomusers #Enumerates all domain users.
queryuser <RID> #Provides information about a specific user.
querygroup <RID>Brute Forcing users ID
Other Tools
Last updated