snaffler-ng
Reimplementation of Snaffler.
snaffler-ng is a post-exploitation tool that discovers readable SMB shares, walks directory trees, and identifies credentials and sensitive data on Windows networks.
Unlike the original C# Snaffler which is limited to Windows SMB with NTLM, snaffler-ng adds Kerberos authentication, FTP server scanning, local filesystem scanning using the same rule engine, and Python C2 integration bindings.
Install
# Kali Linux
sudo apt install snaffler-ng
# pip / pipx (Python 3.11+)
pip install snaffler-ng
pipx install snaffler-ng
Pre-built binaries (no Python required) are available on the Releases page for Linux x86_64, Linux aarch64, and Windows x86_64.
Optional extras:
pip install snaffler-ng[socks] # SOCKS proxy support
pip install snaffler-ng[web] # live web dashboard
pip install snaffler-ng[7z,rar] # 7z/RAR archive peeking
Quick Start
# Full domain discovery
snaffler -u USER -p PASS -d DOMAIN.LOCAL
# Kerberos with ccache
snaffler -k --use-kcache -d DOMAIN.LOCAL --dc-host CORP-DC02
# Scan specific UNC paths
snaffler -u USER -p PASS --unc //10.0.0.5/Share --unc //10.0.0.6/Data
# Local filesystem (no auth needed)
snaffler --local-fs /mnt/share
# FTP server (anonymous)
snaffler --ftp ftp://10.0.0.5
# Pipe from NetExec
nxc smb 10.0.0.0/24 -u user -p pass --shares | snaffler -u user -p pass --stdin
# Fast mode — skip time-waster directories, interleave share walking
snaffler -u USER -p PASS -d DOMAIN.LOCAL --fast
Documentation
| Guide | Description |
|---|---|
| Targeting Modes | Domain discovery, UNC paths, FTP, local filesystem, NetExec pipe, rescan, bulk download |
| Filtering | Share/path exclusions, depth limits, severity levels, regex post-filter |
| Output | Formats (plain/JSON/TSV), resume, results query, export/import, web dashboard, archive peeking |
| Authentication & Network | NTLM, Kerberos, pass-the-hash, SOCKS proxy, custom DNS, stealth mode |
| Performance | Fast mode, thread tuning, scanning limits |
| Library API | Python API, C2 integration, two-phase classification, custom transports |
| Custom Rules | TOML rule format for extending the built-in 106-rule set |
Library API
from snaffler import Snaffler, FileCheckStatus
s = Snaffler()
check = s.check_file(path, size=4096, mtime_epoch=1700000000.0)
if check.status == FileCheckStatus.NEEDS_CONTENT:
result = s.scan_content(file_bytes, prior=check)
elif check.status == FileCheckStatus.MATCHED:
result = check.result # matched on filename alone
See Library API docs for walk examples, custom transports, and constructor parameters.
License
Apache-2.0
Metadata
Release files for snaffler-ng 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snaffler_ng-1.7.0.tar.gz | 121.5 kB | Without provenance | Details for snaffler_ng-1.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snaffler_ng-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for snaffler_ng-1.7.0-py3-none-any.whl |
Total release size: 273.7 kB
Release files / snaffler_ng-1.7.0.tar.gz
| Download URL | snaffler_ng-1.7.0.tar.gz |
|---|---|
| Size | 121.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a5d1722502895dd65791a522e63ab8ee7c1cf7d00bd65fa5850f55828fda419
|
|
BLAKE2b-256 checksum How to use checksums |
8183e1c0c2859eb71a061f534e60513b25bd2d8701bd4ba0de215832ae85f14f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / snaffler_ng-1.7.0-py3-none-any.whl
| Download URL | snaffler_ng-1.7.0-py3-none-any.whl |
|---|---|
| Size | 152.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cfd71bf7bb2b054aa64b2c6e328071a4b2c95a2804b6d06c1e22d6286920fab
|
|
BLAKE2b-256 checksum How to use checksums |
523c78cc3193c8d9dea8bb1241953656e664b86cb0376fb3e73bb9fd332e68b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for snaffler-ng 1.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.