Author

Topic: script to generate random addr/priv keys and compare to my addr (Read 232 times)

newbie
Activity: 39
Merit: 0
100% agreed. Vulnerabilities is something I'm dealing with on a constant basis due to the peculiarities of my job. Never thought that somethin like that would actually happen to me... Live and learn - i guess))
Paper or even better cryptosteel is something i would go with from now on. Tough and what's more important an expensive lesson it was for me)) All the best to everybody.
Protect yourself))
legendary
Activity: 1624
Merit: 2481
PS. Back up your wallet properly and use a good media resource to save it (different from your hDD). Otherwise you might end like this too((

At least you have learned something and this won't happen in the future again.
It is always advised to have multiple forms of a backup storage.
While saving an encrypted copy on an USB drive or a second hard drive is a secure solution, you should always also consider using a non-digital storage for your private keys / seed (e.g. paper backup).

A paper back does not only deliver a high level of security (regarding possiblity of theft excluding evil maids scenario) but also a pretty decent level of safety (e.g. won't get destroyed by an electromagnetic pulse, solar flares, etc.. ).

Keep in mind that whenever you have a 'backup device' connected to your PC this can not be considered as a backup anymore.
A lightning strike, overvoltage , malware, .. may still destroy your connected devices when your pc is affected in such a scenario.

newbie
Activity: 39
Merit: 0
Getting opinions from ppl with legendary status and working with pentest for a while - having weighed all the pros and cons, I've came to a disappointing conclusion. That it is lost forever. Hard to accept the truth sometimes)). But I think it's easier to include your BTC address in the signature and wait for somebody "to spare some cigarette" then to generate a required address/key pairs. Thnx everybody for the answers.
PS. Back up your wallet properly and use a good media resource to save it (different from your hDD). Otherwise you might end like this too((
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Crypted SSD went down along with the machine. Unfotunately there is no way to recover it. Everything including the mnemonic, passwords etc was on it.
Your mnemonic is supposed to be used as a backup. If it's on the same storage system, you basically had no backup. If you can't recover it from your SSD, it's gone.

Quote
I'll keep looking for a solution anyway, even though speaking with you guys, it seems pointless.
If what you're saying is accurate, your Bitcoins are lost forever.
newbie
Activity: 39
Merit: 0
To start: how did you "lose access" to your wallet? What happened? Is there any data to recover? Any backups you forgot about? What wallet did you use?
These are the kind of questions you'll have to ask yourself in order to regain access. Forget about "a script to generate addresses".

Crypted SSD went down along with the machine. Unfotunately there is no way to recover it. Everything including the mnemonic, passwords etc was on it. I'll keep looking for a solution anyway, even though speaking with you guys, it seems pointless.
legendary
Activity: 3416
Merit: 4658
That's not possible in theory reality. You'll only be needing MUCH more than thousands billions of life times.

There is a program called "vanitygen" which creates private keys for the address you choose. You can give it a try. Your grand grand grand sons will probably NOT see the result.

Fixed that for you.

Your post made no sense.

First of all, you said "thousands" of lifetimes, then you said "grand grand grand sons"  That's at most only 5 generations (not "thousands") obviously both your statements can't be true.

Secondly, it turns out NEITHER of you statements are true.  It will take more than a thousand times the AGE OF THE UNIVERSE!  Which is MUCH MORE than "thousands of lifetimes", it's even more than BILLIONS of lifetimes.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
As said plenty of times already: forget about brute-forcing a Bitcoin address. Bitcoin wouldn't exist if that would be possible. It's much easier to find 12.5 brand new Bitcoins (this happens every 10 minutes!).

I'm trying to recover my funds.
This may be possible, if you have anything else to work with. To start: how did you "lose access" to your wallet? What happened? Is there any data to recover? Any backups you forgot about? What wallet did you use?
These are the kind of questions you'll have to ask yourself in order to regain access. Forget about "a script to generate addresses".
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
I don't mean to be rude. It's not me, but you who aren't listening. I don't need somebody's money. I'm trying to recover my funds. Even though everybody tells me that it's not possible. I've read about folks from LBC or BLC or whatever it is...has nothing to do with me or my goals. I would be gratefull to anybody who has something to say about a working script, besides the prognosis with possibilities rates.
Okay, I'm sorry if I was harsh earlier.
The thing is lots of people come here thinking they can magically generate addresses that already have Bitcoins, neglecting the fact that it bitcoin's security model was so easily broken then no one would use it at all and it wouldn't have any value.


That aside, for what you want to work, you'll need most parts of your private key or mnemonic seed phrase, then the search space would be reduced exponentially and you wouldn't have to do as much work.
However, if you do not have anything apart from the address, then there's nothing you can do because trying to generate YOUR Address is as hard as trying to generate any specific address (even those of exchanges with billions of dollars worth) and as you can see that is pretty much impossible even though you have all the computing power in the world.

So you need something to work with apart from the bitcoin addresses or you're SOL.
That's the way crypto is.
legendary
Activity: 3402
Merit: 5004
https://merel.mobi => buy facemasks with BTC/LTC
I don't mean to be rude. It's not me, but you who aren't listening. I don't need somebody's money. I'm trying to recover my funds. Even though everybody tells me that it's not possible. I've read about folks from LBC or BLC or whatever it is...has nothing to do with me or my goals. I would be gratefull to anybody who has something to say about a working script, besides the prognosis with possibilities rates.

In the past, i've helped people brute-forcing private keys and seeds when they forgot 1 word or 1 character from their key/seed using a python script... This actually IS possible, and that might be the thing those guys on LBC or BLC were talking about?
IIRC, i got a speed of around ~1000 keys/second.

There are 2^160 possible addresses, that's 1.46e+48 keys... So, in order to scan the complete keyspace, you'll need about 1.46e+45 seconds...
You'll have a 50% successrate in 7.3e+44 seconds... That's about 23171956451847141650870193314249000000 years...

Now, this is using one of my python scripts... https://en.bitcoin.it/wiki/Vanitygen says that if you run oclvanitygen on an optimzed system, you can generate up to 64 Mk/sec = 64.000.000 keys/second.
2^160/(64.000.000*3600*24*365*2) = 362.061.819.560.111.588.294.846.770.535.130 years to have a 50% chance of finding the private key whose hash of the public key is equal to the addres whose key you lost...

But, since bitcoin is about freedom, you can always use vanitygen (as said before)
./vanitygen -o found.txt 1Myfulladdresshere
Offcourese, during your lifetime you'll have a 0.000000000000000000000000000001% chance of finding a match.

If you're going to burn your power anyways, you might aswell buy an ASIC, unless you lost an address that had several 1000's of BTC you'll probably make a lot more by mining than by brute forcing... (btw, i'm not saying that you HAVE to mine... If you don't have basic knowledge, luck AND a good power rate, you'll lose money while mining, but still the odds are really big that you'll have less net loss than when you try to brute force your pk)
legendary
Activity: 1624
Merit: 2481
It already has been mentioned that this is not possible.

You can google for a script to generate private-/public- keypair.
But you could also instead visit this list containing all private keys.

Just choose the correct page number to find your address. Your chance is 1 in 1157920892373161954235709850086879078528375642790749043826051631415181614943.
Keep in mind: Guessing two times doubles your chance of finding the correct private key.
newbie
Activity: 39
Merit: 0
I don't mean to be rude. It's not me, but you who aren't listening. I don't need somebody's money. I'm trying to recover my funds. Even though everybody tells me that it's not possible. I've read about folks from LBC or BLC or whatever it is...has nothing to do with me or my goals. I would be gratefull to anybody who has something to say about a working script, besides the prognosis with possibilities rates.
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
Thnx. Heared about that soft. Thought about command line on it. How to run it as loop (to constantly create address/key pairs) and compare addresses from these generated pairs to my BTC adresses (saved in .txt or whatever) automatically and possibly keep logs of it? I've seen something like that already, just wasn't able to find it.
PS. So that my grandson could discover one day his grandpas-old-medicine-shit-laptop in the basement and feel happy about it))
Since you do not want to listen that it's futile, whenever you find a brute force software, try to generate the private key for any address in this list
Maybe in a few million years when you discover you haven't made any headway, you'll finally realise that it's futile
newbie
Activity: 39
Merit: 0
Thnx. Heared about that soft. Thought about command line on it. How to run it as loop (to constantly create address/key pairs) and compare addresses from these generated pairs to my BTC adresses (saved in .txt or whatever) automatically and possibly keep logs of it? I've seen something like that already, just wasn't able to find it.
PS. So that my grandson could discover one day his grandpas-old-medicine-shit-laptop in the basement and feel happy about it))
legendary
Activity: 3276
Merit: 2442
That's possible in theory. You'll only be needing thousands of life times.

There is a program called "vanitygen" which creates private keys for the address you choose. You can give it a try. Your grand grand grand sons will probably see the result.
newbie
Activity: 39
Merit: 0
Hello comrads.))
 I've lost an access to my bitcoin wallet couple of months ago. Long story short I only do have couple of my bitcoin address that was used to pay and request funds. Here is my question; is it possible to write a script (perl, python, ruby whatever) that will randomly generate addresses/private keys (like the bip32gen) but constantly and compare generated ones to my bitcoin addresses i've used? This seems like the only way i can restore an access i've lost because I absolutely have no idea of the secret phrase of password I've used.
Sincerely,
...
Jump to: