Lab
- List all available shares on the samba server using Nmap script.
- List all available shares on the samba server using smb_enumshares Metasploit module.
- List all available shares on the samba server using enum4Linux.
- List all available shares on the samba server using smbclient.
- Find domain groups that exist on the samba server by using enum4Linux.
- Find domain groups that exist on the samba server by using rpcclient.
- Is samba server configured for printing?
- How many directories are present inside share “public”?
- Fetch the flag from samba server.
List Samba Shares with Nmap
nmap -p445 --script=smb-enum-shares 192.43.181.3
List Samba Shares with MSFconsole
use auxiliary/scanner/smb/smb_enumshares
List Samba Shares with Enum4Linux
enum4linux -S 192.43.181.3
List Samba Shares with SMBclient
smbclient -L 192.43.181.3 -N
Finding Domain Groups with Enum4Linux
enum4linux -G 192.43.181.3
Finding Domain Groups with RPCclient
rpcclient -U "" 192.43.181.3 -N
-
enumdomgroups
Check Samba for Printing with Enum4Linux
enum4linux -i 192.43.181.3
Check Number of Directories in /Public with SMBclient
-
smbclient //192.43.181.3/Public -N -
Flag: