Tut-k0 / htb-academy-to-md

Simple CLI program that will fetch and convert a HackTheBox Academy module into a local file in Markdown format.
28 stars 3 forks source link

Authenticating to HackTheBox failed - error 422 #6

Closed Kobra3390 closed 1 month ago

Kobra3390 commented 2 months ago

while running the script I get this error (I don't have 2fa or strange passwords, everything worked before, I think htb has changed something):

Authenticating with HackTheBox...
Authenticating to HackTheBox failed.
Unexpected status code: 422
Response body: {"message":"The g-recaptcha-response field is required.","errors":{"g-recaptcha-response":["The g-recaptcha-response field is required."]}}
Tut-k0 commented 1 month ago

Hey! Thank you for reporting this issue. It looks like HTB has implemented recaptcha for the login process. This will probably cause some pain in trying to automate the login for the platform.

Unfortunately I don't have a whole lot of time this weekend to dig into it. I will try to get a workaround implemented for now as soon as I can.

Kobra3390 commented 1 month ago

great work man