Skip to content

Commit

Permalink
Update btcrpass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
3rdIteration committed Jan 8, 2024
1 parent 5efa259 commit 3693de5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion btcrecover/btcrpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -2263,6 +2263,8 @@ def check_blockchain_decrypted_block(self, unencrypted_block, password):
"<== in Decrypted Block ==>" +
unencrypted_block.decode("ascii") +
"<==\n")
global searchfailedtext
searchfailedtext = "\nAll possible passwords (as specified in your tokenlist or passwordlist) have been checked and none are correct for this wallet. You could consider trying again with a different password list or expanded tokenlist... \n**NOTE** Some possible matches were identified during this search, so please also review possible-passwords.log that was created in the BTCRecover folder..."
except UnicodeDecodeError:
pass

Expand Down Expand Up @@ -2783,7 +2785,7 @@ def decrypt(self, password):

# A bit fragile because it assumes the guid is in the first encrypted block,
return decrypted[:-padding] if 1 <= padding <= 16 and re.search(
b"\"guid\"|\"sharedKey\"|\"keys\"", decrypted) else None
self.matchString, decrypted) else None

def decrypt_wallet(self, password):
# Can't decrypt or dump an extract in any meaninful way...
Expand Down

0 comments on commit 3693de5

Please sign in to comment.