Skip to content

Instantly share code, notes, and snippets.

@nachowski
Forked from liamzebedee/x.js
Last active December 12, 2017 08:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nachowski/7b5b12e44d1ca8a190ac to your computer and use it in GitHub Desktop.
Save nachowski/7b5b12e44d1ca8a190ac to your computer and use it in GitHub Desktop.
warpwallet cracker
function getRandomPassword(length) {
var charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var result = "";
if (window.crypto && window.crypto.getRandomValues) {
values = new Uint32Array(length);
window.crypto.getRandomValues(values);
for(var i=0; i<length; i++) {
result += charset[values[i] % charset.length];
}
return result;
} else throw new Error("Your browsercan't generate secure random numbers");
}
function crack() {
var start = new Date().getTime();
var candidate = getRandomPassword(8);
warpwallet.run({
passphrase: candidate,
salt: 'a@b.c',
progress_hook: null,
params: window.params},
function(res) {
if(res['public'] == '1MkupVKiCik9iyfnLrJoZLx9RH4rkF3hnA'){
console.log("Found private key " + res['private'] + " and password " + candidate);
} else {
var end = (new Date().getTime() - start) / 1000;
console.log(res['public'] + " / " + candidate + " in " + end + "s");
crack();
}
});
}
crack();
@mkvtvseries
Copy link

Hello How to Run this, Please HELP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment