Vanguard is a premium, modular command-line vulnerability scanner designed for ethical hackers, security analysts, and developers. It crawls target websites, evaluates HTTP response security headers, and tests endpoints/forms for Cross-Site Scripting (XSS), SQL Injection (SQLi), Local File Inclusion (LFI), and OS Command Injection, generating interactive responsive HTML audit reports.
- 🌐 Target Crawling & Mapping: Recursively crawls domains up to a configurable depth to discover endpoints, URLs, and active forms.
- 🔒 Security Header Audit: Evaluates HTTP headers for missing parameters (
CSP,X-Frame-Options,HSTS,X-Content-Type-Options) and flags dangerous version disclosures. - ⚔️ Active Vulnerability Probing:
- Cross-Site Scripting (XSS): Param/form injection checks for parameter reflections.
- SQL Injection (SQLi): Database driver exception check signatures.
- Local File Inclusion (LFI): Traversal check seeking system config/credential exposure.
- OS Command Injection: Shell operator auditing for arbitrary system code execution.
- 📄 Premium HTML Report: Generates an interactive, styled HTML report with detailed remediation advice for every vulnerability found.
The scanner runs checks across the following security vulnerability classifications:
- SQL Injection (SQLi): Probes inputs with database syntax triggers (e.g.
',",OR 1=1) and monitors response buffers for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server driver error leaks. - Cross-Site Scripting (Reflected XSS): Injects HTML/JS snippets into parameters and audits response DOMs for unescaped mirrors.
- Local File Inclusion (LFI): Injects directory traversal strings (e.g.
../../../../etc/passwdor..\win.ini) to check if the target reads files directly from unsanitized input parameters. - OS Command Injection: Injects shell command symbols (e.g.
;,|) with diagnostic commands to see if the server environment executes them and returns system metadata. - Missing Hardening Headers: Checks for absent or misconfigured
Strict-Transport-Security(HSTS),Content-Security-Policy(CSP),X-Frame-Options(Clickjacking protection), andX-Content-Type-Options(MIME sniffing prevention). - Server Information Disclosure: Inspects headers like
Server,X-Powered-By, andX-AspNet-Versionfor leaks of server OS or runtime version numbers.
Open your terminal and clone the repository:
git clone https://github.com/Neeshant01/vanguard-scanner.git
cd vanguard-scannerSetting up a virtual environment avoids the externally-managed-environment error:
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txt# General Help options
python vanguard.py --help
# Run a scan and export report
python vanguard.py https://example.com -o audit_report.htmlFor advanced debugging (e.g. fixing bs4 parsing limits or scanner blocks), read the SETUP_GUIDE.md.
Distributed under the MIT License.
