Skip to main content

A Python CLI tool that mimics the Nmap network scanning utility

Project description

Xnmapy

A Python CLI tool that mimics the Nmap network scanning utility.

PyPI Python Ruff

Install

pip install xnmapy

Usage

from xnmapy import NmapScan, ScanOptions

options = ScanOptions(
    targets=["192.168.1.1"],
    ports="80,443",
    scan_type="SYN"
)
scan = NmapScan(options)
result = scan.run()
print(result.targets)
print(result.ports)

CLI

xnmapy --help
xnmapy -sS -p 80 192.168.1.1
xnmapy -v -A scanme.xnmapy.org

Development

git clone https://github.com/daedalus/xnmapy.git
cd xnmapy
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xnmapy-0.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xnmapy-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file xnmapy-0.1.0.tar.gz.

File metadata

  • Download URL: xnmapy-0.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xnmapy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8c98c5bccdd5fc5880f88093ed8cf6c08807ea7b92ca4628252b9d076c1b3330
MD5 15252624b148e22b314d0939ed527015
BLAKE2b-256 e48c70f7338da8ae9359bd0d778df1a58163437b7c7df5f8e9024e01636fd2e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xnmapy-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/xnmapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xnmapy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xnmapy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xnmapy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a53623cd7cffffaff7238dac5ccd2252721c1e60f629ff353b191ec94ef61c
MD5 2cb96636e060ee3d8d2c51e5ad4c0855
BLAKE2b-256 fc0169774d0415f1073a4a01a9b3e9d90b2db188fc3fb36a1e74c9625110eeae

See more details on using hashes here.

Provenance

The following attestation bundles were made for xnmapy-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/xnmapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page