Create a gist now

Instantly share code, notes, and snippets.

@domalak /brute2.js
Last active May 16, 2018

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 = '0xe8Ca70C909905Ebbbe6a49c34797beF31d895241'
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 - charsMissing + 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())
// console.log(i + ": " + endPrivateKey)
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');
}
}
}
}
}
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

@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?

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