aboul3la / Sublist3r

Fast subdomains enumeration tool for penetration testers
GNU General Public License v2.0
9.67k stars 2.09k forks source link

Process NetcraftEnum-7 Error #147

Open sidtechnical opened 5 years ago

sidtechnical commented 5 years ago

Seems like an old issue, but still bothering me!

Python 3.6.5, Python 2.7.15 -- pip 18.0

Process NetcraftEnum-7: Traceback (most recent call last):

 File "/home/username/anaconda3/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "sublist3r.py", line 264, in run
    domain_list = self.enumerate()
  File "sublist3r.py", line 561, in enumerate
    cookies = self.get_cookies(resp.headers)
  File "sublist3r.py", line 553, in get_cookies
    cookies = self.create_cookies(headers['set-cookie'])
  File "sublist3r.py", line 548, in create_cookies
    cookies['netcraft_js_verification_response'] = hashlib.sha1(urllib.unquote(cookies_list[1])).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
paradiseduo commented 5 years ago

Unicode-objects must be encoded before hashing

rscipher001 commented 5 years ago

Same error here.

rscipher001 commented 5 years ago

Today I ran sudo pip3 install -r requirements.txt in my Ubuntu 18.04 and the error is gone.

Python 3.6.7 pip 9.0.1