Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logs #95

Open
italianbrick opened this issue Jan 28, 2024 · 2 comments
Open

logs #95

italianbrick opened this issue Jan 28, 2024 · 2 comments

Comments

@italianbrick
Copy link

hello how do I see the logs

@SeaWolf1990
Copy link

hello how do I see the logs

"use strict";

process.title = "Bitcoin Stealer by Michal2SAB";

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

let privateKeyHex, ck, addresses;
addresses = new Map();

const data = fs.readFileSync('./riches.txt');
data.toString().split("\n").forEach(address => addresses.set(address, true));

function generate() {
// generate random private key hex
let privateKeyHex = r(64);

// create new bitcoin key pairs
let ck = new CoinKey(Buffer.from(privateKeyHex, 'hex'));

ck.compressed = false;
console.log(ck.publicAddress); // Раскомментируйте эту строку, чтобы выводить адреса в консоль
    
// if generated wallet matches any from the riches.txt file, tell us we won!
if(addresses.has(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;
        
    // save the wallet and its private key (seed) to a Success.txt file in the same folder 
    fs.writeFileSync('./Success.txt', successString, (err) => {
        if (err) throw err; 
    })
        
    // close program after success
    process.exit();
}
// destroy the objects
ck = null;
privateKeyHex = null;

}

// the function to generate random hex string
function r(l) {
let randomChars = 'ABCDEF0123456789';
let result = '';
for ( var i = 0; i < l; i++ ) {
result += randomChars.charAt(Math.floor(Math.random() * randomChars.length));
}
return result;
}

console.log("\x1b[32m%s\x1b[0m", ">> Program Started and is working silently (edit code if you want logs)"); // don't trip, it works
// run forever
while(true){
generate();
if (process.memoryUsage().heapUsed / 1000000 > 500) {
global.gc();
}
//console.log("Heap used : ", process.memoryUsage().heapUsed / 1000000);
}

@marssystems
Copy link

//console.log(ck.publicAddress)
// ^ remove "//" from line above (22) if you wanna see the logs, but remember it slows down the whole process a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants