From 32d44b96c37bd38b36fcfd91b0e27251e10d0bed Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 24 Nov 2022 11:22:43 +0100 Subject: [PATCH] Fix the logic --- tests/compose/filters/03_email_macro.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/compose/filters/03_email_macro.sh b/tests/compose/filters/03_email_macro.sh index c91d1363..8ecad31d 100755 --- a/tests/compose/filters/03_email_macro.sh +++ b/tests/compose/filters/03_email_macro.sh @@ -1,14 +1,12 @@ # Malicious macros should be blocked # see https://github.com/clr2of8/VBAstomp and https://github.com/decalage2/oletools/wiki/mraptor python3 tests/email_test.py message-macro-stomp "tests/compose/filters/2003x32_word_msgbox_stomped_fakecode.doc" -if [ $? -eq 25 ]; then - exit 0 -else +if [ $? -ne 25 ]; then exit 1 fi python3 tests/email_test.py message-autoexec-macro "tests/compose/filters/excel4_sample_macro.slk" -if [ $? -eq 25 ]; then - exit 0 -else +if [ $? -ne 25 ]; then exit 1 fi + +exit 0