-
-
Notifications
You must be signed in to change notification settings - Fork 336
Open
Description
I have found a while back how HCaptcha encrypts payload and decrypts responses, basically:
- Payload encryption:
payload = {payload here}
c = payload.c
del payload['c']
enc_part = hsw(1, msgpack.encode(payload)
enc_payload = msgpack.encode([c, enc_part])
- Response decryption:
response = hsw(0, msgpack.decode(b"response bytes"))
Hsw: https://newassets.hcaptcha.com/c/fbfe2cf8e000883f05d67a3172d975c67a54d3c171817ff1a3f7fed728272e6e/hsw.js (changes every update obviously)
Python msgpack: https://pypi.org/project/msgpack/
Potential solution: Use a javascript virtual environment to run the encryption and decryption.
Metadata
Metadata
Assignees
Labels
No labels