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

https://github.com/axion-security/goinjection

Automated SQL Injection written in Golang
https://github.com/axion-security/goinjection

blind-based error-based sql sql-injection union-based

Last synced: 5 months ago
JSON representation

Automated SQL Injection written in Golang

Awesome Lists containing this project

README

        

# GoInjection
![GoInjection Banner](img.png)


πŸ”§ Features |
πŸ›‘οΈ WAF Identification |
πŸ” Fingerprinting |
πŸ’₯ Injection Types |
🎨 GUI |
βš™οΈ SQL Query Builder



CI Status


License


Stars

## πŸš€ Features

### πŸ›‘οΈ WAF Identification
- Detect Web Application Firewalls (WAFs) by analyzing HTTP headers and server responses.
- Identifies potential WAFs based on changes in response status codes and content patterns.

### πŸ” Fingerprinting
- Automatically detects the type of database by analyzing errors and executing advanced SQL injection techniques like UNION and stacked queries.
- Custom tool-generated queries ensure precise fingerprinting.

### βš™οΈ Interpreter
- Automatically selects the correct SQL dialect (MySQL, PostgreSQL, MSSQL, etc.) based on the target DBMS.
- Ensures the right syntax for effective SQL injections.

### 🧩 Resolver
- In development, this feature helps identify table columns and the name of the current database for more advanced injections.
- Essential for gaining deeper access to database structures.

### πŸ’₯ Injection Types
- Supports **Blind Injections** (Boolean and Time-based), **Error-based Injections**, and **UNION-based Injections**.
- Queries for these injection types are automatically created by the tool’s custom query generator.

### 🎨 GUI (Graphical User Interface)
- Modern, user-friendly interface designed to simplify the process, making it accessible for both experienced pentesters and beginners.
- Features intuitive controls for both new and experienced users.

### βš™οΈ SQL Query Builder
- Generates tailored SQL payloads for each DBMS, optimizing query structure, including custom openings, endings, and elements.
- Fully automated query builder for each injection type.

## πŸ“¦ Installation

### Prerequisites:
Ensure you have Python 3.x installed and the required dependencies:

```bash
pip install flask pymysql
```

### Setup:
Clone the repository and install dependencies:

```bash
git clone https://github.com/Axion-Security/GoInjection.git
pip install flask pymysql
```

## πŸ“ Usage Example

Set up a basic SQL Injection Lab for testing:

```sql
USE sql_injection_lab;

CREATE TABLE IF NOT EXISTS products (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
price DECIMAL(10, 2) NOT NULL
);

INSERT INTO products (name, price) VALUES
('Laptop', 799.99),
('Smartphone', 599.99),
('Tablet', 399.99),
('Headphones', 49.99),
('Smartwatch', 199.99);
```

## πŸ”‘ License

This project is licensed under the [License](/LICENSE). See the `LICENSE` file for more details.