Javier,

    Could you please take a look at this bug after finishing with
Ctrl+C handling?

Regards,

On Thu, Dec 15, 2011 at 5:51 AM, Adi Mutu <[email protected]> wrote:
> Error in grep plugin, "httpAuthDetect" raised the exception: 'ascii' codec
> can't decode byte 0xdd in position 1: ordinal not in range(128). Please
> report this bug to the w3af sourceforge project page [
> https://sourceforge.net/apps/trac/w3af/newticket ]
> Exception: Traceback (most recent call last):
>   File "/opt/.   /w3af/core/data/url/xUrllib.py", line 845, in _grep_worker
>     timedout_grep_wrapper(request, response)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xdd in position 1:
> ordinal not in range(128)
>
> Traceback (most recent call last):
>   File "/opt/.   /w3af/core/controllers/misc/timeout_function.py", line 76,
> in run
>     self._result_ = function(*args, **kwds)
>   File "/opt/.   /w3af/core/controllers/basePlugin/baseGrepPlugin.py", line
> 61, in grep_wrapper
>     self.grep(fuzzableRequest, response)
>   File "/opt/.   /w3af/plugins/grep/httpAuthDetect.py", line 151, in grep
>     self._find_auth_uri(response)
>   File "/opt/.   /w3af/plugins/grep/httpAuthDetect.py", line 186, in
> _find_auth_uri
>     documentParser = dpCache.dpc.getDocumentParserFor(response)
>   File "/opt/.   /w3af/core/data/parsers/dpCache.py", line 69, in
> getDocumentParserFor
>     res = documentParser.documentParser(httpResponse)
>   File "/opt/.   /w3af/core/data/parsers/documentParser.py", line 52, in
> __init__
>     parser = swfParser.swfParser(httpResponse)
>   File "/opt/.   /w3af/core/data/parsers/swfParser.py", line 46, in __init__
>     self._parse(swf)
>   File "/opt/.   /w3af/core/data/parsers/swfParser.py", line 82, in _parse
>     self._regex_url_parse(swf_body)
>   File "/opt/.   /w3af/core/data/parsers/baseparser.py", line 289, in
> _regex_url_parse
>     re_urls.update(find_relative())
>   File "/opt/.   /w3af/core/data/parsers/baseparser.py", line 282, in
> find_relative
>     url = self._baseUrl.urlJoin(match_str).url_string
>   File "/opt/.   /w3af/core/data/parsers/urlParser.py", line 581, in urlJoin
>     joined_url = urlparse.urljoin( self.url_string, relative )
>   File "/usr/lib/python2.6/urlparse.py", line 219, in urljoin
>     params, query, fragment))
>   File "/usr/lib/python2.6/urlparse.py", line 184, in urlunparse
>     return urlunsplit((scheme, netloc, url, query, fragment))
>   File "/usr/lib/python2.6/urlparse.py", line 190, in urlunsplit
>     url = '//' + (netloc or '') + url
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xdd in position 1:
> ordinal not in range(128)
>
>
> Unhandled error, traceback: Traceback (most recent call last):
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 440, in start
>     self._realStart()
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 539, in
> _realStart
>     self._fuzzableRequestList = self._discover_and_bruteforce()
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 351, in
> _discover_and_bruteforce
>     discovered_fr_list = self._discover( tmp_list )
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 770, in _discover
>     result = self._discoverWorker( toWalk )
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 842, in
> _discoverWorker
>     pluginResult = plugin.discover_wrapper( fr )
>   File "/opt/.   /w3af/core/controllers/basePlugin/baseDiscoveryPlugin.py",
> line 48, in discover_wrapper
>     return self.discover( fuzzable_request_copy )
>   File "/opt/.   /w3af/plugins/discovery/webSpider.py", line 203, in
> discover
>     self._tm.join(self)
>   File "/opt/.   /w3af/core/controllers/threads/threadManager.py", line 120,
> in join
>     self._threadPool.wait( ownerObj, joinAll )
>   File "/opt/.   /w3af/core/controllers/threads/threadpool.py", line 271, in
> wait
>     self.poll(block=True, ownerObj=ownerObj, joinAll=joinAll)
>   File "/opt/.   /w3af/core/controllers/threads/threadpool.py", line 108, in
> run
>     self.resultQueue.put( (request, request.callable(*request.args,
> **request.kwds)) )
>   File "/opt/.   /w3af/plugins/discovery/webSpider.py", line 343, in
> _verify_reference
>     request=original_request)
>   File "/opt/.   /w3af/core/controllers/basePlugin/baseDiscoveryPlugin.py",
> line 63, in _createFuzzableRequests
>     return createFuzzableRequests( httpResponse, request, add_self )
>   File "/opt/.   /w3af/core/data/request/frFactory.py", line 78, in
> createFuzzableRequests
>     dp = dpCache.dpc.getDocumentParserFor(http_resp)
>   File "/opt/.   /w3af/core/data/parsers/dpCache.py", line 69, in
> getDocumentParserFor
>     res = documentParser.documentParser(httpResponse)
>   File "/opt/.   /w3af/core/data/parsers/documentParser.py", line 52, in
> __init__
>     parser = swfParser.swfParser(httpResponse)
>   File "/opt/.   /w3af/core/data/parsers/swfParser.py", line 46, in __init__
>     self._parse(swf)
>   File "/opt/.   /w3af/core/data/parsers/swfParser.py", line 82, in _parse
>     self._regex_url_parse(swf_body)
>   File "/opt/.   /w3af/core/data/parsers/baseparser.py", line 289, in
> _regex_url_parse
>     re_urls.update(find_relative())
>   File "/opt/.   /w3af/core/data/parsers/baseparser.py", line 282, in
> find_relative
>     url = self._baseUrl.urlJoin(match_str).url_string
>   File "/opt/.   /w3af/core/data/parsers/urlParser.py", line 581, in urlJoin
>     joined_url = urlparse.urljoin( self.url_string, relative )
>   File "/usr/lib/python2.6/urlparse.py", line 219, in urljoin
>     params, query, fragment))
>   File "/usr/lib/python2.6/urlparse.py", line 184, in urlunparse
>     return urlunsplit((scheme, netloc, url, query, fragment))
>   File "/usr/lib/python2.6/urlparse.py", line 190, in urlunsplit
>     url = '//' + (netloc or '') + url
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xdd in position 1:
> ordinal not in range(128)
>
>
> Scan finished in 20 seconds.
> Exception in thread Thread-26:
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner
>     self.run()
>   File "/usr/lib/python2.6/threading.py", line 477, in run
>     self.__target(*self.__args, **self.__kwargs)
>   File "/opt/.   /w3af/core/ui/consoleUi/rootMenu.py", line 112, in
> _real_start
>     self._w3af.start()
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 440, in start
>     self._realStart()
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 539, in
> _realStart
>     self._fuzzableRequestList = self._discover_and_bruteforce()
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 351, in
> _discover_and_bruteforce
>     discovered_fr_list = self._discover( tmp_list )
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 770, in _discover
>     result = self._discoverWorker( toWalk )
>   File "/opt/.   /w3af/core/controllers/w3afCore.py", line 842, in
> _discoverWorker
>     pluginResult = plugin.discover_wrapper( fr )
>   File "/opt/.   /w3af/core/controllers/basePlugin/baseDiscoveryPlugin.py",
> line 48, in discover_wrapper
>     return self.discover( fuzzable_request_copy )
>   File "/opt/.   /w3af/plugins/discovery/webSpider.py", line 203, in
> discover
>     self._tm.join(self)
>   File "/opt/.   /w3af/core/controllers/threads/threadManager.py", line 120,
> in join
>     self._threadPool.wait( ownerObj, joinAll )
>   File "/opt/.   /w3af/core/controllers/threads/threadpool.py", line 271, in
> wait
>     self.poll(block=True, ownerObj=ownerObj, joinAll=joinAll)
>   File "/opt/.   /w3af/core/controllers/threads/threadpool.py", line 108, in
> run
>     self.resultQueue.put( (request, request.callable(*request.args,
> **request.kwds)) )
>   File "/opt/.   /w3af/plugins/discovery/webSpider.py", line 343, in
> _verify_reference
>     request=original_request)
>   File "/opt/.   /w3af/core/controllers/basePlugin/baseDiscoveryPlugin.py",
> line 63, in _createFuzzableRequests
>     return createFuzzableRequests( httpResponse, request, add_self )
>   File "/opt/.   /w3af/core/data/request/frFactory.py", line 78, in
> createFuzzableRequests
>     dp = dpCache.dpc.getDocumentParserFor(http_resp)
>   File "/opt/.   /w3af/core/data/parsers/dpCache.py", line 69, in
> getDocumentParserFor
>     res = documentParser.documentParser(httpResponse)
>   File "/opt/.   /w3af/core/data/parsers/documentParser.py", line 52, in
> __init__
>     parser = swfParser.swfParser(httpResponse)
>   File "/opt/.   /w3af/core/data/parsers/swfParser.py", line 46, in __init__
>     self._parse(swf)
>   File "/opt/.   /w3af/core/data/parsers/swfParser.py", line 82, in _parse
>     self._regex_url_parse(swf_body)
>   File "/opt/.   /w3af/core/data/parsers/baseparser.py", line 289, in
> _regex_url_parse
>     re_urls.update(find_relative())
>   File "/opt/.   /w3af/core/data/parsers/baseparser.py", line 282, in
> find_relative
>     url = self._baseUrl.urlJoin(match_str).url_string
>   File "/opt/.   /w3af/core/data/parsers/urlParser.py", line 581, in urlJoin
>     joined_url = urlparse.urljoin( self.url_string, relative )
>   File "/usr/lib/python2.6/urlparse.py", line 219, in urljoin
>     params, query, fragment))
>   File "/usr/lib/python2.6/urlparse.py", line 184, in urlunparse
>     return urlunsplit((scheme, netloc, url, query, fragment))
>   File "/usr/lib/python2.6/urlparse.py", line 190, in urlunsplit
>     url = '//' + (netloc or '') + url
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xdd in position 1:
> ordinal not in range(128)
>
> Exception in thread Thread-19:
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner
>     self.run()
>   File "/opt/.   /w3af/core/controllers/threads/threadpool.py", line 108, in
> run
>     self.resultQueue.put( (request, request.callable(*request.args,
> **request.kwds)) )
>   File "/opt/.   /w3af/plugins/discovery/webSpider.py", line 269, in
> _verify_reference
>     headers=headers)
>   File "/opt/.   /w3af/core/controllers/basePlugin/basePlugin.py", line 261,
> in meth
>     return attr(*args, **kwargs)
>   File "/opt/.   /w3af/core/data/url/xUrllib.py", line 320, in GET
>     return self._send(req, useCache=useCache, grepResult=grepResult)
>   File "/opt/.   /w3af/core/data/url/xUrllib.py", line 493, in _send
>     self._callBeforeSend()
>   File "/opt/.   /w3af/core/data/url/xUrllib.py", line 109, in
> _callBeforeSend
>     self._sleepIfPausedDieIfStopped()
>   File "/opt/.   /w3af/core/data/url/xUrllib.py", line 138, in
> _sleepIfPausedDieIfStopped
>     raise KeyboardInterrupt
> KeyboardInterrupt
>
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Server Consolidation
> Server virtualization is being driven by many needs.
> But none more important than the need to reduce IT complexity
> while improving strategic productivity.  Learn More!
> http://www.accelacomm.com/jaw/sdnl/114/51507609/
> _______________________________________________
> W3af-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/w3af-users
>



-- 
Andrés Riancho
Director of Web Security at Rapid7 LLC
Founder at Bonsai Information Security
Project Leader at w3af

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
W3af-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/w3af-users

Reply via email to