diff options
| author | Camille Mougey <commial@gmail.com> | 2014-12-03 11:23:34 +0100 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2014-12-03 11:23:34 +0100 |
| commit | 6a0cf990d2e0c11edc91629aabfd52f847f1a381 (patch) | |
| tree | 908155c127bb6fec850846dd31547ce57afd1d1c /miasm2/analysis/sandbox.py | |
| parent | c5aa711745449cabd5bc0171ad0ed56b8d3a6881 (diff) | |
| parent | 05a333fe41516fa6a2976bbdd84fc05b9bca0f4f (diff) | |
| download | miasm-6a0cf990d2e0c11edc91629aabfd52f847f1a381.tar.gz miasm-6a0cf990d2e0c11edc91629aabfd52f847f1a381.zip | |
Merge pull request #9 from serpilliere/loader_code
Loader code
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 |