Created
January 20, 2017 20:23
-
-
Save LuxXx/33348631ff42690f02006b85f0a0c6cc to your computer and use it in GitHub Desktop.
Crawls through the dropbox leak files and searches your query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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