diff options
| author | Pierre LALET <pierre.lalet@cea.fr> | 2015-12-13 16:01:12 +0100 |
|---|---|---|
| committer | Pierre LALET <pierre.lalet@cea.fr> | 2015-12-13 16:01:12 +0100 |
| commit | e6005b389d32af540f91db871a214a4f235ef64c (patch) | |
| tree | dce07d08671ae03c9ae53d601fdafd454d15e302 | |
| parent | b32eb145fce7dd09bef025a9f82b2507bd4e02ee (diff) | |
| download | miasm-e6005b389d32af540f91db871a214a4f235ef64c.tar.gz miasm-e6005b389d32af540f91db871a214a4f235ef64c.zip | |
Sandbox/Win: fix -o/--load-hdr option
| -rw-r--r-- | miasm2/analysis/sandbox.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py index 078663fe..fd5de7b6 100644 --- a/miasm2/analysis/sandbox.py +++ b/miasm2/analysis/sandbox.py @@ -184,7 +184,8 @@ class OS_Win(OS): # Load main pe with open(self.fname) as fstream: - self.pe = vm_load_pe(self.jitter.vm, fstream.read(), **kwargs) + self.pe = vm_load_pe(self.jitter.vm, fstream.read(), + load_hdr=self.options.load_hdr, **kwargs) self.name2module[fname_basename] = self.pe # Load library @@ -231,7 +232,7 @@ class OS_Win(OS): @classmethod def update_parser(cls, parser): - parser.add_argument('-o', "--loadhdr", action="store_true", + parser.add_argument('-o', "--load-hdr", action="store_true", help="Load pe hdr") parser.add_argument('-e', "--loadmainpe", action="store_true", help="Load main pe") |