A Python-based tool to detect XSS and SQL Injection vulnerabilities in web applications
Complete with a web crawler, form parser, automated payload injection, and a Flask UI.
The Web Vulnerability Scanner is a lightweight tool designed to help ethical hackers, security researchers, and developers detect common web vulnerabilities like:
- 𧨠Cross-Site Scripting (XSS)
- π οΈ SQL Injection (SQLi)
It automates the process of crawling, analyzing forms, injecting malicious payloads, and identifying unsafe input fields β all accessible through a simple Flask-based web interface.
- π Crawls an entire website for internal links
- π Parses HTML forms using BeautifulSoup
- π§ͺ Injects test payloads to detect vulnerabilities
- π Displays results live on a Flask interface
- π Generates a
report.mdfile for future reference - π§° Built 100% with Python for easy extensibility
web-vuln-scanner/
βββ scanner.py # Core logic: crawling, forms, payloads
βββ web_app.py # Flask UI logic
βββ main.py # For GitHub language detection
βββ report.md # Scan results
βββ requirements.txt # Python dependencies
βββ README.md # You are here
βββ templates/
βββ index.html # Flask frontend
Install these Python libraries:
pip install flask requests beautifulsoup4Or use the requirements file:
pip install -r requirements.txtpython3 web_app.pyπ Open in your browser:
http://127.0.0.1:5000
- Enter a URL (like: http://testphp.vulnweb.com)
- Click Scan
- View vulnerabilities in the browser and
report.md
### XSS Vulnerability Found
- URL: http://target.com/contact
- Payload: <script>alert('XSS')</script>
### SQL Injection Vulnerability Found
- URL: http://target.com/login
- Payload: ' OR '1'='1Use these intentionally vulnerable test sites:
- How scanners crawl and test web forms
- Writing secure input-handling in Flask
- Testing for XSS & SQLi vulnerabilities
- Ethical hacking workflows
Rittik Gourav Raul
OUTR,BBSR
BTech Cybersecurity | Internship Project | GitHub: rgr-001
This project is for educational and ethical use only. Unauthorized scanning of live websites without permission is illegal and unethical.
Feel free to fork, raise issues, or contribute if you find bugs or want to enhance this project!
python, flask, web-scanner, xss, sqli, security, vulnerability, ethical-hacking, internship
π‘οΈ Built with π» by Rittik Gourav Raul for Cybersecurity Internship Project in Elevate Labs.


