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

Error responses from web attack crash program #32

Closed
darinrogers opened this issue Jan 17, 2016 · 5 comments
Closed

Error responses from web attack crash program #32

darinrogers opened this issue Jan 17, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@darinrogers
Copy link
Contributor

If a call returns an error status code (e.g. 422, which is a valid response in my app as it tells the browser that the call didn't succeed and to show an error to the user), the program crashes. The stack trace looks like this:

Sending random parameter value...
Traceback (most recent call last):
File "/usr/local/bin/NoSQLMap", line 9, in
load_entry_point('NoSQLMap==0.5', 'console_scripts', 'NoSQLMap')()
File "/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py", line 60, in main

File "/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py", line 115, in mainMenu

File "/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py", line 534, in postApps

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 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 422: Unprocessable Entity

@tcstool
Copy link
Collaborator

tcstool commented Jan 17, 2016

Good catch. I am rewriting the web request handling as part of issue 31. I
will include a fix for this. Thanks!

On Saturday, January 16, 2016, Darin Rogers notifications@github.com
wrote:

If a call returns an error status code (e.g. 422, which is a valid
response in my app as it tells the browser that the call didn't succeed and
to show an error to the user), the program crashes. The stack trace looks
like this:

Sending random parameter value...
Traceback (most recent call last):
File "/usr/local/bin/NoSQLMap", line 9, in
load_entry_point('NoSQLMap==0.5', 'console_scripts', 'NoSQLMap')()
File
"/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py",
line 60, in main

File
"/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py",
line 115, in mainMenu

File
"/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py",
line 534, in postApps

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 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 422: Unprocessable Entity


Reply to this email directly or view it on GitHub
#32.

@odinn1984
Copy link

@tcstool any update here?

@tcstool
Copy link
Collaborator

tcstool commented Aug 22, 2017

Project has a new maintainer now, this should be fixed shortly.

@codingo codingo self-assigned this Aug 22, 2017
@codingo
Copy link
Owner

codingo commented Aug 22, 2017

Hi @darinrogers @odinn1984, as @tcstool mentioned I came on board yesterday. At the moment I'm looking for a design pattern that makes sense as well as doing some minor refactoring to learn my way around every part of the project. As a part of that I will be re-writing the HTTP module and I'll touch base in this thread as that work lands. Shouldn't be much longer!

@codingo
Copy link
Owner

codingo commented Oct 27, 2017

Closed with #61

@codingo codingo closed this as completed Oct 27, 2017
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

4 participants