Fix SHA hashing and Unicode issue in python3
This commit is contained in:
parent
7c4dddce73
commit
e6c89c3a9b
|
|
@ -94,7 +94,6 @@ def banner():
|
||||||
|
|
||||||
# Based on Sublist3r by Ahmed Aboul-Ela - @aboul3la
|
# Based on Sublist3r by Ahmed Aboul-Ela - @aboul3la
|
||||||
# Forked by Carl Pearson - github.com/fleetcaptain
|
# Forked by Carl Pearson - github.com/fleetcaptain
|
||||||
# v1.0
|
|
||||||
""" % (R, W, Y))
|
""" % (R, W, Y))
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -572,7 +571,7 @@ class NetcraftEnum(enumratorBaseThreaded):
|
||||||
cookies = dict()
|
cookies = dict()
|
||||||
cookies_list = cookie[0:cookie.find(';')].split("=")
|
cookies_list = cookie[0:cookie.find(';')].split("=")
|
||||||
cookies[cookies_list[0]] = cookies_list[1]
|
cookies[cookies_list[0]] = cookies_list[1]
|
||||||
cookies['netcraft_js_verification_response'] = hashlib.sha1(urllib.unquote(cookies_list[1])).hexdigest()
|
cookies['netcraft_js_verification_response'] = hashlib.sha1((urllib.unquote(cookies_list[1])).encode('utf-8')).hexdigest()
|
||||||
return cookies
|
return cookies
|
||||||
|
|
||||||
def get_cookies(self, headers):
|
def get_cookies(self, headers):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue