This forum is in archive mode. You will not be able to post new content.

Author Topic: sqlmap - unable to target site using multiple GET parameters  (Read 692 times)

0 Members and 2 Guests are viewing this topic.

Offline AnAnimal

  • NULL
  • Posts: 4
  • Cookies: 0
    • View Profile
sqlmap - unable to target site using multiple GET parameters
« on: September 21, 2015, 12:04:05 PM »
Hi All,

I have searched through web and also the forum however I haven't found any answer.
I am learning how to use SQLmap and I encountered such obstacle. Whenever I try to query site e.g. site.com/?firstparam=1&secondparam=2&...&lastparam=x

sqlmap returns something like [1] 8340  - random number here and then proceeds to check only the first parameter (normal scan goes here). I tried -p, skip x, also --method GET, but the result was nothing happened, I also got a notification that either --method and --data commands are not recognised (took them from manual so  ::) )

Also, swapping parameters places with each other wouldn't help as the site I am dealing with seems to use the first parameter as an "Action" (like which subsite to use - news, gallery etc) and without it querying only the last one obviously treats it as non-injectable

I would be grateful for any advices how do you usually deal with multiple-parameters using SQLmap is it possible the sqlmap itself is kind of corrupted?

dotcppfile

  • Guest
Re: sqlmap - unable to target site using multiple GET parameters
« Reply #1 on: September 21, 2015, 03:25:14 PM »
Lol you just need to put the whole argument between quotes, example:

sqlmap -u "your site.com/asdfasdf?asdfasdf?ASDfasdf=asdfasdfasdf"

Offline Blackoutt

  • Serf
  • *
  • Posts: 31
  • Cookies: 4
  • Just fooling around
    • View Profile
Re: sqlmap - unable to target site using multiple GET parameters
« Reply #2 on: September 21, 2015, 08:24:23 PM »
Sometimes SQLMap bugs if the URL have more than one argument, like the example you used.

If is the case you can specify the parameter you want to test or skip the unwanted ones like the example:

sqlmap -u http://example/test.php?feature=music&song=1 --skip feature
sqlmap -u http://example/vuln/test.php? --data="feature=music&song=1" -p song

I think these examples are self explain :)

When I got this kind of error this syntax solved everything...
« Last Edit: September 21, 2015, 08:25:28 PM by Blackoutt »

Offline AnAnimal

  • NULL
  • Posts: 4
  • Cookies: 0
    • View Profile
Re: sqlmap - unable to target site using multiple GET parameters
« Reply #3 on: September 22, 2015, 01:28:36 PM »
thank you guys, when I'm back home I'll check these tips and share the results in this post

//EDIT it works, thanks
@.goethe thanks too
« Last Edit: September 22, 2015, 06:19:11 PM by AnAnimal »

Offline .goethe

  • /dev/null
  • *
  • Posts: 8
  • Cookies: 2
  • /dev/null
    • View Profile
Re: sqlmap - unable to target site using multiple GET parameters
« Reply #4 on: September 22, 2015, 05:29:50 PM »
use * to mark the vulnerable parameter. f.e.:
Code: [Select]
python sqlmap.py -u "http://www.vuln.com/page.php?id=1&param=test&vuln=*


 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.