Skip to content

Commit f923857

Browse files
committed
Add a hint on how to recover the password with hashcat
1 parent 650c780 commit f923857

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tibudecrypt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def read_file(self):
164164
self.pass_hmac_result = base64.b64decode(pass_hmac_result)
165165
self.enc_privkey_spec = base64.b64decode(enc_privkey_spec)
166166
self.enc_sesskey_spec = base64.b64decode(enc_sesskey_spec)
167+
print('Password forgotten? hashcat -O -m 160 --hex-salt --increment -a 3 {result}:{salt}'.format(
168+
salt=self.pass_hmac_key.hex(), result=self.pass_hmac_result.hex()))
167169
except binascii.Error:
168170
# Raised if the b64decode fails.
169171
raise

0 commit comments

Comments
 (0)