| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
###Security Headers Tool
This repository contains a set of Python scripts designed to check the presence and configuration of security HTTP headers in web server responses.
Table of Contents Installation Scripts Overview
check_headers.py: Analyzes HTTP response headers for security settings. check_specific_header.py: Checks for specific security headers in HTTP responses. check_specific_headerr.py: Checks for specific security headers in HTTP responses using URLs from a file. enhanced_security_header_checker.py: Performs enhanced security header checks on a given URL. security_headers_checker.py: Checks for predefined security headers in the response headers of a specified URL. spider.py: Web crawler to collect URLs for testing
The tool checks for the following security headers and explains their significance:
Each security header contributes to enhancing the security posture of a web application by mitigating specific types of attacks.
To use the scripts, ensure you have Python installed. Install any required dependencies with:
Clone the Repository:
git clone https://github.com/Cipherkrish69x/security-headers-tool.git
cd security-headers-toolInstall Requirements:
Ensure you have Python 3 installed. Install the required Python packages using pip:
pip install -r requirements.txt-- python check_headers.py --urls-file urls.txt --headers-file headers.txt --output-file output.json This script checks the presence of specified HTTP headers in the response headers of a single URL.
Benefits of JSON Output: Data Persistence: JSON output allows for persistent storage and retrieval of results. Portability: JSON files can be easily shared and transported between different systems. Flexibility: JSON output can be processed and analyzed using a wide range of tools and libraries.
Use the --help Option: Incorporate a built-in help menu (--help option) using argparse
Usage:
python3 check_headers.py --urls-file urls.txt --headers-file headers.txt --output-file results.jsonChecks the presence of a specific HTTP header in the response headers of multiple URLs.
Usage:
python3 check_specific_header.pySimilar to check_specific_header.py, but reads URLs from a file (urls.txt).
Usage:
python3 check_specific_headerr.py-- python enhanced_security_header_checker.py https://example.com --output-file result.txt
Performs enhanced security header checks on a single URL.
Usage:
python3 enhanced_security_header_checker.py <url> --output-file output.txtChecks for the presence and configuration of a set of predefined security headers in a given URL.
Usage:
python3 security_headers_checker.pyThis project is licensed under the MIT License.
| Back | FazBrowse Home | New Git URL |