% smb, file-shares, lateral-movement # Snaffler - search SMB shares for sensitive data Snaffler.exe -s -o $ output_file: echo "snaffler_results.txt" # Snaffler with specific share Snaffler.exe -s -d -u -p -c $ domain: echo -e "CORP\nDOMAIN" $ username: echo "user" $ password: echo "password" $ computer: echo -e "DC01\nFS01\nSRV01" # Manspider - spider SMB shares manspider -d -u -p -e $ target_file: echo -e "targets.txt\nhosts.txt" $ domain: echo -e "CORP\nDOMAIN" $ username: echo "user" $ password: echo "password" $ extensions: echo -e "xlsx,docx,pdf\ntxt,config,ps1" # Manspider search for keywords manspider -d -u -p -c $ target_file: echo "targets.txt" $ domain: echo "CORP" $ username: echo "user" $ password: echo "password" $ keyword: echo -e "password\nssn\ncreditcard\napi_key" # PySnaffler - Python version of Snaffler pysnaffler.py -t -u -p $ target: echo -e "192.168.1.10\nFS01.corp.local" $ username: echo "user" $ password: echo "password" # SnafflePy - search SMB shares snafflepy.py -d -u -p -t $ domain: echo -e "CORP\nDOMAIN" $ username: echo "user" $ password: echo "password" $ target: echo -e "192.168.1.10\nFS01" # FSRM (File Server Resource Manager) - Windows built-in # Check FSRM quota fsutil quota query $ drive: echo -e "C:\nD:\nE:" # List SMB shares with smbclient smbclient -L // -U % $ target: echo -e "192.168.1.10\nFS01.corp.local" $ username: echo "user" $ password: echo "password" # Mount SMB share mount -t cifs /// -o username=,password= $ target: echo -e "192.168.1.10\nFS01" $ share: echo -e "Share\nData\nBackup" $ mount_point: echo -e "/mnt/share\n/tmp/mount" $ username: echo "user" $ password: echo "password" # Enumerate shares with NetExec nxc smb -u -p --shares $ target: echo -e "192.168.1.0/24\n10.0.0.1" $ username: echo "user" $ password: echo "password" # Spider shares with NetExec nxc smb -u -p -M spider_plus $ target: echo -e "192.168.1.10\nFS01" $ username: echo "user" $ password: echo "password"