I used some vulnerability scanners to check a site of mine, and an instance of blind SQL injection was returned. However, when I try to exploit this vulnerability by entering the following into the address bar, nothing happens:
http://www.example.com/articles.php?id=-1' or 68 = '66; DROP ALL TABLES; --
I don't see why this isn't working. What is the correct text I must enter into the address bar to drop all the tables (and yes, I am testing this on a backup copy of the site)?
mysqli_query
, you’re probably not allowed to execute multiple statements at once. You would needmysqli_multi_query
instead.