Re: [sqlmap-users] bug report
Brought to you by:
inquisb
From: Miroslav S. <mir...@gm...> - 2011-01-28 13:38:37
|
hi. this is a "relative" of a bug reported by black zero <tim...@gm...> dated 12/28/10 ([sqlmap-users] UnicodeEncodeError: 'ascii') which was patched at non-optimization level (normal connection module). now, it's being done at the keepalive module too. problem is introduced because of "non-ASCII conformant chars are used in headers" which python's httplib and urllib2 have (KNOWN) problems with. now, those problematic header values/characters are converted to the format described in http://en.wikipedia.org/wiki/Unicode_and_HTML. kr p.s. please update and report if problem(s) persist On Fri, Jan 28, 2011 at 2:01 PM, m4l1c3 <mal...@gm...> wrote: > ./sqlmap.py -g "domain.xx ext:php" --dbs --batch -o > > sqlmap version: 0.9-dev (r3122) > Python version: 2.5.2 > Operating system: posix > Traceback (most recent call last): > File "./sqlmap.py", line 83, in main > start() > File "/pentest/database/sqlmap-dev/lib/controller/controller.py", line > 254, in start > checkNullConnection() > File "/pentest/database/sqlmap-dev/lib/controller/checks.py", line 748, in > checkNullConnection > page, headers = Request.getPage(method=HTTPMETHOD.HEAD) > File "/pentest/database/sqlmap-dev/lib/request/connect.py", line 197, in > getPage > conn = urllib2.urlopen(req) > File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen > return _opener.open(url, data) > File "/usr/lib/python2.5/urllib2.py", line 381, in open > response = self._open(req, data) > File "/usr/lib/python2.5/urllib2.py", line 399, in _open > '_open', req) > File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain > result = func(*args) > File "/pentest/database/sqlmap-dev/extra/keepalive/keepalive.py", line > 208, in http_open > return self.do_open(HTTPConnection, req) > File "/pentest/database/sqlmap-dev/extra/keepalive/keepalive.py", line > 179, in do_open > self._start_connection(h, req) > File "/pentest/database/sqlmap-dev/extra/keepalive/keepalive.py", line > 138, in _start_connection > h.endheaders() > File "/pentest/database/sqlmap-dev/extra/keepalive/keepalive.py", line > 336, in endheaders > self._send_output() > File "/usr/lib/python2.5/httplib.py", line 732, in _send_output > self.send(msg) > File "/usr/lib/python2.5/httplib.py", line 711, in send > self.sock.sendall(str) > File "<string>", line 1, in sendall > UnicodeEncodeError: 'ascii' codec can't encode characters in position 82-87: > ordinal not in range(128) > > > This doesn't look like problem to me, but I thought I'd pass it on if I > missed something. > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > sqlmap-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlmap-users > > -- Miroslav Stampar E-mail / Jabber: miroslav.stampar (at) gmail.com Mobile: +385921010204 (HR 0921010204) PGP Key ID: 0xB5397B1B Location: Zagreb, Croatia |