diff options
| author | Camille Mougey <commial@gmail.com> | 2018-11-09 09:22:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 09:22:19 +0100 |
| commit | 7ca62062fe1321c4b151a53530423952b5535d10 (patch) | |
| tree | 18b1a434ed22f657b6c85ebb0a74c4ece9e94d42 | |
| parent | bfbefac9c6f7acfd0356a5b6cd59ff0893abce4d (diff) | |
| parent | 80744d14e4711383b0d9c9b90a6e68971abef411 (diff) | |
| download | miasm-7ca62062fe1321c4b151a53530423952b5535d10.tar.gz miasm-7ca62062fe1321c4b151a53530423952b5535d10.zip | |
Merge pull request #869 from serpilliere/fix_use_seh
Sandbox: change use_seh
| -rw-r--r-- | example/jitter/test_x86_32_seh.py | 2 | ||||
| -rw-r--r-- | miasm2/analysis/sandbox.py | 6 |
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", |