Skip to content
Naive credential scraper for GitHub
Branch: master
Clone or download
Latest commit 8491604 Mar 7, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin bin/cli: fix test Mar 7, 2016
examples
.gitignore . Jan 4, 2016
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

github-credential-scraper stability

js-standard-style

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

You can’t perform that action at this time.