github-credential-scraper
Naive credential scraper for GitHub. Looks for:
AWS_KEY
AWS_ACCESS_KEY
AWS_SECRET_KEY
x-oauth-basic
id_rsa
files.key
files.pem
files
Installation
$ npm install github-credential-scraper
Usage
cli
Usage: github-credential-scraper [options] <orgname>
Options:
-h, --help Output usage information
-v, --version Output version number
-t, --token GitHub auth token
-u, --username GitHub username
Examples:
$ github-credential-scraper google
$ github-credential-scraper google -u foobar -t aeff0558afei45
Docs: https://github.com/TabDigital/github-credential-scraper
Bugs: https://github.com/TabDigital/github-credential-scraper/issues
js
const awsCredentialScraper = require('github-credential-scraper')
const auth = {
user: 'rvagg',
token: '24d5dee258c64aef38a66c0c5notarealtokenlol'
}
awsCredentialScraper('TabDigital', auth, function (err, matches) {
if (err) throw err
console.log(matches)
})
API
awsCredentialScraper(orgname, auth, cb(err, matches))
Create a new scraper that scrapes GitHub for an orgname
. Data is returned as
an array of object with a signature of { name: <string>, data: [<string>]}
License
MIT