· 9 years ago · Jan 20, 2017, 08:28 PM
1// Install line-by-line via npm i line-by-line
2// I wanted to crawl through the dropbox leak on my own
3// Therefore I wrote these lines to check it
4// Keep in mind that you need the corresponding leaked files in this directory
5
6let LineByLineReader = require('line-by-line');
7
8['sha1', 'sha2', 'bf_1', 'bf_2'].forEach((o) => {
9 new LineByLineReader(o + '.txt').on('line', searchmail);
10});
11let i = 0;
12function searchmail(line) {
13 if (search.map((k) => line.includes(k)).reduce((a, b) => a && b)) {
14 let mail = line.substr(0, line.lastIndexOf(':'));
15 let spaces = ' '.repeat(64 - mail.length);
16 console.log(spaces + mail + ' ' + (i++));
17 }
18}
19// What are you searching for?
20let search = ['david', '@gmail.com'];