🔐 HTTP Header Analyzer
Advanced Tool for HTTP Header Security Analysis and Hidden Route Discovery
📖 About the Project This tool is a comprehensive security scanner script built in Python. It aims to help penetration testers and website administrators examine the security settings in HTTP headers and search for sensitive routing files, while delivering high performance thanks to its parallel processing capabilities.
✨ Key Features
- 🚀 Parallel analysis (Multi-threading) : Scanning dozens of sites in seconds using a synchronized threading system.
- 🔍 Security Header Check: A thorough analysis of CSP, HSTS, X-Frame-Options with an explanation of each missing vulnerability.
- 🤖 Exploring robots.txt: Automated scanning of routing files to extract sensitive and hidden paths from search engines.
- 📊 Smart Reports: Export results in a structured JSON format for easy integration with other tools.
- 🛠️ Advanced error handling: An intelligent system for handling disconnections, timeouts, and invalid links.
🛠️ Installation and Operation Prerequisites Python 3.8 or later.
A requests library for handling HTTP protocol.
-
Download the project git clone https://github.com/Belozaid/http-header-analyzer.git cd http-header-analyzer
-
Install the required libraries pip install requirements.txt
-
Run the tool
python analyzer.py -u google.com
#Analysis of a Saudi government website python analyzer.py -u moe.gov.sa
python analyzer.py --create-arabic
python analyzer.py -f urls_arabic.txt
python analyzer.py -f urls_arabic.txt --arabic-report -o تقرير_الأمان
python analyzer.py -f urls.txt --threads 10 -o تحليل_سريع
📊 Example of results
🌐 DNS Availability Check: ✅ DNS resolved: 91.195.88.235 📝 Added HTTPS: https://moe.gov.sa
✅ Final URL: https://moe.gov.sa/ar/pages/default.aspx 📊 Status Code: 200
📋 Security Headers Analysis:
✅ Strict-Transport-Security: max-age=31536000; includeSubDomains
📝 Protects against SSL Strip attacks
❌ X-Frame-Options
🍪 Cookie Security Analysis: 🔴 APPLICATION_POOL=!ntg5v6zyZXUbHmj77osIVpSF0rftK... [HIGH RISK]
🔒 SSL Certificate Analysis: • Issuer: DigiCert Inc • Subject: *.moe.gov.sa • Expires: May 28 23:59:59 2026 GMT • Days left: 71 ✅
📈 Overall Risk Score: 15/100 🟢 LOW RISK - Good security posture