about summary refs log tree commit diff stats
path: root/miasm2/analysis/sandbox.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-11-09 09:22:19 +0100
committerGitHub <noreply@github.com>2018-11-09 09:22:19 +0100
commit7ca62062fe1321c4b151a53530423952b5535d10 (patch)
tree18b1a434ed22f657b6c85ebb0a74c4ece9e94d42 /miasm2/analysis/sandbox.py
parentbfbefac9c6f7acfd0356a5b6cd59ff0893abce4d (diff)
parent80744d14e4711383b0d9c9b90a6e68971abef411 (diff)
downloadmiasm-7ca62062fe1321c4b151a53530423952b5535d10.tar.gz
miasm-7ca62062fe1321c4b151a53530423952b5535d10.zip
Merge pull request #869 from serpilliere/fix_use_seh
Sandbox: change use_seh
Diffstat (limited to 'miasm2/analysis/sandbox.py')
-rw-r--r--miasm2/analysis/sandbox.py6
1 files changed, 3 insertions, 3 deletions
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",