summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/sploit/sploit/arch.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/sploit/sploit/arch.py b/tools/sploit/sploit/arch.py
index f6d4789..e5de2ce 100644
--- a/tools/sploit/sploit/arch.py
+++ b/tools/sploit/sploit/arch.py
@@ -12,4 +12,10 @@ x86_64 = Arch( 8, 'little', 16, b'\x90')
ARM = Arch( 4, 'little', 8, b'\xe1\xa0\x00\x00')
THUMB = Arch( 4, 'little', 8, b'\x46\xc0')
-arch = x86_64
+class __ActiveArch__:
+ __arch = x86_64
+ def __getattr__(self,k):
+ return getattr(self.__arch,k)
+ def set(self,a):
+ self.__arch = a
+arch = __ActiveArch__()