Skip to content

amnottdevv/theSQLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ TheSQLI - SQL Injection Toolkit

dx

Version Python License Status

Professional SQL Injection & Web Security Testing Toolkit

Features โ€ข Installation โ€ข Usage โ€ข Modules โ€ข Documentation


๐Ÿ“‹ Overview

TheSQLI is a comprehensive web security testing toolkit developed by alzzmaret. It provides automated SQL injection detection, database enumeration, subdomain discovery, path brute-forcing, DNS lookup, and IP resolution tools โ€” all wrapped in a professional blue-themed CLI interface.

โš ๏ธ Disclaimer: This tool is for educational purposes and authorized security testing only. Use only on systems you own or have explicit permission to test.


โœจ Features

Feature Description
๐Ÿ” SQL Injection Scanner Multi-level scanning (1-3) with 500+ payloads
๐Ÿ’พ Database Enumeration Extract database names, tables, columns
๐Ÿ“ค Data Dumper Export data to CSV/JSON format
๐ŸŒ Subdomain Discovery DNS + HTTP brute-force with wordlist
๐Ÿ“‚ Path Brute-Forcer Directory/file discovery (admin panel, config, etc.)
๐Ÿ”Ž Parameter Scanner Detect GET/POST injection points
๐Ÿ  URL to IP Resolve domains to IPv4/IPv6
๐Ÿ”ง DNS Lookup Query A, MX, TXT, NS, CNAME, SOA records

๐Ÿš€ Installation

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Step 1: Clone or Download

git clone https://github.com/alzzmaret/theSQLI.git
cd theSQLI

Step 2: Install Dependencies

pip install -r requirements.txt

requirements.txt:

requests>=2.28.0
rich>=13.0.0
pyfiglet>=0.8.post1
dnspython>=2.3.0

Step 3: Verify Installation

python main.py

You should see the banner and interactive menu.


๐Ÿ“ Project Structure

theSQLI/
โ”œโ”€โ”€ main.py                 # Main entry point (CLI + Interactive)
โ”œโ”€โ”€ core/                   # Core modules
โ”‚   โ”œโ”€โ”€ detector.py         # SQL injection detection
โ”‚   โ”œโ”€โ”€ enumerator.py       # Database enumeration
โ”‚   โ”œโ”€โ”€ dumper.py           # Data extraction & export
โ”‚   โ”œโ”€โ”€ param_scanner.py    # Parameter discovery
โ”‚   โ”œโ”€โ”€ recon_subdomain.py  # Subdomain brute-force
โ”‚   โ”œโ”€โ”€ recon_path.py       # Directory/path brute-force
โ”‚   โ”œโ”€โ”€ urlip.py            # URL to IP resolver
โ”‚   โ””โ”€โ”€ dns.py              # DNS record lookup
โ”œโ”€โ”€ lib/                    # Utility libraries
โ”‚   โ”œโ”€โ”€ requester.py        # HTTP request handler
โ”‚   โ”œโ”€โ”€ savers.py           # CSV/JSON export
โ”‚   โ””โ”€โ”€ utils.py            # Common utilities
โ”œโ”€โ”€ wordlist/               # Payload & wordlist files
โ”‚   โ”œโ”€โ”€ common_sqli.txt     # Basic SQLi payloads
โ”‚   โ”œโ”€โ”€ common_sqli2.txt    # Medium SQLi payloads
โ”‚   โ”œโ”€โ”€ common_sqli3.txt    # Advanced/WAF bypass payloads
โ”‚   โ”œโ”€โ”€ common_subdomain.txt # Subdomain wordlist
โ”‚   โ”œโ”€โ”€ path.txt            # Directory/file wordlist
โ”‚   โ””โ”€โ”€ params.txt          # Parameter wordlist
โ””โ”€โ”€ output/                 # Dumped data storage

๐ŸŽฎ Usage

Interactive Mode (Default)

Simply run without arguments:

python main.py

Navigate using number keys (0-8) and follow prompts.

Command Line Mode

# SQL Injection Scan
python main.py -u "http://target.com/page.php?id=1" --scan --risk 3

# Enumerate Databases
python main.py -u "http://target.com/page.php?id=1" --dbs

# Search Parameters
python main.py -u "http://target.com/page.php" --params

# Subdomain Discovery
python main.py --subdomain target.com

# Path Brute-Forcing
python main.py --path https://target.com

# URL to IP
python main.py --url2ip google.com

# DNS Lookup
python main.py --dns google.com
python main.py --dns google.com --record MX

๐Ÿ“‹ Modules Guide

1. Scan Vulnerability (--scan)

Detects SQL injection with 3 risk levels:

Level Description Payloads Used
1 (Ringan) Basic detection common_sqli.txt (error-based)
2 (Medium) Extended testing common_sqli2.txt (+time-based)
3 (Berat) Advanced bypass common_sqli3.txt (+WAF bypass)

Output: Vulnerable parameters, technique (error/union/boolean/time), DBMS type.

2. Enumerate Databases (--dbs)

Lists all databases after detecting vulnerability.

3. Search Parameters

Brute-forces common parameter names (id, page, q, cat, etc.).

4. Dump Database

Extracts table data and exports to output/{db}_{table}.csv and .json.

5. Search Subdomain

DNS + HTTP enumeration of subdomains. Supports common_subdomain.txt.

6. Search Path

Directory brute-forcing with path.txt wordlist.

7. URL to IP

Resolves hostname to IPv4/IPv6 address.

8. DNS Lookup

Query DNS records: A, AAAA, MX, TXT, NS, CNAME, SOA.


๐Ÿ› ๏ธ Configuration

Custom Wordlists

Place custom wordlists in /wordlist/ directory:

  • common_sqli.txt - SQL injection payloads
  • common_sqli2.txt - Medium payloads
  • common_sqli3.txt - Advanced bypass payloads
  • common_subdomain.txt - Subdomain names
  • path.txt - Directory/file paths
  • params.txt - Parameter names

Output Directory

All dumped data is saved to /output/ folder (auto-created).


๐Ÿ› Troubleshooting

Issue Solution
ModuleNotFoundError Run pip install -r requirements.txt
No vulnerable parameter found Ensure URL has parameters (e.g., ?id=1)
No databases found Target may have WAF; try risk level 3
Connection timeout Increase timeout in lib/requester.py

๐Ÿ“ Example Walkthrough

Target: http://testphp.vulnweb.com/artists.php?artist=1

python main.py

# Interactive Menu:
# 1. Scan Vulnerability (Level: 3)
# Output: โœ“ Vulnerable! id parameter (error-based, MySQL)

# 2. Enumerate Databases
# Output: acuart, information_schema, mysql

# 3. Dump Database
# Database: acuart
# Table: users
# Columns: uname, pass
# Output saved to output/acuart_users.csv

๐Ÿ”’ Legal & Ethics

  • Only test systems you own or have written permission to test.
  • Unauthorized access is illegal in most jurisdictions.
  • The developer assumes no liability for misuse.

๐Ÿ“ž Contact & Support

  • Developer: alzzmaret
  • Project: TheSQLI - ZAMZZZ SQL Injection Toolkit

๐Ÿ“„ License

MIT License - Use freely, modify responsibly.


Built with ๐Ÿ”ฅ by alzzmaret

About

toolkit sqlmap lengkap dengan 6 fitur utama

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages