pydivert

v4.0.1 safe
3.4
Low Risk

Python binding to WinDivert (Windows) and eBPFDivert (Linux) for packet capture, filtering and injection

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 10 test file(s) found

  • Test runner config found: conftest.py
  • Test runner config found: pyproject.toml
  • 10 test file(s) detected (e.g. __init__.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (9978 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 184 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • srv.listen(1) with socket.create_connection(("127.0.0.1", port), timeout=5) as c: conn, _ =
  • FLAGS) as w: with socket.create_connection(("127.0.0.1", port), timeout=5): pass
  • issionError): socket.create_connection(("127.0.0.1", port), timeout=5) with socket.create_c
  • ort), timeout=5) with socket.create_connection(("127.0.0.1", port), timeout=5): pass with p
  • _FLAGS) as w: c = socket.create_connection(("127.0.0.1", port), timeout=5) a, _ = srv.accep
  • ion} from {url}...") with urllib.request.urlopen(url) as response: with zipfile.ZipFile(io.By
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • bytearray( b"\x45\x00\x00\x20\x00\x01\x00\x00\x40\x11\x00\x00\x7f\x00\x00\x01\x7f\x00\x00\x01" b"\x12\x34\xd9\x04\x00\x0c\x00\x00" + b"da
  • rnet_checksum(): data = b"\x45\x00\x00\x1c\x17\xed\x40\x00\x40\x01\x00\x00\x7f\x00\x00\x01\x7f\x00\x00\x01" # Internet checksum for IP header with zero checksum f
  • der_properties(): raw = b"\x45\x00\x00\x1c\x17\xed\x40\x00\x40\x01\x00\x00\x7f\x00\x00\x01\x7f\x00\x00\x01" p = pydivert.Packet(raw) assert p.ipv4 is not None
  • _truncated_tcp(): raw = b"\x45\x00\x00\x28\x00\x00\x00\x00\x40\x06\x00\x00\x7f\x00\x00\x01\x7f\x00\x00\x01" p = pydivert.Packet(raw) assert p.ipv4 is not None
  • t_none_headers(): raw = b"\x45\x00\x00\x14\x00\x00\x00\x00\x40\xfe\x00\x00\x7f\x00\x00\x01\x7f\x00\x00\x01" p = pydivert.Packet(raw) assert p.ipv4 is not None
  • flect is None raw_v4 = b"\x45\x00\x00\x1c\x00\x00\x00\x00\x40\x01\x00\x00\x7f\x00\x00\x01\x7f\x00\x00\x01" raw_v4 += b"\x08\x00\x00\x00\x00\x00\x00\x00" # Echo
⚠ Shell / Subprocess Execution score 8.0

Found 4 shell execution pattern(s)

  • or not exist subprocess.run([sc_path, "stop", "WinDivert"], capture_output=True, check=F
  • a clean state subprocess.run([sc_path, "delete", "WinDivert"], capture_output=True, check
  • list) else cmd}") return subprocess.run(cmd, cwd=cwd, shell=shell, check=check) def ensure_host_de
  • ETS[target]) result = subprocess.run([sys.executable, script_path], check=False, env=env)
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with pydivert
Build a simple Python application using the pydivert package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!