SQL Injection (SQLi)
SQL injection (SQLi) is a web security vulnerability that allows an attacker to interfere with the queries a web application makes to its database. By manipulating input fields.
Enumeration
MySQL
mysql -u root -p'root' -h 192.168.191.16 -P 3306select version();select system_user();show databases;select user, authentication_string from mysql.user where user = '<username>';select * from mysql.user where user = 'offsec'\G;MSSQL
Manual Exploitation
Error Based
Union Based
Boolean-Based
MSSQL System Procedures
Create Files
Automated Exploitation
References
Last updated
