diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-12-03 11:09:36 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-12-03 11:26:45 +0100 |
| commit | 05a333fe41516fa6a2976bbdd84fc05b9bca0f4f (patch) | |
| tree | 908155c127bb6fec850846dd31547ce57afd1d1c /miasm2/analysis/sandbox.py | |
| parent | ab7ef5529441320f2483872bb0c35cf22615aaa2 (diff) | |
| download | miasm-05a333fe41516fa6a2976bbdd84fc05b9bca0f4f.tar.gz miasm-05a333fe41516fa6a2976bbdd84fc05b9bca0f4f.zip | |
Jitter: update API
Diffstat (limited to 'miasm2/analysis/sandbox.py')
| -rw-r--r-- | miasm2/analysis/sandbox.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py index cbaf1394..3d8b906f 100644 --- a/miasm2/analysis/sandbox.py +++ b/miasm2/analysis/sandbox.py @@ -2,11 +2,10 @@ import os, sys import logging from argparse import ArgumentParser from miasm2.analysis.machine import Machine -from miasm2.jitter.jitload import vm_load_pe, preload_pe, libimp -from miasm2.jitter.jitload import vm_load_elf, libimp, preload_elf from miasm2.os_dep import win_api_x86_32, win_api_x86_32_seh from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE from miasm2.analysis import debugging +from miasm2.jitter.loader.utils import libimp class Sandbox(object): """ @@ -160,6 +159,8 @@ class OS_Win(OS): ] def __init__(self, custom_methods, *args, **kwargs): + from miasm2.jitter.loader.pe import vm_load_pe, preload_pe + super(OS_Win, self).__init__(custom_methods, *args, **kwargs) # Import manager @@ -219,6 +220,8 @@ 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 + super(OS_Linux, self).__init__(custom_methods, *args, **kwargs) # Import manager |