https://github.com/mmpx12/headsek
security headers analyser
https://github.com/mmpx12/headsek
analyzer go golang http-secure-header pentest security-header
Last synced: 5 months ago
JSON representation
security headers analyser
- Host: GitHub
- URL: https://github.com/mmpx12/headsek
- Owner: mmpx12
- Created: 2021-08-02T02:36:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-21T21:52:05.000Z (over 3 years ago)
- Last Synced: 2024-06-21T13:13:40.044Z (almost 2 years ago)
- Topics: analyzer, go, golang, http-secure-header, pentest, security-header
- Language: Go
- Homepage:
- Size: 131 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HEADSEK: security header analyzer


This tools analyse security headers based on OWASP Secure Headers Project,
for more informations about security header go visit: https://owasp.org/www-project-secure-headers/
### Usage:
```
-h, --help Show this help
-d, --description Print description under the result
-n, --nologo don't print banner
-k, --insecure Ignore certificats issues
-u, --url=URL set target URL (not mandatory if url is the last
parameter)
-U, --user-agent=USER-AGENT set user-agent
-p, --post=POST-DATA set post data (will use POST instead of GET)
-c, --cookies=COOKIES set cookies
-H, --headers='NAME:VALUE' set headers
-v, --version show version
```
`-u` is not mandatory if the URL is the last argument.
### Examples:
```sh
# Simple GET request
$ headsek -n -u https://exemple.com
# POST request:
$ headsek -n -p "whatever=1&somethingelse=yes" https://exemple.com
# Set cookie and user-agent
$ headsek -n -c "sessionid=something;userid=1" -U "some user-agent" https://exemple.com
# Set custom header for request (usefull for api)
headsek -k -H 'Authorization: Token XXXXXXXXXXXXX' https://exemple.com
```
### Install:
One liner:
```sh
go install github.com/mmpx12/headsek
```
or from source with:
```sh
git clone git@github.com:mmpx12/headsek.git
cd headsek
make
sudo make install
# or
sudo make all
```