Hello,
I’m trying to do the Case6 that requires me to set the correct values on --prefix
and --suffix
arguments but with no luck.
I tried also by using --level 5
and --risk 3
values hoping that the boundaries were there but of course the exercise pushes me to think or fuzz any possible boundary string.
The structure of my command is:
sqlmap ‘http://142.93.35.92:31459/case6.php?col=id’ -H ‘User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0’ -H ‘Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8’ -H ‘Accept-Language: en-US,en;q=0.5’ --compressed -H ‘DNT: 1’ -H ‘Connection: keep-alive’ -H ‘Upgrade-Insecure-Requests: 1’ -H ‘Sec-GPC: 1’ -H ‘Cache-Control: max-age=0’ -p col --prefix= --suffix= --level 5 --risk 3 --dbs -v 3
I used different strings for PREFIX and SUFFIX but I guess that they were already injected with that --level
and --risk
values.
For example, I tried to use:
–prefix=“%'))” --suffix=“-- -”
–prefix=“’ SELECT * FROM users” --suffix=“'-- "
–prefix=”‘" --suffix=“-- -”
–prefix="’)" --suffix=“;–+”
–prefix “')” --suffix “AND (SELECT * FROM users”
with no luck.
How can I guess what could be the right boundaries (or atleast if I’m in a good way) if I cannot see the php code containing for example:
$query = “SELECT id,name,surname FROM users WHERE id LIKE (('” . $_GET[“q”] . “')) LIMIT 0,1”;
Should I “brute-force” the boundaries?
Thank you in advance