I can inject SQL with sqlmap but am unable to understand how this works. There is no echo
or print
command on my script, but sqlmap returns data with database name and details.
Here is the instance it has found:
$sql ="SELECT * FROM application where id=$id";
$act_res = mysql_query($sql);
If there is no echo or print and I also stop error reporting then how did sqlmap got information by sql injection?