EvilZone

Hacking and Security => Hacking and Security => Topic started by: warres on December 31, 2014, 05:30:24 PM

Title: Error while SQL injection.
Post by: warres on December 31, 2014, 05:30:24 PM
Hey guys , I just tried SQL injecting a website but I always keep getting this error
"Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/agit/site.php on line 422"
What does this mean ? I mean for every order by command , i get this.

Would be great if somebody helped me out here :D Sorry for being such a newb :/
Title: Re: Error while SQL injection.
Post by: madf0x on December 31, 2014, 06:19:34 PM
it means the resulting syntax is wrong, go back to basics, also google could have given you this answer.
Title: Re: Error while SQL injection.
Post by: HexEngineer on January 03, 2015, 07:47:04 PM
You could try adding -- after you query. If you aren't familiar with SQL better learn it first before start exploiting. Also mysql_fetch_assoc() is function in PHP, this is probably the most widely used programming language for back-end development it's good to learn it too.
In case you want recommendation about resources, in my opinion it depent on your experience.

P.S.
Sorry for my bad grammar.
Title: Re: Error while SQL injection.
Post by: Ech0x7 on January 06, 2015, 10:01:21 PM
plus from what you showed, you don't need to go worring about path discovery , as the error page is not custom.. again you do have to understand sql and its query to inject .. google is our lover , so don't be shy to use it.. p.s