cloudflare_enum
cloudflare_enum copied to clipboard
Invalid request headers
>python cloudflare_enum.py [email protected] mypass disney.com
{"success":false,"errors":[{"code":6004,"message":"Invalid request headers","error_chain":[{"code":6301,"message":"Invalid format for X-ATOK header"}]}],"messages":[ ],"result":null}
Same thing for any domain I put in
Looks like your auth is failing. Check the response and check that you can sign into cloudfare.com with your credentials.
At https://github.com/mandatoryprogrammer/cloudflare_enum/blob/master/cloudflare_enum.py#L46 you can see mandatoryprogrammer search the response body for the atok variable which is needed for the X-ATOK header. So in your case, it probably isn't authorized, you get the 401 and no atok.
Here is a successful request

same issue i am facing :/
{"success":false,"errors":[{"code":9300,"message":"User session has expired. Please log in again"}],"messages":[],"result":null}