stampery / mongoaudit

🔥 A powerful MongoDB auditing and pentesting tool 🔥
https://mongoaud.it
MIT License
1.32k stars 136 forks source link

NameError: global name 'urllib2' is not defined #47

Closed liyakhatalisheikh closed 3 years ago

liyakhatalisheikh commented 4 years ago

While exporting basic or advanced report through email getting NameError: global name 'urllib2' is not defined error

Python 2.7 MongoDB shell version v3.6.3

LRRH commented 3 years ago

has this been resolved? I am still getting the error.

elecay commented 3 years ago

Which version of mongoaudit are you using?

LRRH commented 3 years ago

Successfully installed mongoaudit-0.1.0 pymongo-3.11.1 urwid-2.1.2

I notice that some of the files online were different than the ones installed. For instance, the tools.py file on my laptop and the tools.py file on the git page are not the same.

On Wed, Dec 2, 2020 at 4:50 PM Sebastián Rajo notifications@github.com wrote:

Which version of mongoaudit are you using?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stampery/mongoaudit/issues/47#issuecomment-737543313, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJKHYFOZKCIQJ6DTLI2EDLSS3AC3ANCNFSM4KB7VI5A .

-- Jacob Goodson

elecay commented 3 years ago

That issue is already fixed. I have no permission to update pip with the new version. You can download the latest release from here: https://github.com/stampery/mongoaudit/archive/0.1.1.zip

Then:

  1. Remove previous installation
  2. Unzip the zip file. Go to the folder mongoaudit-0.1.1 and run: python setup.py install
  3. Run mongoaudit
LRRH commented 3 years ago

what's the best way to remove the previous version?

On Wed, Dec 2, 2020 at 5:14 PM Sebastián Rajo notifications@github.com wrote:

That issue is already fixed. I have no permission to update pip with the new version. You can download the latest release from here: https://github.com/stampery/mongoaudit/archive/0.1.1.zip

Then:

  1. Remove previous installation
  2. Unzip the zip file. Go to the folder mongoaudit-0.1.1 and run: python setup.py install
  3. Run mongoaudit

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stampery/mongoaudit/issues/47#issuecomment-737552706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJKHYBBXCKSWLJJ5VINOMLSS3C5VANCNFSM4KB7VI5A .

-- Jacob Goodson

elecay commented 3 years ago

what's the best way to remove the previous version?

pip uninstall mongoaudit