From 63bfdc40abb781bf01725fe1c98354da4a50dfb9 Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Wed, 24 Mar 2021 20:49:48 +0100 Subject: [PATCH] Initial version, based on challenge 2 --- __init__.py | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 __init__.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..eb05e8b --- /dev/null +++ b/__init__.py @@ -0,0 +1,114 @@ +from binaryninja.architecture import Architecture +from binaryninja.types import Type +from binaryninja.function import ( + RegisterInfo, + InstructionInfo, + InstructionTextToken, + InstructionTextTokenType, + IntrinsicInfo, + IntrinsicInput, + ) + +import struct + +def unpack4(x): + return struct.unpack("