File Sharing Enumeration
File share are the network file shares hosted on the machines that allow list and access the centralized resources over the network. The file sharing protocols in windows are SMB & in linux are NFS
The commands used to enumerate the file shares are as follows :
Showmount :
Installation :
sudo apt install nfs-common
Usage :
Usage: showmount [-adehv]
[--all] [--directories] [--exports]
[--no-headers] [--help] [--version] [host]
Mounting NFS Voulmes :
sudo mount -t nfs <IP>:<path> <local_path>
SMB Client :
Installation :
sudo apt install smbclient
Usage :
### Listing the SMB Shares :
smbclient -L //server_name_or_ip -U username
### Connecting to the SMB share :
smbclient //server_name_or_ip/share_name -U username
### Downloading files over SMB / Uploading files over SMB
smb: \> get remote_file_name local_file_name
smb: \> put local_file_name remote_file_name
### Anonymous loing over SMB
smbclient //server_name_or_ip/share_name -U ""
Last updated