Closed hobnobpirate closed 5 years ago
Looks like it, unit tests are failing as well. Will need to check out the changes and modify accordingly.
New cookies added (?):
XSRF-TOKEN hackthebox_session
Wouldn't surprise me if the 404 is the XSRF protection kicking in
Edit:
Curl seems to work fine: curl -X POST https://hackthebox.eu/api/stats/global -L
Looks like the User Agent is being blocked from python-requests.
I'll go ahead and make the User-Agent change, but it's quite possible the administrators are blocking usage to the API due to a large volume of requests. In the future, it's possible users of the API will have to set the User-Agent themselves to avoid bans.
Fixed.
I think the HTB API might have changed. All of my calls are failing:
It appears to be an API change due to the 404 error: