An open API service indexing awesome lists of open source software.

https://github.com/facingdependencyhell/unionselectpayloadgenerator

This script generates UNION SELECT NULL, ... payloads to use for enumerating data types for UNION based SQL injection.
https://github.com/facingdependencyhell/unionselectpayloadgenerator

burp injection portswigger python sql sqli sqlinjection sqlinjectionattack

Last synced: 10 months ago
JSON representation

This script generates UNION SELECT NULL, ... payloads to use for enumerating data types for UNION based SQL injection.

Awesome Lists containing this project

README

          

This is a simple generator for enumerating data types in UNION SELECT NULL,NULL -- based SQLi attacks.
I've tried to find a way of doing this through Burp's intruder, but could not figure it out. So I've just wrote this simple script to do it for me.

---

# Usage
1 - Download the `generator.py` script

2 - Navigate to the directory where you've downloaded it to

3 - `python3 generator.py`

4 - `How many positions` - This defines, how many positions will be generated. If you choose 3, the output will be as follows:

![image](https://github.com/user-attachments/assets/e9d947b7-12ab-440a-9830-845177222a29)

5 - `Character(s) to substitute` - This defines what will be substituted instead of the `NULL` character.

6 - `How many substitutions:` - How many substitutions will be used per line. If you use 2 for example, the output will look like this:

![image](https://github.com/user-attachments/assets/c780aec2-3bfd-4863-9674-d8233d416794)

![gen](https://github.com/user-attachments/assets/ca4be39e-d72f-46f3-b581-72d23057b837)