scripts(get_session): fix chrome cookie decryption

This commit is contained in:
Felix Bargfeldt 2024-11-23 06:46:18 +01:00
parent 51ead1c1a7
commit eaa68b191b
Signed by: Defelo
GPG key ID: 2A05272471204DD3

View file

@ -14,7 +14,7 @@ key = PBKDF2("peanuts", b"saltysalt", 16, 1)
def chrome_decrypt(encrypted_value):
dec = AES.new(key, AES.MODE_CBC, IV=b" " * 16).decrypt(encrypted_value[3:])
decrypted = dec[: -dec[-1]].decode()
decrypted = dec[32 : -dec[-1]].decode()
return decrypted