Response Headers Testing Tool
Project description
PTRESHEADERS - Response Headers Testing Tool
ptresheaders is an automated tool that efficiently analyzes and tests HTTP response headers for security best practices and compliance with industry standards.
Installation
pip install ptresheaders
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
ptresheaders -u https://www.example.com
ptresheaders -u https://www.example.com --proxy 127.0.0.1:8080
Options
-u --url <url> Connect to URL
-p --proxy <proxy> Set proxy
-c --cookie <cookie> Set cookie
-H --headers <header:value> Set headers
-a --user-agent <agent> Set User-Agent
-T --timeout Set timeout
-m --method Set method (default GET)
-r --redirects Follow redirects
-C --cache Enable HTTP cache
-j --json Enable JSON output
-v --version Show script version and exit
-h --help Show this help message and exit
Dependencies
ptlibs
ptcookiechecker
bs4
lxml
License
Copyright (c) 2024 Penterep Security s.r.o.
ptresheaders 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.
ptresheaders 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 ptresheaders. 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
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 ptresheaders-0.0.15.tar.gz.
File metadata
- Download URL: ptresheaders-0.0.15.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6f93d0a711c9cf85a6f316d9c1c420e3aa92bfb8d5f61c200a95e770002e170
|
|
| MD5 |
2050ac515280fa4adae89e1d3c0af3af
|
|
| BLAKE2b-256 |
5f411c3fdd38b8d72ff0dd61c70a8c5c2429f2040246b035b8aebb3f2171bf9c
|
File details
Details for the file ptresheaders-0.0.15-py3-none-any.whl.
File metadata
- Download URL: ptresheaders-0.0.15-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f7f80cbb4adac8a2a5679cf17e590a288b5a1168309a1bbb8f727175b56e490
|
|
| MD5 |
5c77d96847620e7db2f624f97d69dbd9
|
|
| BLAKE2b-256 |
06793da6892e62979124c4ac6ef8e046b2191c6cd37b882f485930c9d205b5db
|