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 e7e2b84
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions run.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ const loop = () => {
const beep = require('beepbeep');

const check = (priv, addr) => {
console.log(`check: ${addr}`);
const checksum = toChecksumAddress(addr);
console.log(`checksum: ${checksum}`);
if (addr.indexOf(PHRASE) !== -1) {
fs.appendFileSync('output.txt', [toChecksumAddress(addr), priv, CONTRACT].join('\t') + '\n');
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();
proc.kill();
loop();
Expand Down

0 comments on commit e7e2b84

Please sign in to comment.