When I was trying to crack the Hack The Box Sign In Page, I tried to use Python requests to make a post request to https://www.hackthebox.eu/api/invite/generate, but it just says something like Response [404]. Why?
The code:
import requests
response = requests.post(‘https://www.hackthebox.eu/api/invite/generate’)
print(response.text)
Note:
I used https://curl.trillworks.com/ to convert:
curl -XPOST https://www.hackthebox.eu/api/invite/generate
to:
import requests
response = requests.post(‘https://www.hackthebox.eu/api/invite/generate’)