DanMcInerney / net-creds

Sniffs sensitive data from interface or pcap
GNU General Public License v3.0
1.65k stars 432 forks source link

Error: while import urllib #35

Open Zevobla opened 4 years ago

Zevobla commented 4 years ago

Traceback (most recent call last): File "net-creds.py", line 15, in from urllib import unquote ImportError: cannot import name 'unquote' from 'urllib' (/usr/lib64/python3.8/urllib/init.py)

python: 3.8.3 pip: pip 19.3.1 from /usr/lib/python3.8/site-packages/pip (python 3.8)

Please, help me.

moseswynn commented 3 years ago

In Python 3 urllib has been broken down into 4 modules. To correct this it should be changed to from urllib.parse import unquote. Judging by the shebang at the top of the file, net-creds is meant to be used with Python 2 only.