Michal2SAB / Bitcoin-Stealer

Generate random bitcoin wallets, private keys (seeds) and then check if they match a wallet that contains some kind of balance, and then take it. Node.js
405 stars 167 forks source link

wont run #25

Closed stafki closed 2 years ago

stafki commented 2 years ago

whenever i run it doesn't do anything

DonnyDevIT commented 2 years ago

Same

DonnyDevIT commented 2 years ago

I solved it, open file "generator.js"

where is if(data.includes(ck.publicAddress)){ write before console.log(ck.publicAddress)

so you will have console.log(ck.publicAddress) if(data.includes(ck.publicAddress)){

SALTA77 commented 2 years ago

can u send all "generator.js" text it will be easier tm me pls

DonnyDevIT commented 2 years ago
"use strict";

process.title = "Bitcoin Stealer by Michal2SAB";

const CoinKey = require('coinkey');
const fs = require('fs');

const data = fs.readFileSync('./riches.txt');

function generate() {
    let privateKeyHex = r(64);

    let ck = new CoinKey(Buffer.from(privateKeyHex, 'hex'));

    ck.compressed = false;

    console.log(ck.publicAddress)
    if(data.includes(ck.publicAddress)){
        console.log("");
        process.stdout.write('\x07');
        console.log("\x1b[32m%s\x1b[0m", ">> Success: " + ck.publicAddress);
        var successString = "Wallet: " + ck.publicAddress + "\n\nSeed: " + ck.privateWif;

        fs.writeFileSync('./Success.txt', successString, (err) => {
            if (err) throw err; 
        })

        process.exit();
    }
}

function r(l) {
    let randomChars = 'ABCDF0123456789';
    let result = '';
    for ( var i = 0; i < l; i++ ) {
        result += randomChars.charAt(Math.floor(Math.random() * randomChars.length));
    }
    return result;
}

while(true){
    generate();
}
Michal2SAB commented 2 years ago

It is running and working, but logs are disabled for better speed.