pentesting, updated

Snaffler-NG

Snaffler-NG: crawls accessible SMB shares on a Windows domain and flags files likely to hold credentials or other sensitive data.

What it’s for

Find the “loot” on a domain fast: config files, scripts and documents sitting on SMB shares that carry passwords, keys or other sensitive data, ranked by how interesting they look.

Install

# https://github.com/SnaffCon/Snaffler-NG — run from a domain-joined or authenticated context
.\Snaffler-NG.exe -h

Common commands

Snaffler-NG.exe -s -d example.com                          # discover and snaffle all shares on the domain, print to screen
Snaffler-NG.exe -s -d example.com -o results.tsv -b         # write results to a file, add a little flavour to the log
Snaffler-NG.exe -s -o results.tsv -i computers.txt          # target specific hosts from a file instead of the whole domain
Snaffler-NG.exe -s -d example.com -m                        # mark dangerous shares found (e.g. everyone-writable)

Read the output ranked by colour/severity (shown inline, or sorted when read back from the TSV) — start with the findings it flags as black/red before wading through the rest.

Useful flags

FlagEffect
-sEnumerate shares automatically from the domain
-dTarget domain
-iRead target hosts from a file instead of discovering them
-oWrite results to a file (TSV)
-mFlag shares with dangerous permissions

Notes

Run it with whatever domain context you already have (even a low-privilege user) — share permissions are frequently far looser than the rest of the domain’s access control, and it’s often the fastest route from an initial foothold to a credential that goes further.

Used in

§ home
~/knubertus/home/
1,1 Top