Skip to main content

A basic tool to check security headers of a website

Project description

shcheck - Security Header Check

Output on Facebook PyPI Updated

Check security headers on a target website

I did this tool to help me to check which security headers are enabled on certain websites.

The tool is very simple and it's the result of few minutes of coding.

It just check headers and print a report about which are enabled and which not

I think there is a lot to improve, and I will be grateful if somebody wants to help

How to run:

Pypi

pip3 install shcheck
shcheck.py https://insecurity.blog

Docker

First build your docker container using something like this:

docker build -t shcheck .

Then simply run your docker container using something like this where you specify which website you want to check headers on:

docker run -it --rm shcheck https://insecurity.blog

From source

git clone https://github.com/santoru/shcheck && cd shcheck
./shcheck.py https://insecurity.blog

Usage

Usage: ./shcheck.py [options] <target>

Options:
  -h, --help            show this help message and exit
  -p PORT, --port=PORT  Set a custom port to connect to
  -c COOKIE_STRING, --cookie=COOKIE_STRING
                        Set cookies for the request
  -a HEADER_STRING, --add-header=HEADER_STRING
                        Add headers for the request e.g. 'Header: value'
  -d, --disable-ssl-check
                        Disable SSL/TLS certificate validation
  -g, --use-get-method  Use GET method instead HEAD method
  -j, --json-output     Print the output in JSON format
  -i, --information     Display information headers
  -x, --caching         Display caching headers
  --proxy=PROXY_URL     Set a proxy (Ex: http://127.0.0.1:8080)
  --hfile=PATH_TO_FILE  Load a list of hosts from a flat file

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

shcheck-1.5.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

shcheck-1.5.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file shcheck-1.5.0.tar.gz.

File metadata

  • Download URL: shcheck-1.5.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for shcheck-1.5.0.tar.gz
Algorithm Hash digest
SHA256 1fe3a35688aa645f817aabf267f2a7076da0e202f0145e7fdc5014c94176ac3e
MD5 1a11bae0aa5622ed3a58adb789ecc2ae
BLAKE2b-256 1125179ecab3649f82146f9dd171fd72c2fd4861dc6f890116ca16ceb871f7b6

See more details on using hashes here.

File details

Details for the file shcheck-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: shcheck-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for shcheck-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5829e95c72b5b71d02d311e8ac1a6b71c574b5560899302a00c10f44fc1a175b
MD5 1cdd75ee8c9482878ca741e97370e654
BLAKE2b-256 7b029fe4610af15adaf8232d551c33768e10e1abcb8042f91e4c915dade4a7ad

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