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.15

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.15
File Size Uploaded
ptnmap-0.0.15.tar.gz 21.5 kB Details

Built distribution (wheel)

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

Total release size: 41.7 kB

Release files / ptnmap-0.0.15.tar.gz

Download URL ptnmap-0.0.15.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
be0be87b477fa73e7be068f6949d12a17bec6c97cdf8f726a42f8c074fc4c3ef
BLAKE2b-256 checksum
How to use checksums
f54f91cea2cf00b0731e38cfa56c35f70921492d16f53f4f7aae0fbc7ddb9120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

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

Download URL ptnmap-0.0.15-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20499f43736fde8ef5e98499c3692f1592f94614c812111147d8017c2de2e23e
BLAKE2b-256 checksum
How to use checksums
196caa99bcf550abf9f2ec8c6254f7c0fb5525c50eae96669ab68facaea476d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.0.15 This release

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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