summaryrefslogtreecommitdiff
path: root/tests/analysis/scan
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-04 06:32:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-04 06:32:57 (GMT)
commit945aa5096d3c6d2ae054b6c8ef18e749acaec533 (patch)
treea76ca8a1c9303dfde49493d83d848e66c5a7d678 /tests/analysis/scan
parent29fd2d9d148f1737ff0dede043c9dc376116b3a4 (diff)
Introduce a new plugin for computing API hashes.
Diffstat (limited to 'tests/analysis/scan')
-rw-r--r--tests/analysis/scan/pyapi.py9
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."""