Skip to main content

penterepTools

PTNMAP

Installation

pip install ptnmap

Adding to PATH

If you're unable to invoke the script from your terminal, it's likely because it's not included in your PATH. You can resolve this issue by executing the following commands, depending on the shell you're using:

For Bash Users

echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc

For ZSH Users

echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.zshrc
source ~/.zshrc

Usage examples

ptnmap -sn -t 192.168.0.0/24
ptnmap -sT -t 192.168.0.1 -p 1-1000
ptnmap -sT -t 192.168.0.1 -sV
ptnmap -sn -PE -t 192.168.0.0/24

Options

Scan options:
   -sn  --scan-live            Do live device scan / portsweep / no service detection
   -O   --scan-os              Do OS scan / detect target's OS,  root access required
   -sT  --scan-port-connect    Do port scan (TCP Connect)
   -sS  --scan-port-syn        Do port scan (TCP Syn / Stealth), root access required
   -sU  --scan-port-udp        Do port scan (UDP Connect)
   -sV  --scan-service         Do service scan / service banner grabber
   -PE  --ping-echo            Use ICMP echo discovery
   -PS  --ping-syn             Use TCP SYN discovery


Options:
   -t  --target   <target>  Set target
   -p  --port     <port>    Set port(s)
   -v  --version            Show script version and exit
   -h  --help               Show this help message and exit
   -j  --json               Output in JSON format

Dependencies

ptlibs
defusedxml

License

Copyright (c) 2024 Penterep Security s.r.o.

ptnmap is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ptnmap is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ptnmap. If not, see https://www.gnu.org/licenses/.

Warning

You are only allowed to run the tool against the websites which you have been given permission to pentest. We do not accept any responsibility for any damage/harm that this application causes to your computer, or your network. Penterep is not responsible for any illegal or malicious use of this code. Be Ethical!

Metadata

Release files for ptnmap 0.0.16

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

Source distribution (sdist)

Source distribution for ptnmap 0.0.16
File Size Uploaded Provenance Actions
ptnmap-0.0.16.tar.gz 24.2 kB Without provenance Details for ptnmap-0.0.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ptnmap 0.0.16
File Interpreter ABI Platform Actions
ptnmap-0.0.16-py3-none-any.whl Python 3 none any Details for ptnmap-0.0.16-py3-none-any.whl

Total release size: 45.2 kB

Release files / ptnmap-0.0.16.tar.gz

Download URL ptnmap-0.0.16.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
176bb5c653df7dfa5f1937a8aa394b25835df5f2bf4664016e5d9cbda05f6867
BLAKE2b-256 checksum
How to use checksums
7ecb40b9fa8334f57e0a2fb659109f06e28fede14b03fe8f696842c2fce3ac63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ptnmap-0.0.16-py3-none-any.whl

Download URL ptnmap-0.0.16-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a6ff98f800bfd7a34b70f5a8cec52970dffa8bb8df3c213dcdda85e8915be6d
BLAKE2b-256 checksum
How to use checksums
3ba01290e6c1ec0d6e5c2d592d93aca3bbfd0390bda42a610b9c5b60bf1d7deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ptnmap 0.0.16

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.

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