Skip to main content

snaffler-ng

Kali Linux PyPI License

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
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

snaffler-ng run

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.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snaffler-ng 1.6.1
File Size Uploaded Provenance Actions
snaffler_ng-1.6.1.tar.gz 119.9 kB Without provenance Details for snaffler_ng-1.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snaffler-ng 1.6.1
File Interpreter ABI Platform Actions
snaffler_ng-1.6.1-py3-none-any.whl Python 3 none any Details for snaffler_ng-1.6.1-py3-none-any.whl

Total release size: 270.5 kB

Release files / snaffler_ng-1.6.1.tar.gz

Download URL snaffler_ng-1.6.1.tar.gz
Size 119.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51167a08974759abca67b7505a696f2f7b8c0e921b84c65dcbf279b9c40f193e
BLAKE2b-256 checksum
How to use checksums
757285f3bca21ab83048028e26defd9d61a9d3eac6b83d33b708b964916986c0
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.6.1-py3-none-any.whl

Download URL snaffler_ng-1.6.1-py3-none-any.whl
Size 150.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f146bad06a46cad64a75d8639d4f0c1fbe35751609cea1127afb9000d554b692
BLAKE2b-256 checksum
How to use checksums
9b5e597a40467c8f2ad41bebb0761301d9d91440c0bd8a807ad2bc95e2417480
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.6.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page