Skip to content

Instantly share code, notes, and snippets.

@lenilsonjr
Last active December 21, 2017 10:53
Show Gist options
  • Save lenilsonjr/770c06995c496da6a614f1ff0775b15f to your computer and use it in GitHub Desktop.
Save lenilsonjr/770c06995c496da6a614f1ff0775b15f to your computer and use it in GitHub Desktop.
Keybase WarpWallet Bounty Challenge
function randomString(length, chars) {
var result = '';
for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
return result;
}
function searchWallet() {
pass = randomString(8,'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
console.log('Trying w/ ' + pass);
warpwallet.run({
passphrase: pass,
salt: 'a@b.c',
progress_hook: (function(_this) {
return function(o) {
return false;
};
})(this),
params: window.params
}, (function(_this) {
return function(res) {
if ( res["public"] == '1MkupVKiCik9iyfnLrJoZLx9RH4rkF3hnA' ) {
console.log('You found it! =D');
console.log(res["public"]);
console.log(res["private"]);
} else {
console.log('Out of luck...')
searchWallet();
}
};
})(this));
}
searchWallet();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment