-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
Hi,
I have the following issue I cannot quite understand (I'm using current git version of sqlmap on Kali). I'm not sure if this is a bug or if I'm simply too stupid.
- I have a meterpreter session with port forwarding of remote port 80 to local port 6666
- If I use my browser or wget to retrieve url:
http://localhost:6666/index.php?search=foo
it works perfectly. - However if I use sqlmap:
./sqlmap.py -u http://localhost:6666/index.php?search=foo
I get the "[CRITICAL] connection dropped or unknown HTTP status code received" error.
The strange thing is that if I trace sqlmap in wireshark I see the requests made by sqlmap and their HTTP 200 OK resposes from the server. Here's the TCP stream from wireshark:
GET /index.php?search=foo HTTP/1.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Host: localhost:6666
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
User-Agent: sqlmap/1.0-dev-59b6791 (http://sqlmap.org)
Accept-Charset: ISO-8859-15,utf-8;q=0.7,*;q=0.7
Connection: close
Pragma: no-cache
Cache-Control: no-cache,no-store
HTTP/1.1 200 OK
Date: Fri, 22 Nov 2013 13:16:26 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: PHP/5.4.4-14+deb7u5
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 284
Connection: close
Content-Type: text/html
..........u.]j. ....S.. ..E.R...e[..h2..D.....w44..
!...:..4..N.....<T..0q......./'%m......0>#..*nRi.'........^}...!.....Wm..m..4.mh.A.L^....&$.[-z$Q.._.....0..t.Q..+..\.bA../@.....i...+..;.k....I....`.m........,.L.....%....\L|-..3...0w..B...sv...?..|.I.7.....MY..;-j.x.z.c...y|
Can anyone clarify what I'm missing here? Thanks!