Skip to content

ri-shenvi/secheadercheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Security Header Check

Check security headers on a target website

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

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

How to run:

Pypi

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

Docker

First build your docker container using something like this:

docker build -t secheadercheck .

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 secheadercheck https://insecurity.blog

From source

git clone https://github.com/ri-shenvi/secheadercheck && cd secheadercheck
./secheadercheck.py https://insecurity.blog

Standalone script

If you want to run shcheck as a standalone script, just grab the secheadercheck.py script from the secheadercheck module/folder and copy it around.

Usage

Usage: ./secheadercheck.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
  -k, --deprecated      Display deprecated 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
  --colours=COLOURS     Set up a colour profile [dark/light/none]
  --colors=COLOURS      Alias for colours for US English

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages