about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--example/jitter/test_x86_32_seh.py2
-rw-r--r--miasm2/analysis/sandbox.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/example/jitter/test_x86_32_seh.py b/example/jitter/test_x86_32_seh.py
index 5277807d..e7f8cff4 100644
--- a/example/jitter/test_x86_32_seh.py
+++ b/example/jitter/test_x86_32_seh.py
@@ -36,7 +36,7 @@ parser = Sandbox_Win_x86_32.parser(description="PE sandboxer")
 parser.add_argument("filename", help="PE Filename")
 options = parser.parse_args()
 options.usesegm = True
-options.use_seh = True
+options.use_windows_structs = True
 
 # Create sandbox
 sb = Sandbox_Win_x86_32(options.filename, options, globals())
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py
index b1147adb..ccffd529 100644
--- a/miasm2/analysis/sandbox.py
+++ b/miasm2/analysis/sandbox.py
@@ -236,7 +236,7 @@ class OS_Win(OS):
         self.jitter.add_lib_handler(libs, methods)
 
         # Manage SEH
-        if self.options.use_seh:
+        if self.options.use_windows_structs:
             win_api_x86_32_seh.main_pe_name = fname_basename
             win_api_x86_32_seh.main_pe = self.pe
             win_api_x86_32.winobjs.hcurmodule = self.pe.NThdr.ImageBase
@@ -251,8 +251,8 @@ class OS_Win(OS):
     def update_parser(cls, parser):
         parser.add_argument('-o', "--load-hdr", action="store_true",
                             help="Load pe hdr")
-        parser.add_argument('-y', "--use-seh", action="store_true",
-                            help="Use windows SEH")
+        parser.add_argument('-y', "--use-windows-structs", action="store_true",
+                            help="Create and use windows structures (peb, ldr, seh, ...)")
         parser.add_argument('-l', "--loadbasedll", action="store_true",
                             help="Load base dll (path './win_dll')")
         parser.add_argument('-r', "--parse-resources",