Samba Recon: Basics
Lab Environment
In this lab environment, you will be provided with GUI access to a Kali machine. The target machine will be accessible at demo.ine.local.
Objective: Answer the following questions:
Find the default tcp ports used by smbd.
Find the default udp ports used by nmbd.
What is the workgroup name of samba server?
Find the exact version of samba server by using appropriate nmap script.
Find the exact version of samba server by using smb_version metasploit module.
What is the NetBIOS computer name of samba server? Use appropriate nmap scripts.
Find the NetBIOS computer name of samba server using nmblookup
Using smbclient determine whether anonymous connection (null session) is allowed on the samba server or not.
Using rpcclient determine whether anonymous connection (null session) is allowed on the samba server or not.
Tools
Nmap
Metasploit
nmblookup
smbclient
rpcclient
Writeup
Default TCP Ports Used by smbd
smbd
Default UDP Ports Used by nmbd
nmbd
Workgroup Name of Samba Server
Exact Samba Version (Nmap)
Exact Samba Version (Metasploit)
NetBIOS Computer Name (Nmap)
NetBIOS Computer Name (nmblookup
)
nmblookup
)Check Anonymous Login (smbclient
)
smbclient
)Check Anonymous Login (rpcclient
)
rpcclient
)Last updated