Skip to main content

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!

Metadata

Release files for ptresheaders 0.0.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptresheaders 0.0.28
File Size Uploaded
ptresheaders-0.0.28.tar.gz 32.2 kB Details

Built distribution (wheel)

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

Total release size: 70.4 kB

Release files / ptresheaders-0.0.28.tar.gz

Download URL ptresheaders-0.0.28.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b15bb6905cf6c1568e72f8c6826990627f3ac3423a49f25c000591de3e0e4b0d
BLAKE2b-256 checksum
How to use checksums
683a14fdcdc7fb0106237bc192d200e4d5d8c610356c88590a472f489d061702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / ptresheaders-0.0.28-py3-none-any.whl

Download URL ptresheaders-0.0.28-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9eefd59a9db85b8c00677b4175d776488f19c3c630a10a836bc05740a947964
BLAKE2b-256 checksum
How to use checksums
a30d505d59a789ad102967f9095983d4a6ae737d95139adaed07a2e034b3575e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.0.28 This release

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.21

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.14

2 release files

0.0.13

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

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