Skip to content

Potential collector fix #1032

@Mouad-Scriptz-0

Description

@Mouad-Scriptz-0

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions