Bitcoin Forum
December 10, 2016, 03:25:36 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28 29 30 31 »
  Print  
Author Topic: Encrypted wallet.dat, lost password, any solutions?  (Read 172430 times)
peta4e
Hero Member
*****
Offline Offline

Activity: 672



View Profile
December 22, 2013, 12:31:06 PM
 #341

I was able successfully to recover deleted wallets with software called photorec. Great software I am not affiliated in any way just want to mention it to others which face the same problem : )) 
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
mackminer
Sr. Member
****
Offline Offline

Activity: 335



View Profile
December 26, 2013, 09:46:46 PM
 #342

Hi, I have ruby etc. installed on my machine but I just need a script to do what I want.

My situation is that I have a combination of multiple passwords - there are up to five passwords (I think), include wildcards, they could be any combination and some passwords that I use may not be there at all.

I can give more details if needs be. .5 of a bitcoin to someone that can get my wallet unlocked.

Thanks.

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
Revalin
Hero Member
*****
Offline Offline

Activity: 728


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
December 27, 2013, 07:54:42 AM
 #343

there are up to five passwords (I think), include wildcards, they could be any combination and some passwords that I use may not be there at all.

Do you mean you have a long list of passwords and your passphrase is between one and five of them?  I can help with that.  What do you mean by "include wildcards"?

Can you provide a list of samples of what they would look like?  You can substitute different words in.  It'd make it easier to see what you're describing.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
mackminer
Sr. Member
****
Offline Offline

Activity: 335



View Profile
December 27, 2013, 10:58:41 AM
 #344

there are up to five passwords (I think), include wildcards, they could be any combination and some passwords that I use may not be there at all.

Do you mean you have a long list of passwords and your passphrase is between one and five of them?  I can help with that.  What do you mean by "include wildcards"?

Can you provide a list of samples of what they would look like?  You can substitute different words in.  It'd make it easier to see what you're describing.


hotel18461846, caravan*1, thinkpad*1 lenovo*6

It's either a permutation even though I think I have tried them all - not all the words may be included or they all might be included.

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
stillfire
Full Member
***
Offline Offline

Activity: 125


View Profile
December 27, 2013, 12:06:02 PM
 #345

there are up to five passwords (I think), include wildcards, they could be any combination and some passwords that I use may not be there at all.

Do you mean you have a long list of passwords and your passphrase is between one and five of them?  I can help with that.  What do you mean by "include wildcards"?

Can you provide a list of samples of what they would look like?  You can substitute different words in.  It'd make it easier to see what you're describing.


hotel18461846, caravan*1, thinkpad*1 lenovo*6

It's either a permutation even though I think I have tried them all - not all the words may be included or they all might be included.

I can work with that. I have a password checker built for partially known structures with wildcards. Note that if you have both wildcards and unknown order, the number of permutations can explode very quickly. I will stop after a few hundred thousand attempts so please be as specific as possible. Any detail you can recollect will help (although false recollections have been a problem in the past so don't strain your memory trying). Please PM me with details.

Lost your wallet password? Try Stillfire's Password Recovery Service.
ihatepasswords
Newbie
*
Offline Offline

Activity: 5


View Profile
December 27, 2013, 09:26:47 PM
 #346

Hi revalin i had an old electrum wallet that i forgot about a while ago and went back recently to get the coins out of it but it wouldnt work even though i saved the password i used, but i think i might have changed it slightly and didnt save the changes or something but i know what it generally is and what characters i used. I found your electrum script and installed ruby on win7 and modified it to point to the wallet and electrum.exe and named it brute.rb but when i ran it it just opened and closed. i dont know what else to do can you please help?
mackminer
Sr. Member
****
Offline Offline

Activity: 335



View Profile
December 27, 2013, 10:28:59 PM
 #347

Hi revalin i had an old electrum wallet that i forgot about a while ago and went back recently to get the coins out of it but it wouldnt work even though i saved the password i used, but i think i might have changed it slightly and didnt save the changes or something but i know what it generally is and what characters i used. I found your electrum script and installed ruby on win7 and modified it to point to the wallet and electrum.exe and named it brute.rb but when i ran it it just opened and closed. i dont know what else to do can you please help?

You need to run the script within an already open terminal. Go to the folder where it is and open the command line in there. If you shift and right click you will get the option to open the terminal there.

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
ihatepasswords
Newbie
*
Offline Offline

Activity: 5


View Profile
December 28, 2013, 12:07:30 AM
 #348

I ran it from the command prompt, it gave me a password instantly and said it found it but its not the right one, i tried to send coin to myself and electrum said it was invalid.

edit: i added some random word in the initial password and it did the same thing, said found it! but of course it was the wrong password. It seems to think the first guess is the right one.

edit2: for the record im running windows 7x64 + electrum standalone 1.9.5 + ruby 1.9.3.

edit3: this is the script im using

Code:
#!/usr/bin/ruby
require 'base64'
require 'digest/sha2'
require 'open3'
require 'openssl'

# Double substitution for Electrum

# Put your best guess at your passphrase here
passphrase = '****************'

# The full path to your electrum.dat or default_wallet
wallet_file = 'C:\Users\Admin\Desktop\Brute\wallet.dat'

# Where to find Electrum.  Use 1.9.2!  Older versions may be incompatible.
$electrum = 'C:\Users\Admin\Desktop\Brute\electrum-1.9.5.exe'


def test(phrase)
  $cipher.reset
  $cipher.key = Digest::SHA256.digest(Digest::SHA256.digest(phrase))
  $cipher.update $seed
  $cipher.final
  puts phrase
  i,o,t = Open3.popen2e($electrum, "-o", "getseed")
  i.puts(phrase)
  i.close
  if t.value.success?
    puts "Found it! #{phrase}"
    exit
  end
rescue OpenSSL::Cipher::CipherError
end

def scramble(passphrase)
  characters = " !$'(),.ABCDEFGHIJKLMNOPQRSTUVWXYZ^abcdefghijklmnopqrstuvwxyz"
  list = []

  # transpose adjacent chars
  (passphrase.length - 1).times do |i|
    testphrase = passphrase.dup
    testphrase[i] = passphrase[i+1]
    testphrase[i+1] = passphrase[i]
    list << testphrase
  end

  # delete one char
  passphrase.length.times do |i|
    testphrase = passphrase.dup
    testphrase = testphrase[0,i] + testphrase[(i+1)..-1]
    list << testphrase
  end

  # substitutute one char
  passphrase.length.times do |i|
    characters.chars.each do |c|
      testphrase = passphrase.dup
      testphrase[i] = c
      list << testphrase
    end
  end

  # insert one char
  (passphrase.length + 1).times do |i|
    characters.chars.each do |c|
      testphrase = passphrase.dup
      testphrase.insert(i, c)
      list << testphrase
    end
  end

  return list.uniq
end

wallet = File.read(wallet_file)
seed_base64 = wallet.match(/'seed': '([^']+)'/).captures.first
$seed = Base64.decode64(seed_base64)
$cipher = OpenSSL::Cipher.new('aes-256-cbc')
$cipher.iv = $seed.slice!(0,16)
Dir.chdir File.dirname $electrum
list1 = scramble(passphrase)
list1.each { |i| test i }
list1.each { |i| scramble(i).each { |j| test j }}
puts "No luck."
exit 1
dbradley
Newbie
*
Offline Offline

Activity: 13


View Profile
December 29, 2013, 02:53:23 AM
 #349

Rather than giving your whole wallet over to someone, just extract one keypair, preferably one for an address with 0 balance.  They can then crack it, but won't have access to all of your funds when they succeed.
ihatepasswords
Newbie
*
Offline Offline

Activity: 5


View Profile
December 29, 2013, 04:00:17 PM
 #350

Rather than giving your whole wallet over to someone, just extract one keypair, preferably one for an address with 0 balance.  They can then crack it, but won't have access to all of your funds when they succeed.

I just need a working script and i can do it myself, is OP going to come back?
Pasco60
Full Member
***
Offline Offline

Activity: 126


View Profile
January 03, 2014, 03:39:24 AM
 #351

Can anybody help me?
https://bitcointalk.org/index.php?topic=395282

PMC: 1FERnGpCrQzUdYRN3guPoJ9YTgYSN6tCe5
wileecotye
Newbie
*
Offline Offline

Activity: 3


View Profile
January 03, 2014, 05:15:40 AM
 #352

Hi -all Newbie here
i have done the stupid thing and forgotten my password to my litecoin wallet

have tried all the scripts here on the site and can only get one to run
i need a script that i know the first 9 charasters but not the rest could be unto 9 long
have managed to get one script from page 2 working in a linux platform

can some provide a script that can run various letters and number for the rest of the password please
tazja
Newbie
*
Offline Offline

Activity: 14


View Profile
January 08, 2014, 06:45:54 PM
 #353

Hello I opened a wallet long ago i have 0.8 btc, I absolutely remember not the password, I just know that I put 10 characters with uppercase in the word. Is it possible to have a script that test every possible combination of word 10 character?
Revalin
Hero Member
*****
Offline Offline

Activity: 728


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
January 09, 2014, 02:21:53 AM
 #354

edit: i added some random word in the initial password and it did the same thing, said found it! but of course it was the wrong password. It seems to think the first guess is the right one.

That's strange.  Try running this script and paste the output into this thread.

Code:
#!/usr/bin/ruby
require "open3"
$electrum = 'C:\Users\Admin\Desktop\Brute\electrum-1.9.5.exe'
i,o,t = Open3.popen2e($electrum, "-o", "getseed")
i.puts "wrong-password"
i.close
puts o.read.inspect
puts t.value.inspect

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
Revalin
Hero Member
*****
Offline Offline

Activity: 728


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
January 09, 2014, 03:09:54 AM
 #355

i need a script that i know the first 9 charasters but not the rest could be unto 9 long

Hello I opened a wallet long ago i have 0.8 btc, I absolutely remember not the password, I just know that I put 10 characters with uppercase in the word. Is it possible to have a script that test every possible combination of word 10 character?

It's not feasible to guess completely random passphrases.  Here are how many days it it will take with one CPU:

Code:
   passphrase length            lowercase         alphanumeric        any character
                   1                 0.00                 0.00                 0.00
                   2                 0.00                 0.00                 0.00
                   3                 0.00                 0.03                 0.10
                   4                 0.05                 1.71                 9.43
                   5                 1.38               106.03               895.58
                   6                35.75              6574.10             85080.08
                   7               929.61            407594.28           8082607.59
                   8             24169.80          25270845.55         767847721.40
                   9            628414.78        1566792424.34       72945533532.94
                  10          16338784.22       97141130308.84     6929825685629.39

Even with a large budget (thousands of CPUs or GPUs) you could only do 6 or 7 characters.

It's only possible to crack a passphrase when you know most of it and the unknown part is constrained.  That's why I have so many custom tailored scripts in this thread - each targets a narrow pattern which could be identified.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
artibaton
Newbie
*
Offline Offline

Activity: 7


View Profile
January 11, 2014, 04:51:44 AM
 #356

Could you help me with a script Revalin? I have tried some of the ones listed earlier but did not  help me find my password.
I know the first 7 characters with 100%. Following is 2 words. I have a list of words for words_1 and words_2, I might have also used either a ! or ^^ at the end.
Ex: Known(Words_1)(Words_2)(special)

Thanks!
Revalin
Hero Member
*****
Offline Offline

Activity: 728


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
January 11, 2014, 05:42:41 AM
 #357

Could you help me with a script Revalin? I have tried some of the ones listed earlier but did not  help me find my password.
I know the first 7 characters with 100%. Following is 2 words. I have a list of words for words_1 and words_2, I might have also used either a ! or ^^ at the end.
Ex: Known(Words_1)(Words_2)(special)

Thanks!

Here you go:

Code:
#!/usr/bin/ruby -w
require 'net/http'
require 'json'

$rpc_pass = "some-password"
passphrase = 'IKnowThisPart'
words_1 = ['one', 'two', 'three']
words_2 = ['btc', 'ltc', 'usd']
words_3 = ['', '!', '^^']

def test(passphrase)
  puts passphrase.inspect
  request = Net::HTTP::Post.new("/")
  request.basic_auth "", $rpc_pass
  request.body = { method:"walletpassphrase", params:[passphrase, 1] }.to_json
  response = Net::HTTP.new("localhost", 8332).request(request)
  if response.code == "401" ; puts "Incorrect RPC user/pass" ; exit 1 ; end
  ret = JSON.parse response.body
  if ret["error"].nil? ; puts "\nFound it! #{passphrase.inspect}" ; exit ; end
  return if ret["error"]["code"] == -14 # wrong passphrase
  raise "WTF? #{ret.inspect}"
end

words_1.each do |w1|
  words_2.each do |w2|
    words_3.each do |w3|
      test(passphrase + w1 + w2 + w3)
    end
  end
end

puts "No luck."
exit 1

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
ihatepasswords
Newbie
*
Offline Offline

Activity: 5


View Profile
January 11, 2014, 05:22:28 PM
 #358

edit: i added some random word in the initial password and it did the same thing, said found it! but of course it was the wrong password. It seems to think the first guess is the right one.

That's strange.  Try running this script and paste the output into this thread.

Code:
#!/usr/bin/ruby
require "open3"
$electrum = 'C:\Users\Admin\Desktop\Brute\electrum-1.9.5.exe'
i,o,t = Open3.popen2e($electrum, "-o", "getseed")
i.puts "wrong-password"
i.close
puts o.read.inspect
puts t.value.inspect

Ran from the command prompt:

C:\Documents and Settings\Administrator\Desktop\Brute>tryagain.rb
"Error: Wallet file not found.\nType 'electrum create' to create a new wallet, o
r provide a path to a wallet with the -w option\n"
#<Process::Status: pid 712 exit 0>

Wallet, electrum, and script all in same folder.

i tried adding the -w flag in different ways pointing to the wallet file but it kept throwing syntax errors.
Revalin
Hero Member
*****
Offline Offline

Activity: 728


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
January 11, 2014, 10:04:39 PM
 #359

i tried adding the -w flag in different ways pointing to the wallet file but it kept throwing syntax errors.

Try changing this:

i,o,t = Open3.popen2e($electrum, "-o", "getseed")

To this:

i,o,t = Open3.popen2e($electrum, "-w", "electrum.dat", "-o", "getseed")

Or this:

i,o,t = Open3.popen2e($electrum, "-w", 'C:\Users\Admin\Desktop\Brute\electrum.dat', "-o", "getseed")

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
tazja
Newbie
*
Offline Offline

Activity: 14


View Profile
January 12, 2014, 05:15:16 AM
 #360

Thank you for answering me. If I know that I probably put 10 characters with a capital letter at the beginning and  2 number at the end without knowing what it was, I have a chance to find the password with a script?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28 29 30 31 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!