summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-03-30 02:02:07 -0400
committerMalfurious <m@lfurio.us>2022-03-30 02:02:07 -0400
commit9b91175045c4dc6e2c3d1d83433f9569495fcb9f (patch)
treeba19a6898f92da5dc5b8f5c3c4e4cb7afc6fa8b8
parent3cf310e2f2c308e544a5681a2ba711b2adb8680c (diff)
parent90d7c4ea1b303b25eaa233d75101e0e35d710e7f (diff)
downloadlib-des-gnux-9b91175045c4dc6e2c3d1d83433f9569495fcb9f.tar.gz
lib-des-gnux-9b91175045c4dc6e2c3d1d83433f9569495fcb9f.zip
Merge tag 'pull-sploit-arch-fix' of https://github.com/Dusoleil/lib-des-gnux
Add indirection to arch access * tag 'pull-sploit-arch-fix' of https://github.com/Dusoleil/lib-des-gnux: Add indirection to arch access
-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__()