swisskyrepo / GraphQLmap

GraphQLmap is a scripting engine to interact with a graphql endpoint for pentesting purposes. - Do not use for illegal testing ;)
MIT License
1.33k stars 187 forks source link

Headers error "bearer" #25

Closed cococookiehub closed 2 years ago

cococookiehub commented 3 years ago

Hi! When using authentication token as per your example of usage I get the error that the Bearer is not a valid argument. I tried with single and double quotes but I get the same error. Any idea what´s going on?

this is your example:

python3 graphqlmap.py -u https://yourhostname.com/graphql -v --method POST --headers '{"Authorization" : "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0Ijoibm8gc2VjcmV0cyBoZXJlID1QIn0.JqqdOesC-R4LtOS9H0y7bIq-M8AGYjK92x4K3hcBA6o"}'

haybeseret commented 3 years ago

same here - did you managed to sort it out ?