Letractively / golismero

Automatically exported from code.google.com/p/golismero
0 stars 0 forks source link

KeyboardInterrupts not handled #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce:
1. Scan
2. Send interrupt via keyboard (ctrl+c)

Expected output:
Clean output of results without Python errors. Results should include findings 
so far.

What I see instead:
^@^CTraceback (most recent call last):
  File "./GoLismero.py", line 143, in <module>
    GoLISMERO_Main(PARAMETERS)
  File "/home/fgeek/scm/golismero/api.py", line 296, in GoLISMERO_Main
    spider(PARAMETERS)
  File "/home/fgeek/scm/golismero/libs/spider.py", line 42, in spider
    _spider(Parameters.TARGET, Parameters.RECURSIVITY)
  File "/home/fgeek/scm/golismero/libs/spider.py", line 60, in _spider
    pageraw,http_code = downloadURL(page, gParameters)
  File "/home/fgeek/scm/golismero/libs/io_net.py", line 195, in downloadURL
    f = opener.open(page, timeout=20) # 30 segundos
  File "/usr/lib/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 429, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 605, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.6/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/usr/lib/python2.6/urllib2.py", line 409, in _open
    '_open', req)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 1170, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.6/urllib2.py", line 1142, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.6/httplib.py", line 914, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.6/httplib.py", line 951, in _send_request
    self.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 739, in send
    self.connect()
  File "/usr/lib/python2.6/httplib.py", line 720, in connect
    self.timeout)
  File "/usr/lib/python2.6/socket.py", line 547, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
KeyboardInterrupt

Original issue reported on code.google.com by he...@nerv.fi on 14 Nov 2011 at 8:28

GoogleCodeExporter commented 8 years ago
Thank you henry, I will fix it on next version.

Original comment by garcia.g...@gmail.com on 14 Nov 2011 at 8:55

GoogleCodeExporter commented 8 years ago
My name is Henri :)

Original comment by he...@nerv.fi on 15 Nov 2011 at 9:33

GoogleCodeExporter commented 8 years ago
Ups! I'm sorry Henri.

Original comment by garcia.g...@gmail.com on 15 Nov 2011 at 9:42

GoogleCodeExporter commented 8 years ago
Fixed in version 0.7

Original comment by garcia.g...@gmail.com on 16 Nov 2011 at 10:31