Commit ddeeb743873ffdafac99aa4ef77a34066f1b7e4a
1 parent
83720167
tests: add encrypted excel samples
These are encrypted with the standard password hard-coded into excel to implement a form of write protection
Showing
3 changed files
with
4 additions
and
0 deletions
tests/olevba/test_basic.py
| @@ -28,7 +28,11 @@ class TestOlevbaBasic(unittest.TestCase): | @@ -28,7 +28,11 @@ class TestOlevbaBasic(unittest.TestCase): | ||
| 28 | CRYPT_DIR = join(DATA_BASE_DIR, 'encrypted') | 28 | CRYPT_DIR = join(DATA_BASE_DIR, 'encrypted') |
| 29 | CRYPT_RETURN_CODE = 9 | 29 | CRYPT_RETURN_CODE = 9 |
| 30 | ADD_ARGS = [], ['-d', ], ['-a', ], ['-j', ], ['-t', ] | 30 | ADD_ARGS = [], ['-d', ], ['-a', ], ['-j', ], ['-t', ] |
| 31 | + EXCEPTIONS = ['autostart-encrypt-standardpassword.xlsm', | ||
| 32 | + 'autostart-encrypt-standardpassword.xlsb'] | ||
| 31 | for filename in os.listdir(CRYPT_DIR): | 33 | for filename in os.listdir(CRYPT_DIR): |
| 34 | + if filename in EXCEPTIONS: | ||
| 35 | + continue | ||
| 32 | full_name = join(CRYPT_DIR, filename) | 36 | full_name = join(CRYPT_DIR, filename) |
| 33 | for args in ADD_ARGS: | 37 | for args in ADD_ARGS: |
| 34 | try: | 38 | try: |
tests/test-data/encrypted/autostart-encrypt-standardpassword.xlsb
0 → 100755
No preview for this file type
tests/test-data/encrypted/autostart-encrypt-standardpassword.xlsm
0 → 100755
No preview for this file type