blockchecks
Asynchronous DPI (Deep Packet Inspection) strategy testing framework for nfqws2 / zapret2.
It runs thousands of desync strategies against target domains inside isolated network namespaces, using a browser-grade TLS fingerprint (JA4 via curl_cffi), and reports which combinations actually work on a given network. Results are stored in SQLite and can be exported to ready-to-use nfqws2 configuration files for Keenetic / OpenWrt / Linux routers.
Features
- Fast: ~1 test/sec (33× faster than the reference
blockcheck.sh) via asyncio + a reused netns pool. - Accurate: browser-grade JA4 TLS fingerprint (Chrome BoringSSL), content validation, DPI fake-detection.
- TCP + UDP: TCP strategy families, HTTP :80, QUIC/HTTP3, and Discord Voice UDP endpoint discovery (STUN + IP Discovery).
- Resilient: checkpoint/resume, SQLite state, adaptive priority queue.
- Tooling: static strategy validator (offline, 9+ rules), custom Lua registry, MCP server for LLM agents.
- Portable: installs on x86_64, arm64 and armv7l (Raspberry Pi 2+) without compiling native dependencies.
Requirements
- Linux with root (needed for network namespaces + iptables)
- Python 3.10+
- nfqws2 / zapret2 (auto-fetched on first run)
Quick start
pip install blockchecks
# Smoke test — 20 strategies, adaptive queue + preflight ON by default
sudo bs scan -d discord.com --profile smoke --generate
# Full scan — ~30 strategies against discord.com
sudo bs scan -d discord.com --generate --parallel 4
# Resume after interruption (checkpoint/resume)
sudo bs scan -d discord.com --generate --resume
# Long-term mass campaign (20h series bundle)
sudo bs full --profile 20h
Run profiles (--profile smoke|fast|20h) bundle common flag sets for
scan, pair, and full. Protective features are ON by default — disable
with --no-adaptive, --no-preflight (or use --quick for prolog-only),
--no-ech, --no-wssize.
Export a router config
# default: ~/.local/share/blockcheckS/export/nfqws2_<ts>.conf (+ raw, user.list)
bc-nfconf --db logs/run.db --out-dir /path/to/out
# optional: add an IP filter from the DNS cache (no DNS needed on the router)
bc-nfconf --db logs/run.db --out-dir /path/to/out --ipset
Documentation
License
MIT — see LICENSE.
Disclaimer
This software is an open-source analytical tool for educational, academic and network-research purposes, intended for network administrators and systems engineers to study DPI behaviors. Use entirely at your own risk.
Metadata
Release files for blockchecks 1.4.1
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 |
|---|---|---|---|---|
| blockchecks-1.4.1.tar.gz | 471.4 kB | Without provenance | Details for blockchecks-1.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blockchecks-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for blockchecks-1.4.1-py3-none-any.whl |
Total release size: 977.7 kB
Release files / blockchecks-1.4.1.tar.gz
| Download URL | blockchecks-1.4.1.tar.gz |
|---|---|
| Size | 471.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cca923ceadb52b6cfb261407ebdee8993110043fd2f53fa09cac393481a6fdd
|
|
BLAKE2b-256 checksum How to use checksums |
59b164a0dd59d624a3d14f4453d55538ed5c3b9557a0ce4933e8a4e51076d81e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / blockchecks-1.4.1-py3-none-any.whl
| Download URL | blockchecks-1.4.1-py3-none-any.whl |
|---|---|
| Size | 506.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2e5eff00fe1e9368f8d70dfd9d739b767120b09c7504f1ea9dbe7a9ab0ac3dd
|
|
BLAKE2b-256 checksum How to use checksums |
2674db4e65f1d9962ed98db87daa5cdc50ba1391d5d1ac44849b0c16c7aa5317
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for blockchecks 1.4.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.