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 99b3de8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions run.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
} = PARSED;
const CONTRACT = PARSED.CONTRACT === 'true';

const CMD = `./profanity.x64 ${CONTRACT ? '--contract' : ''} --skip 1 --matching ${PHRASE} -I 1000 -i 255`;
const CMD = `./profanity.x64 ${CONTRACT ? '--contract' : ''} --skip 1 --matching ${PHRASE} -I 200 -i 255`;
console.log(CMD);

const exec = require('child_process').exec;
Expand All @@ -19,12 +19,19 @@ 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) {
const type = CONTRACT ? 'contract' : 'address';
fs.appendFileSync('output.txt', [checksum, priv, type].join('\t') + '\n');
beep();
}
beep();
console.log('restart');
proc.kill();
loop();
setTimeout(loop, 1);
}
};

Expand Down

0 comments on commit 99b3de8

Please sign in to comment.