-2
I’m making a Checker for studies, I have a login api, but I keep coming up with this error:
<Response [403]>
I also tried to request post by Postman and gave the following error:
{
"sucesso": false,
"msg": "400 Bad Request: The browser (or proxy) sent a request that this server could not understand."
}
With the following settings in Postman:
import requests
import json
post_context_data = {
"email": "[email protected]",
"senha": "21312321321",
"session": {},
}
headers_context_data = {
"User-Agente": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36',
"content-type": "application/json;charset=UTF-8",
"accept-encoding": "gzip, deflate, br",
"accept": "application/json, text/plain, */*",
}
api_sender = requests.session()
json_content = api_sender.post("https://servicespub.prod.api.aws.**********.com.br/login/v1/usuario/login", data=json.dumps(post_context_data), headers=headers_context_data)
print(json_content)
The "Session" it generates in the cookie: I don’t know how I get a specific cookie from the site?
In Burpsuite I can make the answer come, follow some invalid and valid login prints.