Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

SQL injection Blind


ghost's Avatar
0 0

i am on this site that in susceptible to blind sql injection….i was wondering is there a way to find out the name of a table


ghost's Avatar
0 0

that's the point of "blind" SQL injection, you have to guess the table..

first, try to find out the number of columns, ex: index.php?whatever=1 order by 3,4,5,etc

then do:

UNION ALL SELECT lots of nulls.. FROM username,user_name,members,password,pass,etc…

UNION ALL SELECT null,null,null,null(4 columns) FROM members

..correct me if im wrong :o


ghost's Avatar
0 0

laverdad wrote: i am on this site that in susceptible to blind sql injection….i was wondering is there a way to find out the name of a table

ehh, wouldn't you know that having completed the relevant challenges? of course, people forget things, that's understandable.


ghost's Avatar
0 0

i know how many columns and the name of the columns i need. it is just the table name i need to know. Plus real-world web hacking is not always like these HBH challenges.


ghost's Avatar
0 0

laverdad wrote: i know how many columns and the name of the columns i need. it is just the table name i need to know. Plus real-world web hacking is not always like these HBH challenges.

oh i know, i know. =P


ghost's Avatar
0 0

sent it


ghost's Avatar
0 0

try selecting table / column names from the information_schema database. probably won't have access to it though.