Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Web Vulnerability Scanner

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.


πŸš€ Project Overview

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.


πŸ“Έ Screenshots

πŸ–₯️ Flask Application Terminal (Server Running)

Flask Terminal Output

🌐 Web UI – Home Page

Web UI Home

πŸ“Š Scan Results Showing Detected Vulnerabilities

Scan Results


🧠 Key Features

  • 🌐 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.md file for future reference
  • 🧰 Built 100% with Python for easy extensibility

πŸ—οΈ Project Structure

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

πŸ“¦ Requirements

Install these Python libraries:

pip install flask requests beautifulsoup4

Or use the requirements file:

pip install -r requirements.txt

πŸ”§ How to Run (Linux or Windows)

python3 web_app.py

πŸ“ Open in your browser:
http://127.0.0.1:5000

  1. Enter a URL (like: http://testphp.vulnweb.com)
  2. Click Scan
  3. View vulnerabilities in the browser and report.md

πŸ” Sample Report Output

### 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'='1

πŸ§ͺ Safe Test Targets

Use these intentionally vulnerable test sites:

⚠️ Do NOT use this tool on websites without permission.


πŸŽ“ Learning Outcomes

  • How scanners crawl and test web forms
  • Writing secure input-handling in Flask
  • Testing for XSS & SQLi vulnerabilities
  • Ethical hacking workflows

πŸ‘€ Author

Rittik Gourav Raul
OUTR,BBSR BTech Cybersecurity | Internship Project | GitHub: rgr-001


πŸ“œ License

This project is for educational and ethical use only. Unauthorized scanning of live websites without permission is illegal and unethical.


⭐ Feedback or Improvements?

Feel free to fork, raise issues, or contribute if you find bugs or want to enhance this project!


πŸ“Œ Tags (Topics)

python, flask, web-scanner, xss, sqli, security, vulnerability, ethical-hacking, internship

πŸ›‘οΈ Built with πŸ’» by Rittik Gourav Raul for Cybersecurity Internship Project in Elevate Labs.

About

πŸ” Web Vulnerability Scanner built with Python & Flask β€” Detects XSS & SQL Injection 🚨

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages