about summary refs log tree commit diff stats
path: root/miasm2/analysis/sandbox.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-10-12 08:15:18 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-10-12 08:15:18 +0200
commit80744d14e4711383b0d9c9b90a6e68971abef411 (patch)
tree67323ea07800ff88469e58ec033dd2766b38c13a /miasm2/analysis/sandbox.py
parent3cd3675165cd96c030401fbb1e6392898507a71b (diff)
downloadmiasm-80744d14e4711383b0d9c9b90a6e68971abef411.tar.gz
miasm-80744d14e4711383b0d9c9b90a6e68971abef411.zip
Sandbox: change use_seh
Option name change: use-windows-structs instead of 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",