diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-10-04 06:32:57 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-10-04 06:32:57 (GMT) |
commit | 945aa5096d3c6d2ae054b6c8ef18e749acaec533 (patch) | |
tree | a76ca8a1c9303dfde49493d83d848e66c5a7d678 /tests/analysis | |
parent | 29fd2d9d148f1737ff0dede043c9dc376116b3a4 (diff) |
Introduce a new plugin for computing API hashes.
Diffstat (limited to 'tests/analysis')
-rw-r--r-- | tests/analysis/scan/pyapi.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/analysis/scan/pyapi.py b/tests/analysis/scan/pyapi.py index 2aaaeec..006c17a 100644 --- a/tests/analysis/scan/pyapi.py +++ b/tests/analysis/scan/pyapi.py @@ -104,6 +104,15 @@ class TestRostPythonAPI(ChrysalideTestCase): self.assertEqual(transformed[2], b'BQkM') + mod = find_token_modifiers_for_name('ror13') + self.assertIsNotNone(mod) + + source = b'GetProcAddress' + transformed = mod.transform(source) + + self.assertEqual(transformed[0], b'\xaa\xfc\x0d\x7c') + + def testBytePatternModifiersAPI(self): """Validate the API for pattern modifiers.""" |