Cybersecurity tool
XSS & SQLi Vulnerability Scanner
Command-line Python security tool that crawls websites and tests for reflected XSS and SQL injection.
- Role
- Security engineer - crawler, payload engine, CLI
- Stack
- PythonRequestsBeautifulSoup4RegexCLI
- The problem
- Websites can have hidden security bugs that let attackers steal cookies or break into databases. Testing pages by hand takes hours, and small teams often cannot afford expensive security scanning tools.
- The constraint
- The scanner must crawl website links safely without getting stuck in loops. It must test for reflected code without breaking the site, and spot slow database delays without giving false alarms.
- The approach
- I built a command-line tool in Python using requests and BeautifulSoup. It injects 20 cross-site scripting (XSS) payloads and checks if the server echoes them back. For SQL injection, it tests 19 payloads against 20 database error signatures (like MySQL, Postgres, and SQL Server) and flags time delays over five seconds. It crawls internal links and exports a clean report.txt file.
- The result
- Built and tested as the capstone project for the Professional Diploma in Cybersecurity at Baze University. Detects reflected XSS, error-based SQLi, and time-based blind SQLi from an interactive terminal.
What the scanner does
A command-line security tool that crawls a target website and checks pages for two major web vulnerabilities: reflected Cross-Site Scripting (XSS) and SQL injection (SQLi). It finds security holes before attackers can exploit them.
What is interesting here
Two ways to catch SQL injection. The scanner looks for SQL injection in two different ways. First, error-based testing sends 19 SQL payloads and scans server replies for 20 known database error messages across MySQL, PostgreSQL, SQLite, and SQL Server. Second, time-based testing flags server responses that take longer than five seconds to answer.
Automated payload injection. The tool tests 20 distinct XSS payloads, including script tags, HTML event handlers, SVG tags, iframes, and encoded characters. It verifies whether user input is properly cleaned or dangerously reflected back into the browser.
Built-in site crawler. Instead of testing one link at a time, the scanner follows internal website links using BeautifulSoup. Users can choose a quick single-page scan, set a maximum link limit, or run a full site crawl.
Clean reporting. Every suspected vulnerability is logged with the target URL, payload used,
and scan timestamp, exported into a simple report.txt file for easy remediation.
Academic and professional context
Built as the capstone project for the World Bank-sponsored Professional Diploma in Cybersecurity (IDEAS Emerging Technology Skills Training) at Baze University, Abuja.
Need something like this?
I build web products and the backend systems underneath them, from first commit to live production. Tell me what you are trying to do.