Web sources information extractor
Project description
PTINSEARCHER
Web sources information extractor
ptinsearcher is a tool for extracting information from web sources. This tool allows dumping of HTML comments, e-mail addresses, phone numbers, IP addresses, subdomains, HTML forms, links and metadata of documents.
Installation
pip install ptinsearcher
Add to PATH
# If you cannot invoke the script in your terminal, its probably because its not in your PATH. Fix it by running commands below
echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc
Usage examples
ptinsearcher -u https://www.example.com/ # Dump information from URL
ptinsearcher -u https://www.example.com/ -e H # Extract HTML comments from URL
ptinsearcher -u https://www.example.com/ -e HSE # Extract HTML comments, subdomains, emails from URL
ptinsearcher -f urlList.txt # Load list of sources to grab from file
ptinsearcher -f urlList.txt -gc -e E # Group findings of all sources
Options
-u --url <url> Test specified URL
-f --file <file> Load list of URLs from file
-d --domain <domain> Domain, used when any line in <file> doesn't contain valid URL, but path to file
-e --extract <extract> Specify types of data to extract [E, S, H, F, I, X, P, M, L, Q, A] (default A)
-o --output <output> Output to file
-op --output-parts Output each result section to separate file
-gp --group-parameters Group parameters
-wp --without-parameters Without parameters
-g --grouping One output table for all sites
-gc --grouping-complete Merge results from all sites into one result
-r --redirects Follow redirects (default False)
-c --cookie <cookie=value> Set cookie(s)
-H --headers <header:value> Set custom headers
-p --proxy <proxy> Set proxy (e.g. http://127.0.0.1:8080)
-ua --user-agent <user-agent> Set user agent
-j --json Output in JSON format
-v --version Show script version and exit
-h --help Show this help message and exit
Extract arguments
A - grab all (default)
E - emails
S - subdomains
H - HTML comments
F - HTML Forms
I - IP addresses
X - External links
L - Internal links
Q - Internal links with parameters
P - Phone numbers
M - metadata
Dependencies
- requests
- bs4
- pyexiftool
- tldextract
- ptlibs
We use ExifTool to extract metadata.
Version History
- 0.0.1 - 0.0.2
- Alpha releases
License
Copyright (c) 2020 HACKER Consulting s.r.o.
ptinsearcher 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.
ptinsearcher 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 ptinsearcher. 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
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
File details
Details for the file ptinsearcher-0.0.2.tar.gz
.
File metadata
- Download URL: ptinsearcher-0.0.2.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e904730b2811360e406863cbf0ed32495e47ff87b040c7521687f769e7310b7 |
|
MD5 | d3d08780b878d4d13258368c920e8278 |
|
BLAKE2b-256 | c6648dbb21ed44f2da1d796d4f5cd171816e38ff21d521c79ff195c72a7362ec |
File details
Details for the file ptinsearcher-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ptinsearcher-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef2e210008f99baae44e4c73847e17c2dd2e8d53db7a534c3ff1888659c1be1 |
|
MD5 | a435c275cefa57f300580b2ee4b8d214 |
|
BLAKE2b-256 | cc4c6556f10afe86081b8b02a0465427312d9688ea806c5421d4385d19cd2c53 |