Create a gist now

Instantly share code, notes, and snippets.

@domalak /brute2.js
Last active Jul 6, 2018

Embed
What would you like to do?
const util = require('ethereumjs-util')
const Wallet = require('ethereumjs-wallet')
const basePrivateKey = '1cd3b30424316919712c483929787eefa0d724a78274a506530dbb26916b1'
const charsMissing = 64 - basePrivateKey.length
const targetPublicAddress = '0xe8Ca70C909905Eccce6a49c34797beF31d895241'
console.log(" \n" +
"searching for address : " + targetPublicAddress + " \n" +
"base private key : " + basePrivateKey + " \n" +
"missing chars : " + charsMissing + " \n" +
"now it's working on finding your key.")
function makeHexString(numb) {
let hex = numb.toString(16);
return hex
}
let tryNumber = 0;
function placeChar(pk, char, prev) {
const start = char ? prev + 1 : 0
for (let position = start; position < basePrivateKey.length + char + 1; position++) {
for(let i = 0; i < 16; i++){
const endPrivateKey = makeHexString(i)
let privateKeyGuess = pk.split('');
privateKeyGuess.splice(position, 0, endPrivateKey);
privateKeyGuess = privateKeyGuess.join('');
if (char + 1 < charsMissing) {
placeChar(privateKeyGuess, char + 1, position)
}
else {
tryNumber++
try {
const wallet = Wallet.fromPrivateKey(new Buffer(privateKeyGuess, "hex"))
const publicAddress = util.bufferToHex(wallet.getAddress())
if(publicAddress.toLowerCase() == targetPublicAddress.toLowerCase()){
console.log('\n \n \n \n ********************************** FOUND PRIVATE KEY: ' + privateKeyGuess + " \n ********************************** matching address " + targetPublicAddress + " \n \n \n \n ");
process.exit();
}
} catch(e) {
null;
}
if (tryNumber % 100000 === 0) {
console.log('tried', tryNumber, 'variations');
}
}
}
}
}
if (basePrivateKey.length < 64) {
placeChar(basePrivateKey, 0);
}
console.log('Finished with no results.');
process.exit();
@sabaja1

This comment has been minimized.

Show comment
Hide comment
@sabaja1

sabaja1 Feb 10, 2018

0x02ec2F6632c38F2FA149Cd2390cB8b3fD8086c92
plz sir gave m PrivateKey
my email adress sufainsabaja@gmail.com

sabaja1 commented Feb 10, 2018

0x02ec2F6632c38F2FA149Cd2390cB8b3fD8086c92
plz sir gave m PrivateKey
my email adress sufainsabaja@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 20, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

wwmani commented Feb 20, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com please sir

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com please sir

@wwmani

This comment has been minimized.

Show comment
Hide comment
@wwmani

wwmani Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com please sir

wwmani commented Feb 21, 2018

sir please sent me this account 0x90e63c3d53E0Ea496845b7a03ec7548B70014A91
private key i lost my key
m.rehman9929@gmail.com please sir

@lion22

This comment has been minimized.

Show comment
Hide comment
@lion22

lion22 Mar 9, 2018

я потерял свой Я потерял свой секретный ключ 0x001eeB6389968b4a25eA43C68115F6cC92Cf88f9 как мне восстановить

lion22 commented Mar 9, 2018

я потерял свой Я потерял свой секретный ключ 0x001eeB6389968b4a25eA43C68115F6cC92Cf88f9 как мне восстановить

@saewoob

This comment has been minimized.

Show comment
Hide comment
@saewoob

saewoob Mar 16, 2018

sir please sent me this account 0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8
private key i lost my key
saewoo2001@naver.com

saewoob commented Mar 16, 2018

sir please sent me this account 0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8
private key i lost my key
saewoo2001@naver.com

@alqazeh

This comment has been minimized.

Show comment
Hide comment
@alqazeh

alqazeh Mar 25, 2018

Please I forget my private key my addresses:
0xb6CdC1a29945D06b14D97530e1884609F61E4F4f

alqazeh66@gmail.com

alqazeh commented Mar 25, 2018

Please I forget my private key my addresses:
0xb6CdC1a29945D06b14D97530e1884609F61E4F4f

alqazeh66@gmail.com

@h5yong

This comment has been minimized.

Show comment
Hide comment
@h5yong

h5yong Mar 29, 2018

Please I forget my private key my addresses:
0X6F467997Af24dCd8439Fa62f21ed830927765234

h55yong@gmail.com

h5yong commented Mar 29, 2018

Please I forget my private key my addresses:
0X6F467997Af24dCd8439Fa62f21ed830927765234

h55yong@gmail.com

@kaho2ashish

This comment has been minimized.

Show comment
Hide comment
@kaho2ashish

kaho2ashish Apr 1, 2018

Please send me private keys..I missed 1-2 letter from my private keys..

0x8bea2ea71C7a82bDA5A21BFa0F345e9bd1Af7a61

kaho2ashish@gmail.com

Please send me private keys..I missed 1-2 letter from my private keys..

0x8bea2ea71C7a82bDA5A21BFa0F345e9bd1Af7a61

kaho2ashish@gmail.com

@kingteehy

This comment has been minimized.

Show comment
Hide comment
@kingteehy

kingteehy Apr 10, 2018

0x02ec2F6632c38F2FA149Cd2390cB8b3fD8086c92.....pls send me my private key
Kingteehy@gmail.com

0x02ec2F6632c38F2FA149Cd2390cB8b3fD8086c92.....pls send me my private key
Kingteehy@gmail.com

@kaswalamanoj

This comment has been minimized.

Show comment
Hide comment
@kaswalamanoj

kaswalamanoj Apr 25, 2018

hi there did you guys got your private key?

hi there did you guys got your private key?

@ikunabaca

This comment has been minimized.

Show comment
Hide comment
@ikunabaca

ikunabaca May 1, 2018

pls send me my private key...
0x9ae92755b45f0bc35cbc08367c526b48cd3d78df

ikunabaca@mail.ru

pls send me my private key...
0x9ae92755b45f0bc35cbc08367c526b48cd3d78df

ikunabaca@mail.ru

@Aigelov

This comment has been minimized.

Show comment
Hide comment
@Aigelov

Aigelov May 6, 2018

Sir please sent me this account 0x4958b33F369daAc6e3560b8ff47e147645e17E52 private key
I have my private key, but it's opening other account
aigelov@gmail.com

Aigelov commented May 6, 2018

Sir please sent me this account 0x4958b33F369daAc6e3560b8ff47e147645e17E52 private key
I have my private key, but it's opening other account
aigelov@gmail.com

@luckyboy4ubaby

This comment has been minimized.

Show comment
Hide comment
@luckyboy4ubaby

luckyboy4ubaby May 6, 2018

dear sir i have wallet and private key when i try to unlock by key it shows different wallet address 0x78edc7ed9DdC8444002EE721397c0b5eF53Ab5fB this is my wallet when i try to unlock it shows 0x26905CB678289E511f7E59429E7A90aa80446c6B please help me to fix this luckyboy4ubaby@gmail.com

dear sir i have wallet and private key when i try to unlock by key it shows different wallet address 0x78edc7ed9DdC8444002EE721397c0b5eF53Ab5fB this is my wallet when i try to unlock it shows 0x26905CB678289E511f7E59429E7A90aa80446c6B please help me to fix this luckyboy4ubaby@gmail.com

@Bitsearch

This comment has been minimized.

Show comment
Hide comment
@Bitsearch

Bitsearch May 11, 2018

0xa626ca1e6bcc0d193bedbadd46cc0adb5ff1fbc7
I created Myetherwallet account to Explorer. But,it's not downloaded Keystore File.
I didn't know that, and then i sent the ETH to the Address..
What could i do?

plz sir gave m PrivateKey
my email adress info@bitsearch.co.kr

0xa626ca1e6bcc0d193bedbadd46cc0adb5ff1fbc7
I created Myetherwallet account to Explorer. But,it's not downloaded Keystore File.
I didn't know that, and then i sent the ETH to the Address..
What could i do?

plz sir gave m PrivateKey
my email adress info@bitsearch.co.kr

@mae2017

This comment has been minimized.

Show comment
Hide comment
@mae2017

mae2017 May 16, 2018

Guys did you recover your private key?

mae2017 commented May 16, 2018

Guys did you recover your private key?

@robimage

This comment has been minimized.

Show comment
Hide comment
@robimage

robimage May 21, 2018

If you need help to recover your key try this service http://keychainx.io or mail to keychainx@protonmail.com they could help you retrieve your key if you got part of it.

If you need help to recover your key try this service http://keychainx.io or mail to keychainx@protonmail.com they could help you retrieve your key if you got part of it.

@sazzadhsunny

This comment has been minimized.

Show comment
Hide comment
@sazzadhsunny

sazzadhsunny May 23, 2018

sir please key private key i was the key
my gmail;sazzadhsunny1@gmail.com i beg you sir

sir please key private key i was the key
my gmail;sazzadhsunny1@gmail.com i beg you sir

@Bitsearch

This comment has been minimized.

Show comment
Hide comment
@Bitsearch

Bitsearch May 24, 2018

@mae2017 Yeah, i did. How can i find my Private key?

I have not keystore Files too.

@mae2017 Yeah, i did. How can i find my Private key?

I have not keystore Files too.

@PROKYLE0214

This comment has been minimized.

Show comment
Hide comment
@PROKYLE0214

PROKYLE0214 May 29, 2018

sir please sent me this account 0xc5Cb0cb4d89E94AFa41414893271Ae0058e67A15
private key i lost my key
kyle0214@naver.com

sir please sent me this account 0xc5Cb0cb4d89E94AFa41414893271Ae0058e67A15
private key i lost my key
kyle0214@naver.com

@GGgiiiithub

This comment has been minimized.

Show comment
Hide comment
@GGgiiiithub

GGgiiiithub May 30, 2018

Good day I was robbed help to return funds I need a key from this address 0xcf02680e5f057d41a68c3da6221ade6609833e5a my mail look91@mail.ua

TxHash:0xd5cedad9a01b6c1b962584a9e48b227ebe444c00e3a55fdcc4509a62ff785984 TxReceipt Status:SuccessBlock Height:5701919 (2426 block confirmations)TimeStamp:10 hrs 23 mins ago (May-30-2018 09:30:27 AM +UTC)From:0xfff7880fe491ff2d41dddf4173d5c4c535b4a8c3To:0xcf02680e5f057d41a68c3da6221ade6609833e5a Value: 0.207847962 Ether ($113.77) Gas Limit: 21000 Gas Used By Txn: 21000 Gas Price: 0.000000021 Ether (21 Gwei) Actual Tx Cost/Fee: 0.000441 Ether ($0.24) Nonce & {Position}:58 | {69} (Also found 3 other dropped Txns #1, #2, #3 with the same from account nonce)

Good day I was robbed help to return funds I need a key from this address 0xcf02680e5f057d41a68c3da6221ade6609833e5a my mail look91@mail.ua

TxHash:0xd5cedad9a01b6c1b962584a9e48b227ebe444c00e3a55fdcc4509a62ff785984 TxReceipt Status:SuccessBlock Height:5701919 (2426 block confirmations)TimeStamp:10 hrs 23 mins ago (May-30-2018 09:30:27 AM +UTC)From:0xfff7880fe491ff2d41dddf4173d5c4c535b4a8c3To:0xcf02680e5f057d41a68c3da6221ade6609833e5a Value: 0.207847962 Ether ($113.77) Gas Limit: 21000 Gas Used By Txn: 21000 Gas Price: 0.000000021 Ether (21 Gwei) Actual Tx Cost/Fee: 0.000441 Ether ($0.24) Nonce & {Position}:58 | {69} (Also found 3 other dropped Txns #1, #2, #3 with the same from account nonce)

@GGgiiiithub

This comment has been minimized.

Show comment
Hide comment
@GGgiiiithub

GGgiiiithub May 30, 2018

admin hello

it seems it was he
reward for the scam relying? or at least return my broadcast

I hurried and did not look that they were asking to
sign a message on a separate site and kept the key

https://bit.ly/2saonjg

https://flashblocks.io/kyc/?2npd4=@Mkmoutain&3pchu=0xfFF7880fe491FF2D41ddDF4173d5c4C535b4a8c3&ei2u5=look91@mail.ua

reward for the scam relying? or at least return my ether

given transactions

TxHash:0xd5cedad9a01b6c1b962584a9e48b227ebe444c00e3a55fdcc4509a62ff785984 TxReceipt Status:SuccessBlock Height:5701919 (2192 block confirmations)TimeStamp:9 hrs 22 mins ago (May-30-2018 09:30:27 AM +UTC)From:0xfff7880fe491ff2d41dddf4173d5c4c535b4a8c3To:0xcf02680e5f057d41a68c3da6221ade6609833e5a Value: 0.207847962 Ether ($113.90) Gas Limit: 21000 Gas Used By Txn: 21000 Gas Price: 0.000000021 Ether (21 Gwei) Actual Tx Cost/Fee: 0.000441 Ether ($0.24) Nonce & {Position}:58 | {69} (Also found 3 other dropped Txns #1, #2, #3 with the same from account nonce)

admin hello

it seems it was he
reward for the scam relying? or at least return my broadcast

I hurried and did not look that they were asking to
sign a message on a separate site and kept the key

https://bit.ly/2saonjg

https://flashblocks.io/kyc/?2npd4=@Mkmoutain&3pchu=0xfFF7880fe491FF2D41ddDF4173d5c4C535b4a8c3&ei2u5=look91@mail.ua

reward for the scam relying? or at least return my ether

given transactions

TxHash:0xd5cedad9a01b6c1b962584a9e48b227ebe444c00e3a55fdcc4509a62ff785984 TxReceipt Status:SuccessBlock Height:5701919 (2192 block confirmations)TimeStamp:9 hrs 22 mins ago (May-30-2018 09:30:27 AM +UTC)From:0xfff7880fe491ff2d41dddf4173d5c4c535b4a8c3To:0xcf02680e5f057d41a68c3da6221ade6609833e5a Value: 0.207847962 Ether ($113.90) Gas Limit: 21000 Gas Used By Txn: 21000 Gas Price: 0.000000021 Ether (21 Gwei) Actual Tx Cost/Fee: 0.000441 Ether ($0.24) Nonce & {Position}:58 | {69} (Also found 3 other dropped Txns #1, #2, #3 with the same from account nonce)

@iwannaja

This comment has been minimized.

Show comment
Hide comment
@iwannaja

iwannaja Jun 11, 2018

Admin please send my private key :
0x5F72bf80BE0054047885CDbDE248880025801f81

iswantosrbang321@gmail.com

Admin please send my private key :
0x5F72bf80BE0054047885CDbDE248880025801f81

iswantosrbang321@gmail.com

@quadir1100

This comment has been minimized.

Show comment
Hide comment
@quadir1100

quadir1100 Jun 11, 2018

please send me my private key:
0x2a0c0DBEcC7E4D658f48E01e3fA353F44050c208

quadir1100@gmail.com

quadir1100 commented Jun 11, 2018

please send me my private key:
0x2a0c0DBEcC7E4D658f48E01e3fA353F44050c208

quadir1100@gmail.com

@GreenAsGrass

This comment has been minimized.

Show comment
Hide comment
@GreenAsGrass

GreenAsGrass Jun 23, 2018

Hi I am currently running your code on my PC to recover an ethereum private key with 3 characters missing. First of all, allow me to thank you for the amazing work you've done! It is really kind and generous of you to share this :)

Hi I am currently running your code on my PC to recover an ethereum private key with 3 characters missing. First of all, allow me to thank you for the amazing work you've done! It is really kind and generous of you to share this :)

@GreenAsGrass

This comment has been minimized.

Show comment
Hide comment
@GreenAsGrass

GreenAsGrass Jun 23, 2018

I just want to ask, if there are 3 characters missing, how long would it usually take to find the right combination?

I just want to ask, if there are 3 characters missing, how long would it usually take to find the right combination?

@GreenAsGrass

This comment has been minimized.

Show comment
Hide comment
@GreenAsGrass

GreenAsGrass Jun 24, 2018

Hi please help, I just tried again with Brute2, using a known private key and public key combi to test it out. I removed 1 character out of the private key.

This is the result
1

Hi please help, I just tried again with Brute2, using a known private key and public key combi to test it out. I removed 1 character out of the private key.

This is the result
1

@GreenAsGrass

This comment has been minimized.

Show comment
Hide comment
@GreenAsGrass

GreenAsGrass Jun 24, 2018

image

I tried this with private key and public key that I have, and deleted 1 character on the private key, to test this code out. Does not seem to work? Help please!

image

I tried this with private key and public key that I have, and deleted 1 character on the private key, to test this code out. Does not seem to work? Help please!

@domalak

This comment has been minimized.

Show comment
Hide comment
@domalak

domalak Jun 28, 2018

Hey everyone!
I don't know why but I don't get any notifications about comments here. Sorry for missing all of this!
If someone needs help please try to contact me here https://twitter.com/domalak
Or here https://www.facebook.com/domalaque

Owner

domalak commented Jun 28, 2018

Hey everyone!
I don't know why but I don't get any notifications about comments here. Sorry for missing all of this!
If someone needs help please try to contact me here https://twitter.com/domalak
Or here https://www.facebook.com/domalaque

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