Skip to main content

Response Headers Testing Tool

Project description

penterepTools

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptresheaders-0.0.17.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

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

ptresheaders-0.0.17-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file ptresheaders-0.0.17.tar.gz.

File metadata

  • Download URL: ptresheaders-0.0.17.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ptresheaders-0.0.17.tar.gz
Algorithm Hash digest
SHA256 595a89de3ec177071ca772d2c26e65982b32b13f397a21bfe2abcfd54c2c2fb9
MD5 f8a6b2aaf311b895a93975e0c784d406
BLAKE2b-256 ab157c8cbf56cd20337ce8efe73e9c994759e852d523dc6a6fede01964b8458a

See more details on using hashes here.

File details

Details for the file ptresheaders-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: ptresheaders-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ptresheaders-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 a6084b0c2c3f0b2f6d095666458ef2430ea2535b0ac4695f45e36b98c1667542
MD5 0cd3a036b99d7de96f97c1597042ad5c
BLAKE2b-256 bf04bdf44adf0cdb9ab0f2114dafde7a2e84fecb542e86ddb6b85bdda5d0a874

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