const crypto = require('crypto'); const HDKey = require('hdkey');
const phrase = 'YOUR_SEED_PHRASE'; const wantAddress = 'YOUR_ADDRESS';
async function recoverWallet() { let i = 0; const progressInterval = 1000; // Adjust this value to update the progress indicator frequency
console.log('Starting brute force...');
while (true) {
const seed = crypto.createHash('sha256').update(phrase).digest();
const masterNode = HDKey.fromMasterSeed(seed);
const derivedNode = masterNode.derive(m/44'/60'/0'/0/${i}
);
const currentAddress = derivedNode.publicKey.toString('hex');
const crypto = require('crypto');
const HDKey = require('hdkey');
const phrase = 'YOUR_SEED_PHRASE';
const wantAddress = 'YOUR_ADDRESS';
async function recoverWallet() {
let i = 0;
const progressInterval = 1000; // Adjust this value to update the progress indicator frequency
console.log('Starting brute force...');
while (true) {
const seed = crypto.createHash('sha256').update(phrase).digest();
const masterNode = HDKey.fromMasterSeed(seed);
const derivedNode = masterNode.derive(`m/44'/60'/0'/0/${i}`);
const currentAddress = derivedNode.publicKey.toString('hex');
if (currentAddress.toLowerCase() === wantAddress.toLowerCase()) {
console.log('Match found:', currentAddress);
console.log('Private Key:', derivedNode.privateKey.toString('hex'));
return;
}
if (i % progressInterval === 0) {
console.log('Progress:', i);
}
i++;
}
}
recoverWallet().catch((error) => {
console.error('Error occurred during wallet recovery:', error);
});
} }
recoverWallet().catch((error) => { console.error('Error occurred during wallet recovery:', error); }); strong text