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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c98c5bccdd5fc5880f88093ed8cf6c08807ea7b92ca4628252b9d076c1b3330
|
|
| MD5 |
15252624b148e22b314d0939ed527015
|
|
| BLAKE2b-256 |
e48c70f7338da8ae9359bd0d778df1a58163437b7c7df5f8e9024e01636fd2e6
|
Provenance
The following attestation bundles were made for xnmapy-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/xnmapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xnmapy-0.1.0.tar.gz -
Subject digest:
8c98c5bccdd5fc5880f88093ed8cf6c08807ea7b92ca4628252b9d076c1b3330 - Sigstore transparency entry: 1202669390
- Sigstore integration time:
-
Permalink:
daedalus/xnmapy@bd6bdb930d8cf2063589461c0311a20438b69fd3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@bd6bdb930d8cf2063589461c0311a20438b69fd3 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a53623cd7cffffaff7238dac5ccd2252721c1e60f629ff353b191ec94ef61c
|
|
| MD5 |
2cb96636e060ee3d8d2c51e5ad4c0855
|
|
| BLAKE2b-256 |
fc0169774d0415f1073a4a01a9b3e9d90b2db188fc3fb36a1e74c9625110eeae
|
Provenance
The following attestation bundles were made for xnmapy-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/xnmapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xnmapy-0.1.0-py3-none-any.whl -
Subject digest:
a6a53623cd7cffffaff7238dac5ccd2252721c1e60f629ff353b191ec94ef61c - Sigstore transparency entry: 1202669408
- Sigstore integration time:
-
Permalink:
daedalus/xnmapy@bd6bdb930d8cf2063589461c0311a20438b69fd3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@bd6bdb930d8cf2063589461c0311a20438b69fd3 -
Trigger Event:
release
-
Statement type: