Basic Injection
30 points Easy

See if you can leak the whole database using what you know about SQL Injections. link

Don't know where to begin? Check out CTFlearn's SQL Injection Lab

Flag
Rating 4.60
5
4
3
2
1

Discussion

cukup membuat mumet... karna mesin pada lab tidak bisa di luncurkan brooooo.....

0

A lot of people overthink it just remember were and not to put the keywords

0

A lot of people overthink it just remember were and not to put the keywords

0

A lot of people overthink it just remember were and not to put the keywords

0

A lot of people overthink it just remember were and not to put the keywords

0

A lot of people overthink it just remember were and not to put the keywords

0
Protected
0

A lot of people overthink it just remember were and not to put the keywords

0

A lot of people overthink it just remember were and not to put the keywords

0

A lot of people overthink it just remember were and not to put the keywords

0

Why ' or 1=1 -- not work?

8

This will work ' or '1' = '1

3

spoiler alert

-3
Protected
-9

I would also want to know why ' OR 1 = 1; -- statement does not work, but ' OR '1' = '1 is working. This ' OR '1' = '1 is mentioned in The Lab. I think reading Wikipedia SQL injection will help me to understand it. Also I like that comments supports markdown :)

0

You forgot to include the semicolon - it should read: ' OR 1 = 1; --. Also, keep in mind that in MySQL, comments must include a space after the double dash. See the "Comments" section in: https://portswigger.net/web-security/sql-injection/cheat-sheet

0