Bitcoin Forum
March 28, 2024, 11:24:44 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: April 06, 2013, 07:33:21 PM
Maybe this will help someone with mistyped password on Windows. This is a short Powershell script that tries the passwords read from standard input as rapidly as the particular cryptocoin client will allow.
Code:
#
# Please put the correct username/password below
#
$h = new-object Net.WebClient
$h.Credentials = new-object Net.NetworkCredential("user","pass")
$h.Encoding = [Text.Encoding]::Default
#
# read the passord guesses from standard input
#
$Input | foreach {
    try {
        $p = $_ # + 'Kongreßstraße'
        Write-Output "Trying '$p'"
        $r = $h.UploadString('http://localhost:8332/','{"method":"walletpassphrase","params":["'+$p+'",1]}')
        # Write-Output $r
        #
        # Correct password found!
        #
        break
    }
    catch [Net.WebException] {
        $e = $_
    switch -wildcard ($e.Exception.Message) {
    "*(401) Unauthorized*" {
    Write-Output "Fix the user/pass!"
    Exit-PSSession
    }
    "*(500) Internal Server Error*" {
    continue
    }
    default {
                $e | Format-List -Force
    Exit-PSSession
            }
        }
    }
}
#
# Exiting without success!
#
Write-Output "Exiting!"

You can either feed it a file/dictionary of possible passwords:
Code:
powershell -executionpolicy bypass -file bitcrack.ps1 < dictionary.txt
or a pipe in the one-per-line output from the password generator:
Code:
generator.exe | powershell -executionpolicy bypass -file bitcrack.ps1
.

For someone who already has the Ruby installed on their Windows machine you can take those programs and delete the system() call and the case/end statement below it. Also change 'print phrase, "\t"' to 'puts phrase'. They should speed up the checks to the maximum achievable without hacking the wallet-handling code in the Satoshi client.

Thank you, 2112, this looks promising.

I have changed the brute.rb script from Revalin according to your suggestions and I am now using it as a password generator for your powershell script. It took some trying but now I know that there is something like a decent cli on windows Smiley

The whole thing runs very fast now. Problem is, I still do have the problems with the umlauts. Again I have checked that using a fresh, empty wallet with a password containing umlauts -which was not found. If I set the password to one without umlauts, your script finds it.

I assume that this has something to do with the encodings settings in your script. I already tried changing the encoding to 'BigEndianUnicode' and 'UTF8', but in both circumstances, the password was not found.

Do you have any further ideas.

Slightly less desperated, maybe even a bit optimistic ...

Niklas
2  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: April 05, 2013, 10:55:01 AM

Anything is possible, especially in the presence of bugs or various typing-utilities/spelling-checkers/etc. Blind typing into the bitcoin-qt window is a classic failure mode for that, e.g. for Germans: Kongressstraße vs. Kongreßstraße.

For KGB agents the example would be: Microsoft vs. Miсrosoft. (For non-KGB-agents: the second "c" is actually a cyrillic "s".)

Edit: Oh, and guys, please don't race into registering the homo-glyph accounts for the Bitcoin luminaries. Registering as "Gavin-non-break-space-Andresen" is not that funny.

Edit2: Fixed the external link.

After all this trouble with the encoding on linux I switched back to Windows 7 to try to crack my password. Cracking a test-wallet with a password that contains an umlaut now works with Revalins' script.

However, the next issue is up: the ruby script is so slow on Windows (compared to Linux). On my linux laptop with a Core i7 it tried passwords at a frquency of about 10-20 attempts per second. On a Windows 7 machine wiht a Core i3 it slows down to something like one password per second. Part of this is probably due to the CPU used, but the larger part seems to be OS specific. Is there anything one could do about that?

Desperate,

Niklas
3  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: March 21, 2013, 09:44:31 PM
You need to identify the character set used to encode the password. It may be different than the character set used to encode the font displayed by the terminal program and different from the character sett used to store the text of your program in a file.

Thank you for your help, 2112.

However, if I am honest I do only have a faint idea of how to accomplish what you describe. Does the bitcoin client use different encodings on different platforms? The wallet was encriptded on a German Windows 7 installation; for running Revalins script I now use a German Ubuntu 12.04.

Do you have a concrete strategy how I could get Revalins script running using all characters on my keyboard?

Thank you
4  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: March 13, 2013, 03:26:29 PM
I mangaged to solve my problems on my own:

The issue with the german umlauts seems to have to do with some encoding problems. It dissappeared when I used linux instead of Windows.

I am now running the script brute.rb on a virtual machine provided my Amazon using Linux. After registering for Amazon Web Services (AWS), you can use one of their smallest virtual machine instances ('micro') for free for one year. After starting the bitcoind, you just start the script like this:

ruby brute.rb > log.txt &

It then sends its output to log.txt and you can just logout. It takes quite some time, since the AWS micro instance is rather low on CPU power. An attempt to crack an 8 character password took about one week. However, it is absolutely free; you don't even have to pay for the electricity ...

Hi again,

I keep having problems with Revalins script and the german umlaute (Ä Ö Ü). I have added them to brute.rb and then let the script try to find the correct password - no luck so far. Looking at the stream of passwords brute.rb tried I recognized that it always displayed question marks instead of the umlauts. Changing the character encoding of the terminal to 'Western" changed that. However, I remained suspicious. I let bitcoin create a new wallet (whilst renaming the one I do not know the password of) and encrypted this wallet with a password containing umlauts. If I now let this script run it does not find the correct password, no matter what character encoding I am using on the terminal.

Does anyone have a solution for this problem? It could quite possibly be the case that my password contains umlauts since these are close on my keyboard to some of the characters i assume are contained in the password.

Thanks
5  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: February 15, 2013, 08:18:58 AM
Hi everyone,

I have exactly the same problem as described here - forgot the password for my wallet. I have tried out Revalins script but sso far I had no luck. There are two issues that possibly prevent me from succesfully using Revalin's script:

1. I am running the script on the laptop I also use for my work (I do not have another computer at the moment. Therefore I can let the script run only at night and on weekends, but there is no possibility to resume the script at the point where it left off.)
2. I tried to add german umlauts (ä,ö,ü) to the character list used in the script, but somehow they were not correctly used.

For the reasons mentioned above I have two questions to Revalin and all other interested:

Would it be possible to implement a resume function (possibly using a protocol of the already tried-out combinations)?
Could you add german umlaut and special characters (Ä,Ö,Ü,ä,ö,ü,ß)?

Any help would be great!

I mangaged to solve my problems on my own:

The issue with the german umlauts seems to have to do with some encoding problems. It dissappeared when I used linux instead of Windows.

I am now running the script brute.rb on a virtual machine provided my Amazon using Linux. After registering for Amazon Web Services (AWS), you can use one of their smallest virtual machine instances ('micro') for free for one year. After starting the bitcoind, you just start the script like this:

ruby brute.rb > log.txt &

It then sends its output to log.txt and you can just logout. It takes quite some time, since the AWS micro instance is rather low on CPU power. An attempt to crack an 8 character password took about one week. However, it is absolutely free; you don't even have to pay for the electricity ...
6  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: January 22, 2013, 04:31:12 PM
Hi everyone,

I have exactly the same problem as described here - forgot the password for my wallet. I have tried out Revalins script but sso far I had no luck. There are two issues that possibly prevent me from succesfully using Revalin's script:

1. I am running the script on the laptop I also use for my work (I do not have another computer at the moment. Therefore I can let the script run only at night and on weekends, but there is no possibility to resume the script at the point where it left off.)
2. I tried to add german umlauts (ä,ö,ü) to the character list used in the script, but somehow they were not correctly used.

For the reasons mentioned above I have two questions to Revalin and all other interested:

Would it be possible to implement a resume function (possibly using a protocol of the already tried-out combinations)?
Could you add german umlaut and special characters (Ä,Ö,Ü,ä,ö,ü,ß)?

Any help would be great!
7  Other / Beginners & Help / Re: Whitelist Requests (Want out of here?) on: January 08, 2013, 07:24:32 PM
HI everyone,

forget about posting here. It seems that it will not help you getting whitelisted. At least, it did not work for me, although I gave a specific topic I wanted to be whitelisted for.

Anyway, maybe the newby-restrictions do make sense somehow.

Best, Niklas
8  Other / Beginners & Help / Re: Bitcoin and quantum computers on: January 08, 2013, 07:19:41 PM
Thank you for your answers!

Best, Niklas
9  Other / Beginners & Help / Bitcoin and quantum computers on: December 12, 2012, 08:15:29 PM
Hi everyone,

does anyone have a clue about what would happen to bitcoin if someone figured how to build a working and usable quantum computer? I do not now much about these machines but a colleague of mine who is a physicist told me that every standard encryption encryption - which is used quite a lot in bitcoin, right? - could be cracked in no time.

Would this be the end of bitcoin?

Niklas
10  Other / Beginners & Help / Re: Whitelist Requests (Want out of here?) on: December 12, 2012, 08:00:34 PM
Hi, I am Niklas.

I stumbled about this forum when looking for a way to recover the lost password of my bitcoin wallet. Therefore I would really appreciate it if you could grant me normal access in order to be able to post on this topic: https://bitcointalk.org/index.php?topic=85495.0;all.

Would be great!

Cheers, Niklas
11  Other / Beginners & Help / Re: Introduce yourself :) on: December 12, 2012, 07:52:12 PM
Hi, i am Niklas.

I am very much interested in the long-term development of Bitcoin and looking forward to fruitful discussions on this forum.

Cheers
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!