codingo / NoSQLMap

Automated NoSQL database enumeration and web application exploitation tool.
GNU General Public License v3.0
2.82k stars 576 forks source link

Getting KeyError when running NoSQLMap against couchdb #92

Closed sunilm12 closed 4 years ago

sunilm12 commented 4 years ago

I am fairly new to this script and therefore bear with my lack of expertise here. I am trying to run this against our internal system to see how vulnerable are we before we do pen-testing from professional guys. DB is couchdb and had selected the Enumerate Databases/Users/Passwords under "select an Attack"
Options were all correctly set: Platform is : CouchDB DNS/IP address was set: < cannot share> couchDB port is default( 5984) couchDB IP was set : < cannot share>

But for above mentioned option, I do get the tables but not the other information. nosqlmap crashed with the following error:

traceback (most recent call last): File "/usr/local/bin/nosqlmap.py", line 4, in import('pkg_resources').run_script('NoSQLMap==0.7', 'nosqlmap.py') File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 666, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1469, in run_script exec(script_code, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.7-py2.7.egg/EGG-INFO/scripts/nosqlmap.py", line 543, in

File "/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.7-py2.7.egg/EGG-INFO/scripts/nosqlmap.py", line 46, in main

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

File "/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.7-py2.7.egg/EGG-INFO/scripts/nsmcouch.py", line 135, in netAttacks

File "/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.7-py2.7.egg/EGG-INFO/scripts/nsmcouch.py", line 189, in enumDbs

KeyError: 'total_rows'

I am using python 2.x .

github-actions[bot] commented 4 years ago

Stale issue message