carlos8f / .gitignore secret
Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

secret gist finder

View .gitignore

secrets

secret gist finder

Usage

$ npm install -g secrets
$ secrets [concurrency]
0/149 secrets/attempts
0/315 secrets/attempts
0/462 secrets/attempts
0/628 secrets/attempts
secret! https://gist.github.com/983db2472922f788080c

happy hunting!


Developed by Terra Eclipse

Terra Eclipse, Inc. is a nationally recognized political technology and strategy firm located in Aptos, CA and Washington, D.C.


License: MIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View .gitignore
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
{
"name": "secrets",
"version": "0.1.0",
"description": "secret gist finder",
"main": "secrets.js",
"bin": "./secrets.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://gist.github.com/983db2472922f788080c.git"
},
"keywords": [
"secret",
"gist",
"github",
"bacon",
"hacking",
"yo"
],
"author": "Carlos Rodriguez <carlos@s8f.org> (http://s8f.org/)",
"license": "MIT",
"dependencies": {
"idgen": "~1.3.0",
"request": "~2.22.0"
}
}
View .gitignore
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#!/usr/bin/env node
 
var idgen = require('idgen').hex
, request = require('request')
, base = 'https://gist.github.com/'
, checked = 0
, secrets = 0
, concurrency = process.argv[2] ? Number(process.argv[2]) : 10
 
function next () {
var u = base + idgen(20);
request({uri: u}, function (err, resp, body) {
if (err) {
console.error(err);
}
else if (resp.statusCode === 404) {
// ...
}
else if (resp.statusCode === 200) {
console.log('secret!', u);
secrets++;
}
else {
console.log('???', resp.statusCode, u);
}
checked++;
next();
});
}
 
setInterval(function () {
console.log(secrets + '/' + checked + ' secrets/attempts');
}, 5000);
 
for (var i = 0; i < concurrency; i++) next();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.