Skip to main content

OSINT Domain Name Enumeration System

Project description

penterepTools

ptodnes - OSINT Domain Name Enumeration System

Installation

  • Using ptmanager (recommended)
ptmanager -ti ptodnes
  • Using pip
pip install ptodnes
  • Using pipx
pipx install ptodnes

When using pipx user environment must be configured as in Development Installation

Usage examples

ptodnes -l
ptodnes -d example.com
ptodnes -d example.com example.net
ptodnes -d example.com -D VirusTotal CRTsh
ptodnes -d example.com -j -o example -t A AAAA
ptodnes -d example.com -D Wordlist -w /usr/share/wordlists/rockyou.txt

ptodnes -ip 203.0.113.26
ptodnes -ip 203.0.113.16 -wa -j
ptodnes -ip 203.0.113.12 -wa -vv

Options

-api --api                <module> <api_key>    Set API key for module
-c  --csv                                       Output in CSV format
-C  --config              <config>              Path to config file (default ~/ptodnes.toml)
-d  --domain              <domain ...>          Domains to search for
-D  --datasource          <datasource ...>      Datasources to browse
-e  --exclude-unverified                        Exclude unverified records
-ip, --ip-address         <ip address ...>      IP to search for
-j  --json                                      Output in JSON format
-l  --list                                      List available datasources
-n  --nonxdomain                                Filter results with no DNS data
-o  --output              <file_prefix>         Save results to files (format specification required)
-p  --ptjson                                    Output in ptJSONlib format
-q  --query                                     Query domains against DNS servers
-r  --retry               <count>               Number of attempts (default:5)
-t  --type                <type ...>            Types of DNS records to search for
-T  --timeout             <timeout>             Datasource connection timeout (in seconds, default:5)
-v  --version                                   Print version and exit
-vv --very-verbose                              Output more information
-V  --verbose             <1|2|3|4>             Set verbosity level (1=ERROR, 2=WARNING, 3=INFO, 4=DEBUG)
-w  --wordlist            <wordlist ...>        Path to wordlist(s) for wordlist search.
-wa --web-apps                                  Detect web applications (vhosts) on provided IPs (use with -ip)
-y  --yaml                                      Output in YAML format

Configuration

Configuration is stored in TOML file. Default location is ~/ptodnes.toml.

Example configuration:

[VirusTotal]
api_keys = [
    'API_KEY_1',
    'API_KEY_2'
]

[SecurityTrails]
api_keys = [
    'API_KEY_1',
    'API_KEY_2'
]

[Wordlist]
wordlists = [
'/usr/share/wordlists/seclists/Discovery/DNS/namelist.txt'
]

...
[<Datasource>]
api_keys = [
    '...'
]

Dependencies

ptlibs
aiodns
aiohttp
aiopg
pyyaml

Development Installation

  1. Download latest release whl package from releases page.
  2. Install the package using pip/pipx.
pipx install <path_to_downloaded_whl_file>

Example:

pipx install ~/Downloads/ptodnes-1.11.1-py3-none-any.whl

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

License

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

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

ptodnes 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 ptodnes. 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!

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

ptodnes-1.11.9.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

ptodnes-1.11.9-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file ptodnes-1.11.9.tar.gz.

File metadata

  • Download URL: ptodnes-1.11.9.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for ptodnes-1.11.9.tar.gz
Algorithm Hash digest
SHA256 d6398c6748697b3740cec0efe4e89726be9eb3fd1405c4ec3587e11bbcff42ca
MD5 0f07d2e4ed63806881ad84f7c88f9683
BLAKE2b-256 0240260fee420beb7e08efe395e27b1659e8e9832c83f282fab53eb3a116959f

See more details on using hashes here.

File details

Details for the file ptodnes-1.11.9-py3-none-any.whl.

File metadata

  • Download URL: ptodnes-1.11.9-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for ptodnes-1.11.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d7aae4866403c6315a92ac67745627a219b7aa639a62c1a01c10456391de8513
MD5 21f1fe0c194ff810df1637ac0a89003b
BLAKE2b-256 3a71fa326fec264fe2e012e549baff2ff1d780e1e32a6b5eba018576ede576d5

See more details on using hashes here.

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