Skip to content

Instantly share code, notes, and snippets.

@LuxXx
Created January 20, 2017 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuxXx/33348631ff42690f02006b85f0a0c6cc to your computer and use it in GitHub Desktop.
Save LuxXx/33348631ff42690f02006b85f0a0c6cc to your computer and use it in GitHub Desktop.
Crawls through the dropbox leak files and searches your query
// Install line-by-line via npm i line-by-line
// I wanted to crawl through the dropbox leak on my own
// Therefore I wrote these lines to check it
// Keep in mind that you need the corresponding leaked files in this directory
let LineByLineReader = require('line-by-line');
['sha1', 'sha2', 'bf_1', 'bf_2'].forEach((o) => {
new LineByLineReader(o + '.txt').on('line', searchmail);
});
let i = 0;
function searchmail(line) {
if (search.map((k) => line.includes(k)).reduce((a, b) => a && b)) {
let mail = line.substr(0, line.lastIndexOf(':'));
let spaces = ' '.repeat(64 - mail.length);
console.log(spaces + mail + ' ' + (i++));
}
}
// What are you searching for?
let search = ['david', '@gmail.com'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment