diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-12-08 19:24:07 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-12-08 19:24:07 +0100 |
| commit | 3d42eb7ae4ff21f143dcc6bb4ba52695119ebe1e (patch) | |
| tree | 2871452552519201a754080e5fe96610ba4d6edc | |
| parent | 3ece6deb69a740bf92616c07e4ea094a0cb810ad (diff) | |
| download | miasm-3d42eb7ae4ff21f143dcc6bb4ba52695119ebe1e.tar.gz miasm-3d42eb7ae4ff21f143dcc6bb4ba52695119ebe1e.zip | |
Loader/libimp: update api
| -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() |