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

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.7.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.7.1
File Size Uploaded Provenance Actions
snaffler_ng-1.7.1.tar.gz 123.0 kB Without provenance Details for snaffler_ng-1.7.1.tar.gz

Built distribution (wheel)

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

Total release size: 277.8 kB

Release files / snaffler_ng-1.7.1.tar.gz

Download URL snaffler_ng-1.7.1.tar.gz
Size 123.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9f1110ae7f352754e1ef76e06ef61627a734e875a8f167622f67f970dd710b67
BLAKE2b-256 checksum
How to use checksums
4c6f2de80099e4e631d182a29bd36d5916c420e415faec9b0a5365d9dbc68e0f
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.1-py3-none-any.whl

Download URL snaffler_ng-1.7.1-py3-none-any.whl
Size 154.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
327946a2b0d054891d46c5f14b202d048927b11803b51b47d1e8f5f915d5c8cb
BLAKE2b-256 checksum
How to use checksums
23f50ba2227028b4890d385733d3c59e5f3b6a49d5fbb05f1f35199746a95c5f
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.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