Skip to main content

netrecon

Network reconnaissance toolkit — port scanning, service detection, OS fingerprinting, and vulnerability scanning. Async Python API wrapping nmap.

Install

pip install netrecon

Requires nmap installed on your system.

Quick Start

import asyncio
from netrecon import NetRecon

async def main():
    recon = NetRecon()
    result = await recon.quick_scan("192.168.1.1")
    print(result.summary())

asyncio.run(main())

Scan Types

recon = NetRecon()

# Quick scan — top 1000 ports
result = await recon.quick_scan("10.0.0.1")

# Full scan — all 65535 ports
result = await recon.full_scan("10.0.0.1")

# Vulnerability scan
result = await recon.vuln_scan("10.0.0.1")

# Stealth SYN scan
result = await recon.stealth_scan("10.0.0.1")

# UDP scan
result = await recon.udp_scan("10.0.0.1")

# Custom scan
result = await recon.scan("10.0.0.1", ports="80,443,8080", flags="-sV -O")

Working with Results

from netrecon import NetRecon

async def analyze():
    recon = NetRecon()
    result = await recon.scan("192.168.1.0/24")

    for host in result.hosts:
        print(f"{host.address} — {host.os_guess}")
        for port in host.open_ports:
            print(f"  {port.number}/{port.protocol} {port.service_name} {port.service_version}")

    # Summary
    print(result.summary())

    # Filter
    web_hosts = [h for h in result.hosts
                 if any(p.service_name in ('http', 'https') for p in h.open_ports)]

asyncio.run(analyze())

Custom Scanner

from netrecon import PortScanner

scanner = PortScanner()
result = scanner.scan_sync("10.0.0.1", ports="22,80,443")

CTF Mode

Built-in helpers for capture-the-flag competitions:

from netrecon import NetRecon

async def ctf_recon(target):
    recon = NetRecon()

    # Find all open services
    result = await recon.scan(target, ports="1-65535", flags="-sV -sC -O")

    # Look for interesting services
    for host in result.hosts:
        for port in host.open_ports:
            if port.service_version:
                print(f"[!] {port} — possible exploit target")

asyncio.run(ctf_recon("10.10.x.x"))

Requirements

  • Python 3.10+
  • nmap installed on your system (sudo apt install nmap)

License

MIT

Metadata

Release files for py-netrecon 0.1.0

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

Source distribution (sdist)

Source distribution for py-netrecon 0.1.0
File Size Uploaded Provenance Actions
py_netrecon-0.1.0.tar.gz 5.2 kB Without provenance Details for py_netrecon-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-netrecon 0.1.0
File Interpreter ABI Platform Actions
py_netrecon-0.1.0-py3-none-any.whl Python 3 none any Details for py_netrecon-0.1.0-py3-none-any.whl

Total release size: 11.0 kB

Release files / py_netrecon-0.1.0.tar.gz

Download URL py_netrecon-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7cfa777a93ab288a43c5d5c498cf0690810e71c5aab96ceb293a4c995b2f7481
BLAKE2b-256 checksum
How to use checksums
36eec533fbfd09ec6e4bdf3257fd9ee3df3003ad9407fdf2001ced166867ba91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / py_netrecon-0.1.0-py3-none-any.whl

Download URL py_netrecon-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7f3cdc3034161c8a18071fcc2665693a28d22fc04fde06eafe632d63c81bb9a
BLAKE2b-256 checksum
How to use checksums
eba19b7234338c304dac1cb1ea948c5ac13d638d557b7f22e7b9fc738da49ab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for py-netrecon 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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