11 SMB Part 1
TCP ports 139, 445
Nmap Scripts make use of OS discovery and the various SMB enumeration scripts in particular to chcek for know SMB protocol vulnerabilities, you can invoke one of the nmap smb-vuln scripts e.g. nmap -v -p 139,445 --script=smb-vuln-ms08-067 --script-args=unsafe=1 10.11.1.201
View Shares
Connect to Shares
Download everything
smbmap
smbmap -H lists file shares and permissions there are also many other uses for the tool see the help page for more info
smbmap -R -H recursively list all files in folders in a share located on a specific system
smbmap -R Replication -H 10.10.10.100 -A Groups.xml -q download a file from the share
smbmap -d active.htb -u svc_tgs -p GPPstillStandingStrong2k18 -H 10.10.10.100
Metasploit
Enumerate SMB users
root@kali:/opt/impacket/examples# python3 lookupsid.py hazard:stealth1agent@10.10.10.149 Impacket v0.9.22.dev1+20201112.141202.d1ced941 - Copyright 2020 SecureAuth Corporation
Last updated
Was this helpful?