1N3 / Sn1per

Attack Surface Management Platform
https://sn1persecurity.com
Other
8.06k stars 1.85k forks source link

Error on GitHub process #272

Closed khanjanny closed 4 years ago

khanjanny commented 4 years ago

i am facing a problem with the GitHub part. I have already added API key but it showing error. is there anything I am doing wrong ...??

[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=**********&sort=indexed&o=desc
1N3 commented 4 years ago

Which mode did you run to generate this error?

khanjanny commented 4 years ago

when i run through one of your bug_bounty_quick config. mode was "STEALTH MODE + OSINT + RECON "

1N3 commented 4 years ago

Gotcha.

In that case, you will need to add your API keys to that config profile first. The profiles overwrite your default config under /root/.sniper.conf

khanjanny commented 4 years ago

but I think I have added on both of the bug_bounty_quick.config and ~/.sniper.config , i think am doing something wrong but if i add GitHub api on both config it should work.

1N3 commented 4 years ago

Did you ever get this working?

khanjanny commented 4 years ago

no

1N3 commented 4 years ago

Did you follow this guide first?

https://github.com/1N3/Sn1per/wiki/Github-API-Integration

You need to add your Github API keys to /usr/share/sniper/plugins/gitGraber/config.py for this to work.