diff options
| author | Camille Mougey <commial@gmail.com> | 2014-12-09 17:11:27 +0100 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2014-12-09 17:11:27 +0100 |
| commit | 3d309ba48a816dc3a634e90b40c5214c3f16dc09 (patch) | |
| tree | 2871452552519201a754080e5fe96610ba4d6edc /miasm2/analysis/sandbox.py | |
| parent | 80eadc44c0d287ba01919f05143a1c7dda745d34 (diff) | |
| parent | 3d42eb7ae4ff21f143dcc6bb4ba52695119ebe1e (diff) | |
| download | miasm-3d309ba48a816dc3a634e90b40c5214c3f16dc09.tar.gz miasm-3d309ba48a816dc3a634e90b40c5214c3f16dc09.zip | |
Merge pull request #15 from serpilliere/fixes
Multiple Fix / Arm SMULL
Diffstat (limited to '')
| -rw-r--r-- | miasm2/analysis/sandbox.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py index d5435223..8676f373 100644 --- a/miasm2/analysis/sandbox.py +++ b/miasm2/analysis/sandbox.py @@ -159,12 +159,12 @@ class OS_Win(OS): ] def __init__(self, custom_methods, *args, **kwargs): - from miasm2.jitter.loader.pe import vm_load_pe, preload_pe + from miasm2.jitter.loader.pe import vm_load_pe, preload_pe, libimp_pe super(OS_Win, self).__init__(custom_methods, *args, **kwargs) # Import manager - libs = libimp() + libs = libimp_pe() self.libs = libs win_api_x86_32.winobjs.runtime_dll = libs @@ -220,12 +220,12 @@ class OS_Win(OS): class OS_Linux(OS): def __init__(self, custom_methods, *args, **kwargs): - from miasm2.jitter.loader.elf import vm_load_elf, preload_elf + from miasm2.jitter.loader.elf import vm_load_elf, preload_elf, libimp_elf super(OS_Linux, self).__init__(custom_methods, *args, **kwargs) # Import manager - libs = libimp() + libs = libimp_elf() self.libs = libs elf = vm_load_elf(self.jitter.vm, self.fname) @@ -237,10 +237,11 @@ class OS_Linux(OS): class OS_Linux_str(OS): def __init__(self, custom_methods, *args, **kwargs): + from miasm2.jitter.loader.elf import libimp_elf super(OS_Linux_str, self).__init__(custom_methods, *args, **kwargs) # Import manager - libs = libimp() + libs = libimp_elf() self.libs = libs data = open(self.fname).read() |