Bitcoin Forum
May 02, 2024, 07:14:16 AM *
News: Latest Bitcoin Core release: 27.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: May 03, 2014, 03:26:57 PM
Yes, it'll work with Litecoin-Qt wallets too, thanks to the fact that they use the same wallet container (BerkeleyDB) and mkey formats. I updated the docs.

Thanks for the script but i had no luck Sad could you possibly help me with making it generate 4-7 digits all ranging between 4-8?
2  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: April 30, 2014, 07:53:32 PM
this works on a ltc wallet as well? Also thanks for the help Smiley
3  Bitcoin / Bitcoin Technical Support / Re: Encrypted wallet.dat, lost password, any solutions? on: April 20, 2014, 04:34:01 PM
I need the script to generate a password that must contain  6 and 7 within the parameters already set, if someone could help me modify the script that would be great Cheesy
i.e: it would generate
PASSWORD63427
PASSWORD364734

It would always contain 6,7 within the numbers and have the ability to have 6 and 7 more than once

Code:
#!/usr/bin/ruby

middle = "PASSWORD"           # The known part in the middle
min_right = 3                  # The minimum number of chars on the left
max_right = 6                  # The maximum number of chars on the left
max_total = 6                 # The max total unknowns
chars = '456789'.chars.to_a # Possible chars to choose from
#chars << '\\'                 # ... plus backslash
#chars << "'"                  # ... plus single quote

def test(phrase)
  print phrase, "\t"
  system("./litecoind", "walletpassphrase", phrase, "20")
  case $?.exitstatus
  when 0
    puts "Found it! #{phrase}"
    exit 0
  when 127
    puts "bitcoind not found in current dir"
    exit 1
  when nil
    puts "Aborting"
    exit 1
  end
end

(1..max_total).each do |length|
  chars.repeated_permutation(length) do |str|
    max_offset = [max_right, length].min
    (min_right..max_offset).each do |offset|
      right = str.join[0,offset]
      left = str.join[offset,99] || ""
      test(middle + right)
    end
  end
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!