hisxo / gitGraber

gitGraber: monitor GitHub to search and find sensitive data in real time for different online services such as: Google, Amazon, Paypal, Github, Mailgun, Facebook, Twitter, Heroku, Stripe...
GNU General Public License v3.0
2k stars 328 forks source link

Bad credentials #25

Closed airwawekz closed 4 years ago

airwawekz commented 4 years ago

I edited config.py with my github token and I got this:

[i] Sleeping 61 sec
[i] Status code : 401
[!] Unexpected HTTP response 401
{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
[i] Github query : https://api.github.com/search/code?q=%22snapchat.com%22%20access_key&sort=indexed&o=desc

I missed something?

AlishahMughal123 commented 4 years ago

Umm check again did you enter the correct token. For me it`s working

rmarot commented 4 years ago

How did you add it ? It should be like : GITHUB_TOKENS = ["TOKEN1"] for one token or GITHUB_TOKENS = ["TOKEN1","TOKEN2","TOKEN3"] for several tokens.

danzee1 commented 4 years ago

Getting same Error...

Edited like this in tokens.py file


tokensList.append(Token('GITHUB_CLIENT_SECRET', 'XXXXXXXd13bb6cXXX104f320537XXXXXXXX'))
rmarot commented 4 years ago

That's not the way to configure it. Please refer to the documentation https://github.com/hisxo/gitgraber#configuration and above comment.