merge #5712: [hentainexus] update key
This commit is contained in:
@@ -77,9 +77,13 @@ class HentainexusGalleryExtractor(GalleryExtractor):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _decode(data):
|
def _decode(data):
|
||||||
# https://hentainexus.com/static/js/reader.min.js?r=13
|
# https://hentainexus.com/static/js/reader.min.js?r=22
|
||||||
|
hostname = "hentainexus.com"
|
||||||
primes = (2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53)
|
primes = (2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53)
|
||||||
blob = binascii.a2b_base64(data)
|
blob = list(binascii.a2b_base64(data))
|
||||||
|
for i in range(0, len(hostname)):
|
||||||
|
blob[i] = blob[i] ^ ord(hostname[i])
|
||||||
|
|
||||||
key = blob[0:64]
|
key = blob[0:64]
|
||||||
|
|
||||||
C = 0
|
C = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user