Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
save privkey only if matches exact case, lower case or upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
gkucmierz committed Oct 25, 2020
1 parent 93fef13 commit 331b7bf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions run.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ const loop = () => {
const beep = require('beepbeep');

const check = (priv, addr) => {
console.log(`check: ${addr}`);
if (addr.indexOf(PHRASE) !== -1) {
fs.appendFileSync('output.txt', [toChecksumAddress(addr), priv, CONTRACT].join('\t') + '\n');
const checksum = toChecksumAddress(addr);
console.log(`checksum: ${checksum}`);
if (addr.indexOf(PHRASE.toLowerCase()) !== -1) {
const some = [PHRASE, PHRASE.toLowerCase(), PHRASE.toUpperCase()].some(s => checksum.indexOf(s) !== -1);
if (some) {
fs.appendFileSync('output.txt', [checksum, priv, CONTRACT].join('\t') + '\n');
beep();
}
beep();
console.log('restart');
proc.kill();
loop();
setTimeout(loop, 1);
}
};

Expand Down

0 comments on commit 331b7bf

Please sign in to comment.