Coder Social home page Coder Social logo

ratlesv / smapql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aureum01/smapql

0.0 0.0 0.0 68 KB

SMapQL is a robust tool for detecting SQL Injection in sitemaps. It automates scanning of subdomains, identifies sitemaps, and tests for SQLi vulnerabilities. Designed for security researchers, it prioritizes accuracy and efficiency, reducing false positives and aiding vulnerability discovery.

License: MIT License

Python 95.28% Dockerfile 4.72%

smapql's Introduction

SMapQL

Description

SMapQL is a robust tool for detecting SQL Injection in sitemaps. It automates scanning of subdomains, identifies sitemaps, and tests for SQLi vulnerabilities. Designed for security researchers, it prioritizes accuracy and efficiency, reducing false positives and aiding vulnerability discovery.

Features

  • Concurrent testing using multiple threads
  • Customizable delay between requests
  • Proxy support
  • Reporting of vulnerable domains in various formats (txt, json, csv)

Requirements

  • Python 3.10.10 Libraries: argparse library logging library requests library time library json library csv library beautifulsoup4 (bs4) library queue library threading library urllib library

Installation

pip install -r requirements.txt

Usage

python script.py -t domain1.com domain2.com -th 10 -d 1 -o output.txt -p http://proxy.example.com:8080

Command-line options:

-t or --target_domains: Specify the target domains to check for SQL injection vulnerabilities. Multiple domains can be provided separated by spaces.
-th or --threads: Specify the number of threads to use for concurrent requests. Default is 10 if not specified.
-d or --delay: Specify the delay between requests in seconds. Default is 1 second if not specified.
-o or --output: Specify the output file name for the vulnerabilities report. Default is "vulnerable_domains.txt" if not specified.
-p or --proxies: Specify the proxies to use for requests. Format: http://proxy.example.com:8080

The script will perform the following steps:

Fetch the sitemap files for the target domains.
Parse the sitemap files and extract URLs.
Test each URL for SQL injection vulnerabilities.
Identify successful SQL injections and store the vulnerable domains.
Generate a report in the specified output format (txt, json, or csv) containing the vulnerable domains.

Getting Help

To get help and see a list of available options, use the -h option:

python3 smapql.py -h

Checking a Single Domain

To check a single domain with default settings (10 threads, 1 second delay, no proxies, output to vulnerable_domains.txt):

python3 smapql.py -t example.com

Checking Multiple Domains

To check multiple domains with default settings:

python3 smapql.py -t example1.com example2.com example3.com

Setting Threads and Delay Time

To check a single domain with 5 threads and a 2-second delay, outputting results to results.txt:

python3 smapql.py -t example.com -th 5 -d 2 -o results.txt

Using a Proxy

To check a single domain with a proxy:

`python3 smapql.py -t example.com -p http://yourproxy:8080`

Please replace example.com and yourproxy:8080 with the actual domain and proxy you want to use.

CTF Challenge

Example command to run the script on an IP address

python smapql.py -t http://[IP address] -th 10 -o report.txt

Customization

Check the /src folder for the Singular folder which includes the overall script for you to customize to your needs or add to your development.

License:

MIT License

Contributing:

Contributions are welcome! If you find any issues or want to enhance the tool, feel free to submit a pull request.

Disclaimer:

This tool is meant for educational and professional testing purposes only. Use it responsibly and at your own risk.

Author:

⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ Aureum01 ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐

smapql's People

Contributors

aureum01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.