Fix the logic

main
Florent Daigniere 2 years ago
parent e43effab63
commit 32d44b96c3

@ -1,14 +1,12 @@
# Malicious macros should be blocked # Malicious macros should be blocked
# see https://github.com/clr2of8/VBAstomp and https://github.com/decalage2/oletools/wiki/mraptor # 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" python3 tests/email_test.py message-macro-stomp "tests/compose/filters/2003x32_word_msgbox_stomped_fakecode.doc"
if [ $? -eq 25 ]; then if [ $? -ne 25 ]; then
exit 0
else
exit 1 exit 1
fi fi
python3 tests/email_test.py message-autoexec-macro "tests/compose/filters/excel4_sample_macro.slk" python3 tests/email_test.py message-autoexec-macro "tests/compose/filters/excel4_sample_macro.slk"
if [ $? -eq 25 ]; then if [ $? -ne 25 ]; then
exit 0
else
exit 1 exit 1
fi fi
exit 0

Loading…
Cancel
Save