Author Topic: Error while SQL injection.  (Read 485 times)

0 Members and 1 Guest are viewing this topic.

Offline warres

  • NULL
  • Posts: 2
  • Cookies: -2
    • View Profile
Error while SQL injection.
« 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 :/

Offline madf0x

  • Knight
  • **
  • Posts: 172
  • Cookies: 50
    • View Profile
Re: Error while SQL injection.
« Reply #1 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.

Offline HexEngineer

  • /dev/null
  • *
  • Posts: 12
  • Cookies: 0
    • View Profile
Re: Error while SQL injection.
« Reply #2 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.

Offline Ech0x7

  • NULL
  • Posts: 3
  • Cookies: -1
    • View Profile
Re: Error while SQL injection.
« Reply #3 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