Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors due to Request being timeout #12

Open
a0xnirudh opened this issue Jan 25, 2016 · 0 comments
Open

Errors due to Request being timeout #12

a0xnirudh opened this issue Jan 25, 2016 · 0 comments
Labels

Comments

@a0xnirudh
Copy link
Owner

While most of the sites return proper errors while testing for sql injection, some sites will not respond anything back making the program wait for so long. This can lead to urllib2 Timeout exception (which is not handled properly) and program exits.

Traceback (most recent call last):
  File "WebXploiter.py", line 112, in <module>
    main()
  File "WebXploiter.py", line 104, in main
    webxpoit.sql.execute_all_func(args.u)
  File "/home/lucif3r/Documents/Projects/finalproject/WebXploiter/Modules/A1_injection/sql.py", line 22, in execute_all_func
    self.check_user_agent(target)
  File "/home/lucif3r/Documents/Projects/finalproject/WebXploiter/Modules/A1_injection/sql.py", line 49, in check_user_agent
    flag = str(urllib2.urlopen(req).read())
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 408: REQUEST_TIMEOUT

@tuarjun tuarjun added the bug label Jan 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants