From a80bb01cf7d485e90332bf14e5c3314237b689f0 Mon Sep 17 00:00:00 2001 From: "Mariusz B. / mgeeky" Date: Sun, 17 Oct 2021 18:15:42 +0200 Subject: [PATCH] update --- phishing/decode-spam-headers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phishing/decode-spam-headers.py b/phishing/decode-spam-headers.py index a90e2f3..676b947 100644 --- a/phishing/decode-spam-headers.py +++ b/phishing/decode-spam-headers.py @@ -1716,7 +1716,7 @@ More information: words = [x.strip() for x in value.lower().split(' ') if len(x.strip()) > 0] if words[0] != 'pass': - result += self.logger.colored(f'- Received-SPF test failed: Should be "pass", but was: "' + str(words[0]) + '"\n', 'red') + result += self.logger.colored(f'- Received-SPF test failed', 'red') + ': Should be "pass", but was: "' + str(words[0]) + '"\n' if words[0] in SMTPHeadersAnalysis.auth_result.keys(): result += '\t- Meaning: ' + str(SMTPHeadersAnalysis.auth_result[words[0]]) + '\n\n' @@ -1758,7 +1758,7 @@ More information: expected.append('bestguesspass') if k in tests.keys() and tests[k] not in expected: - result += self.logger.colored(f'- {k.upper()} test failed: Should be "pass", but was: "' + tests[k] + '"\n', 'red') + result += self.logger.colored(f'- {k.upper()} test failed:', 'red') + ' Should be "pass", but was: "' + tests[k] + '"\n' if tests[k] in SMTPHeadersAnalysis.auth_result.keys(): result += '\t- Meaning: ' + SMTPHeadersAnalysis.auth_result[tests[k]] + '\n\n'