Commit 0426f6e797249894a2d81c9dbd920dbf7ac0aadc

Authored by Christian Herdtweck
1 parent 246ade44

olevba: Hint at debug log if decrypt fails

Might be password like error message states, but could also be a problem
with crypto libraries (e.g. dll/so-file for cryptography not found)
Showing 1 changed file with 1 additions and 0 deletions
oletools/olevba.py
... ... @@ -3893,6 +3893,7 @@ def process_file(filename, data, container, options, crypto_nesting=0):
3893 3893 [crypto.WRITE_PROTECT_ENCRYPTION_PASSWORD, ]
3894 3894 decrypted_file = crypto.decrypt(filename, passwords)
3895 3895 if not decrypted_file:
  3896 + log.error('Decrypt failed, run with debug output to get details')
3896 3897 raise crypto.WrongEncryptionPassword(filename)
3897 3898 log.info('Working on decrypted file')
3898 3899 return process_file(decrypted_file, data, container or filename,
... ...