Skip to content

raza360ahmed/SQLi-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ SQLi Scanner - Automated SQL Injection Detection Tool

A Python-based lightweight scanner to identify SQL Injection vulnerabilities in web applications using GET or POST requests. Designed for learning, testing, and demo purposes β€” ideal for bug bounty practice, local testing (like DVWA/bWAPP), or cybersecurity portfolios.


πŸ”§ Features

  • βœ… Accepts dynamic target URLs via CLI
  • βœ… Supports both GET and POST methods
  • βœ… Injects multiple SQL payloads from payloads.txt
  • βœ… Detects possible injection by keyword-based response analysis
  • βœ… Extracts <title> from responses for better context
  • βœ… Colorized terminal output using colorama
  • βœ… Logs vulnerable payloads to a results.txt file
  • βœ… Generates structured JSON report with timestamp
  • βœ… CLI flags via argparse for flexibility

πŸš€ How to Use

πŸ”Ή 1. Install Requirements

pip install requests colorama
πŸ”Ή 2. Run the Scanner

python scanner.py --url "http://target.com/page.php?id=" --method GET --payloads payloads.txt
βœ… Replace the URL with your own
βœ… Use POST if scanning login forms

βš™οΈ Command-Line Flags
Flag	Description
--url	Target URL (required)
--method	GET or POST (default: GET)
--payloads	Path to payloads file (default: payloads.txt)

πŸ“‚ Output
βœ… results.txt β€” Plain-text log of successful payloads

βœ… sqli_report_YYYYMMDD_HHSS.json β€” Full scan summary

πŸ§ͺ Example Use (with DVWA)
python scanner.py --url "http://localhost/dvwa/vulnerabilities/sqli/?id=" --method GET --payloads payloads.txt

πŸ“ File Structure
SQLi-Scanner/
β”œβ”€β”€ scanner.py         # Main script
β”œβ”€β”€ payloads.txt       # SQL payloads
└── README.md          # This file

⚠️ Legal Disclaimer
This tool is intended for educational and authorized testing only.
Do NOT use on websites you don't own or have explicit permission to test.

πŸ™Œ Credits
Made by raza360ahmed
Inspired by hands-on cybersecurity learning πŸ’»πŸ”

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages