cloudflare_enum icon indicating copy to clipboard operation
cloudflare_enum copied to clipboard

Invalid request headers

Open meme-lord opened this issue 9 years ago • 3 comments

>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

meme-lord avatar Nov 14 '16 17:11 meme-lord

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

ee

phwd avatar Dec 06 '16 12:12 phwd

same issue i am facing :/

zeeshan0346 avatar Aug 12 '17 19:08 zeeshan0346

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

davqu avatar May 26 '18 12:05 davqu