Inj3ction Time
100 points Hard

I stumbled upon this website: http://web.ctflearn.com/web8/ and I think they have the flag in their somewhere. UNION might be a helpful command

Flag
Rating 4.71
5
4
3
2
1

Discussion

sqlmap is carring

0

as a hint try finding number of columns, try union and then try finding table name, then column name and then find column name from table name

0

try not to use any tool do it manually for better learning

0

Good Challenge i used splmap in Linux

0

Hackbar

0
avatar
Raye

10 months ago

sqlmap is a blessing from jeebus

0
Protected
0

Thanks

0
Protected
1

Nice Challenge , it took almost 1h to refresh my skills and solve it , but i need more complex Examples rather than redtiger , if someone have more complex examples please leave the link ....

0

Hello,

I have a doubt.

when given an id, it returns 3 text values (name,breed and color). When I try the payload (id=1+union+select+'a','b','c','d') why is it returning nothing.

because since when an id is given it is returning text values the result from the union operation should be text values or union query will fail.

but when I use the below payload it is working fine. id=1+union+select+1,2,3,4

the above query should cause error and should not give any results. But the app is returning 1,2,3 values on to the website.

What is happening here? Could anyone explain me?

Thanks

6

quick update:- inplace of 1 in id=1+union+select+1,2,3,4 I have used 'a'. SO the query now is

id=1+union+select+'a',2,3,4. <---- This is returning 0 results.

But when I use below query it is returning table names.

id=1+union+select+table_name,2,3,4 from information_schema.tables <---- returns table names

No idea why. Could someone please explain?

THanks

0

Because the sever use mysql_real_escape_string, which will change the quotation marks. You need to encode string to hex, i.e. id=1+union+select+0x61,0x62,0x63,0x64.

13

I don't know if you solved it yet but you inspired me, thanks.

0
Protected
0