Bitcoin Forum
May 27, 2024, 05:19:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 [88] 89 90 91 92 93 94 95 »
1741  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 07, 2021, 11:47:33 AM
I have same question, using blockstack should be far easier (since you've used it on past) than mess with the key when we don't know even how blockstack store user's key.

Code:
def aes_decrypt_legacy(payload, secret):
    """
    Legacy AES decryption (FROM INSECURE ENCRYPTION)!
    Return decrypted secret on success
    Return None on error
    """
    print "Falling back to legacy decryption"
   
    # DO NOT USE TO ENCRYPT
    # legacy hold-over for migrating to stronger encryption
    def ensure_length(secret):
        if len(secret) > 32:
            secret = secret[:32]

        elif len(secret) < 24:
            length = 24 - (len(secret) % 24)
            secret += chr(length)*length
        elif len(secret) > 24 and len(secret) < 32:
            length = 32 - (len(secret) % 32)
            secret += chr(length)*length

        return hexlify(secret)

    try:
        PADDING = '{'

        secret = ensure_length(secret)
        cipher = Cipher(algorithms.AES(unhexlify(secret)), modes.ECB(),
                        backend = default_backend())
        decryptor = cipher.decryptor()
        res = decryptor.update(base64.b64decode(payload)) + decryptor.finalize()
        res = res.rstrip(PADDING)
        return res
    except:
        return None


def aes_decrypt(payload, secret):
    """
    Decrypt a base64-encoded payload with a hex-encoded secret.
    Returns the plaintext on success
    Returns None on error
    """
    try:
        res = scrypt.decrypt(base64.b64decode(payload), unhexlify(secret))
        return res
    except scrypt.error:
        res = aes_decrypt_legacy(payload, secret)
        return res
1742  Bitcoin / Development & Technical Discussion / Re: I'm searching for binaries of older versions on: January 06, 2021, 01:16:43 PM
on git
https://github.com/bitcoin/bitcoin/releases
1743  Bitcoin / Bitcoin Technical Support / Re: **REWARD** Help me restore my wallet!! on: January 06, 2021, 11:23:30 AM
Right.

Electrum wallet could be encoded with password or not. If not - it is easier, file has JSON format, looks like
Code:
{
    "addr_history": {
        "3PQRST.....": [
           
    },
    "addresses": {
        "3456789.......": {},
    },

Encrypted wallets are base64 encoded, so it looks like a mess (but only with readable characters).
Were you able to retrieve any information about folders? Usually you look for files inside
Code:
electrum_data/wallets
folder.
1744  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 06, 2021, 11:14:59 AM
I am lost...
Finally - does he have his DECODED private key, or ENCODED?
If it is ENCODED and he has password, he must use blockstack to decode it.

What he posted is not a private key HEX form (ef242kfjj24ekf3223...) and cannot be easily converted into WIF.

21XO: were you able to launch blockstack and retrieve your private key?
1745  Bitcoin / Bitcoin Technical Support / Re: **REWARD** Help me restore my wallet!! on: January 06, 2021, 09:32:06 AM
Have you seen this topic?
https://bitcointalk.org/index.php?topic=22697.0
1746  Bitcoin / Bitcoin Technical Support / Re: **REWARD** Help me restore my wallet!! on: January 06, 2021, 08:06:25 AM
Ask Dave https://www.walletrecoveryservices.com/
1747  Bitcoin / Bitcoin Technical Support / Re: Password encryption change between versions? on: January 05, 2021, 08:07:17 PM
I do not think it has changed. Is it possible that you used different keyboard layout? Special characters?

You may always try to dump password hash (*1) and try to "open" it using 3rd party program (*2 or *3). At the end what you get is number of iterations and final hash. If you launch program with your expected password, you will have confirmation if the provided password is correct.

You may also try to use script (*4) which will extract your private key from wallet.dat file - then you may import it into more user-friendly client like Electrum.


*1 manual DIY here: https://walletpasswordrecovery.com/faq/
 (avoid online solutions if you do not trust them... https://www.onlinehashcrack.com/tools-bitcoin-litecoin-hash-extractor.php)

*2 https://hashcat.net/wiki/

*3 https://github.com/gurnec/btcrecover - I think it works without hash extraction, you may use your wallet.dat backup file.

*4 https://github.com/jackjack-jj/pywallet | a simple guide here: https://bitcoin.stackexchange.com/a/66763

1748  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: January 05, 2021, 12:16:21 PM
i use windows 10 i don't have any usb memory to install linux.

cygwin?
or virtualbox
1749  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 05, 2021, 09:35:10 AM
It was already discussed before. He has 66 characters because the last ones are 01 indicating compressed address.
He may convert his private key to WIF and import into any wallet like Electrum using for example this page https://learnmeabitcoin.com/technical/wif (and keeping some safety measures, like being offline etc).
The question is if he has his REAL key or encrypted. If it is real, the migration is easy and could be done in 1 minute. If is encrypted he need the program which is able to decrypt it - in this case the old version of blockstack.

So to be clear, according to that link you posted, the "ef" at the beginning is also bytes in the private key, since it's got to be 256-bit (and "01" is not part of the key)? They also have an example where they have a private key beginning with "ef" but has a prefix of "80" indicating mainnet that's put before the private key. I just want to make sure we're not dealing with a testnet private key since "ef" is also the prefix of testnet.

Take a look at comment https://bitcointalk.org/index.php?topic=5306458.msg56017277#msg56017277
If key for testnet starts not with "ef" and used on learnmeabitcoin page generates this same WIF for testnet like in comment I would like to believe that it is just a coincidence and (I hope) OP has a key for real network.
1750  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 05, 2021, 09:16:54 AM
It was already discussed before. He has 66 characters because the last ones are 01 indicating compressed address.
He may convert his private key to WIF and import into any wallet like Electrum using for example this page https://learnmeabitcoin.com/technical/wif (and keeping some safety measures, like being offline etc).
The question is if he has his REAL key or encrypted. If it is real, the migration is easy and could be done in 1 minute. If it is encrypted he needs the program which is able to decrypt it - in this case the old version of blockstack.
1751  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 04, 2021, 07:15:43 PM
I managed to install it using cygwin, so on your linux machine it should work... Or on Windows... 
Remember that you will probably need packages libssl-devel (for cryptography/wheels) and python-devel.
1752  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 04, 2021, 05:32:56 PM
Maybe you need to install xcode-libraries or Xcode Command Line Tools? Error is common:
https://www.google.be/search?q=mac+error+command+cc

Or switch to other system...

1753  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: January 04, 2021, 03:32:16 PM
Thanks. But using the example of puzzle 64, most of the hex values are just zeroes so only 16 characters are used for calculation
so if i use your calculation:
2^16 / 1000000000 (per/second key rate of a fast bitcrack)  /86400 would be the correct formula right? but that produces a number in the sub decimal i.e. hours in total to calculate puzzle 64

You mix binary and hex notation.

1754  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 04, 2021, 12:20:53 PM

Since the private key length is 66 character (rather than 64 character), know ef used as prefix which is used to generate WIF from private key in HEX format and example by OP doesn't end with 01, i simply assume ef is the identifier whether the private key meant for testnet wallet/network and 03 as custom prefix.

Thanks for the correction.

He said his key is like "ef242kfjj24ekf3223jesdkhefsfhk324wuefhw38fhrypofhtr34d342132d34jsd49", which is encoded form.
it does not look like hex which could be easily converted into WIF, so I would not worry about it as long as we do not know what is decoded hex form.
1755  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 04, 2021, 11:57:20 AM

1. According to https://learnmeabitcoin.com/technical/wif, ef is tesnet prefix which used when you create WIF from private key in HEX format. Do you open correct file / see correct line ?


Information if it is testnet or not is not included in private key itself. Only in prefix which is used to generate WIF.

Quote

2. Looking at https://docs.blockstack.org/understand-stacks/accounts, especially example of their private key when generating account also 66 characters. Although i don't know why their example use prefix 03 (maybe it's standard for Stacks 2.0 network)

npx -q stacks-gen sk --testnet

{
  "phrase": "guide air pet hat friend anchor harvest dog depart matter deny awkward sign almost speak short dragon rare private fame depart elevator snake chef",
  "private": "0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a6401901",
  "public": "022d82baea2d041ac281bebafab11571f45db4f163a9e3f8640b1c804a4ac6f662",
  "stacks": "ST16JQQNQXVNGR8RZ1D52TMH5MFHTXVPHRV6YE19C",
  "stacking": "{ hashbytes: 0x4d2bdeb7eeeb0c231f0b4a2d5225a3e3aeeed1c6, version: 0x00 }",
  "btc": "mnYzsxxW271GkmyMnRfiopEkaEpeqLtDy8",
  "wif": "cMh9kwaCEttgTQYkyMUYQVbdm5ZarZdBHErcq7mXUChXXCo7CFEh"
}


In this example the private key is 0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a64019. 01 at the end is a flag to indicate to use compressed address.
Because the program was launched with --testnet the generated WIF is "cMh9"... - which is created by adding "ef" at the beginning.
This same private key (with compressed flag) for the real network will produce WIF KwLAJ2aLoqCRHy5VawfR3B6a8rGBC7XVDCi9ihK1y63XGTgP3VbR
1756  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 03, 2021, 08:02:08 PM
At least you know you must use python 3.

Blockstack v 0.18 only works with python 2. It is incompatible with python 3.


Mea culpa, I did not know - I just took a look at python output.


I just thought that if blockstack requires python2 and dependency migrated to python3, using master from git will not work, it will be needed to find the last correct version for python2.
But let he first try to install from master...
1757  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 03, 2021, 05:40:36 PM
Yes I tried that, also didn't work.

https://ibb.co/KmyV8rv

ah, weird
Some people used that workaround: https://github.com/OneDrive/onedrive-sdk-python/issues/167

At least you know you must use python 3.
1758  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 03, 2021, 05:26:27 PM
check if you are using python3. Probably 2.
Maybe you must install python 3 or launch using command
Code:
python3
and/or
Code:
pip3


Edit:
ah, yes, you are using python 2.7
Try with 3.x
1759  Bitcoin / Bitcoin Technical Support / Re: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet on: January 03, 2021, 04:14:10 PM
Do you have python installed on your computer?

https://www.python.org/downloads/
Pip?

https://phoenixnap.com/kb/install-pip-windows

then to command
Code:
pip install blockstack==0.18.0.10
should work.

The other way is to download files:
https://pypi.org/project/blockstack/0.18.0.10/#files

and then install from the downloaded package:
pip install ./downloaded/blockstack-0.18.0.10.tar.gz
like described here: https://packaging.python.org/tutorials/installing-packages/
1760  Other / Beginners & Help / Re: Burning dust on: December 17, 2020, 05:30:12 PM
Yeah, my main concern would be that most dust attacks are too small to send on their own without including another input, be that another dust input or a regular input. Either way, you are revealing some information to the attacker.

Yep, if you pay the fee from the dust, the rest is too small to be send and is rejected by servers. AFAIK now 547 is the limit.
Pages: « 1 ... 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 [88] 89 90 91 92 93 94 95 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!