From 0426f6e797249894a2d81c9dbd920dbf7ac0aadc Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Mon, 6 May 2019 12:23:00 +0200 Subject: [PATCH] olevba: Hint at debug log if decrypt fails --- oletools/olevba.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 36dc1df..1e74fc8 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -3893,6 +3893,7 @@ def process_file(filename, data, container, options, crypto_nesting=0): [crypto.WRITE_PROTECT_ENCRYPTION_PASSWORD, ] decrypted_file = crypto.decrypt(filename, passwords) if not decrypted_file: + log.error('Decrypt failed, run with debug output to get details') raise crypto.WrongEncryptionPassword(filename) log.info('Working on decrypted file') return process_file(decrypted_file, data, container or filename, -- libgit2 0.21.4