Last active
December 21, 2017 10:53
-
-
Save lenilsonjr/770c06995c496da6a614f1ff0775b15f to your computer and use it in GitHub Desktop.
Keybase WarpWallet Bounty Challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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