Snaffler
Table of Contents
Snaffler
Description
Snaffler is a "search-and-grab" tool built for the enumeration phase of a penetration test. Once an attacker or auditor has a foothold in a Windows domain, they use Snaffler to find the "low-hanging fruit" that administrators often leave behind in shared folders.
How it Works
Snaffler works by performing the following steps:
- Domain Discovery: It talks to the Domain Controller to get a list of all computers in the domain.
- Share Enumeration: It checks every computer to see what SMB shares are accessible with the current user's permissions.
- File Sifting: It crawls those shares, looking for filenames and file contents that match its Classifiers (rules).
Classifiers and Severity
Snaffler uses a ranking system to help you prioritize findings:
- 🔴 Black: Guaranteed win (e.g.,
id_rsaprivate keys,web.configwith cleartext DB passwords). - 🔴 Red: Very high chance of credentials (e.g.,
Keepassdatabases,unattend.xmlfiles). - 🟡 Yellow: Interesting files that might contain sensitive info (e.g.,
web.configwith encrypted strings). - 🟢 Green: Informational logs or interesting file names.
Examples
1. Basic Scan (All Domain Shares)
This command tells Snaffler to look through every share it can find in the current domain and print the results to the console.
# Run Snaffler and search all shares in the current domain .\Snaffler.exe -s