File Share Enumeration

Enum4Linux

enum4linux [TARGET_HOST]

SMB Client

# smbclient -L [UNC Path]
# The -L switch will list all of the SMB shares for a host
smbclient -L \\\\\\\\192.168.1.1\\\\
# Press enter to proceed if you see the ">" symbol
# Connecting to SMB Shares
# After listing the SMB Shares, use this to attempt to connect to SMB shares to gather more info
smbclient \\\\\\\\192.168.1.1\\\\ADMIN$

#Anonymous Login 
#anonymous:anonymous
smbclient \\\\\\\\192.168.1.1\\\\Anonymous

SMB Enumeration via Metasploit

# Use this to determine the SMB version that is running on the host
msfconsole
# search smb (use this if you are not sure what module to use)
use auxiliary/scanner/smb/smb_version
set RHOST 192.168.1.1
run

NFS - Listing File Shares

showmount -e 10.1.1.10

NFS - Mount File Shares

# mount -t nfs 10.1.1.10:[file-share-location] [local-dir]
mount -t nfs 10.1.1.10:/srv/nfs /mnt/shares

Last updated