diff options
| author | CM <devnull@localhost> | 2014-08-20 15:48:40 +0200 |
|---|---|---|
| committer | CM <devnull@localhost> | 2014-08-20 15:48:40 +0200 |
| commit | 0b4a72313d1ee41ceb45220f7b0e39bff82e75c7 (patch) | |
| tree | 2aaa9cad928461b919e8ddb9acd2313a264ccaf9 /example/sandbox_pe_x86_32.py | |
| parent | 852d73e053689bea9babc5621579cf32be18349a (diff) | |
| download | miasm-0b4a72313d1ee41ceb45220f7b0e39bff82e75c7.tar.gz miasm-0b4a72313d1ee41ceb45220f7b0e39bff82e75c7.zip | |
Example: Update example to use machine
Diffstat (limited to 'example/sandbox_pe_x86_32.py')
| -rw-r--r-- | example/sandbox_pe_x86_32.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/example/sandbox_pe_x86_32.py b/example/sandbox_pe_x86_32.py index 0f660668..26d492f9 100644 --- a/example/sandbox_pe_x86_32.py +++ b/example/sandbox_pe_x86_32.py @@ -1,13 +1,11 @@ import sys import os from argparse import ArgumentParser -from miasm2.arch.x86.arch import mn_x86 -from miasm2.jitter.jitload import jitter_x86_32, vm_load_pe, preload_pe, libimp +from miasm2.jitter.jitload import vm_load_pe, preload_pe, libimp from miasm2.jitter.jitload import bin_stream_vm from miasm2.jitter.csts import * from miasm2.jitter.os_dep import win_api_x86_32 -from miasm2.analysis import debugging, gdbserver -import inspect +from miasm2.analysis import debugging, gdbserver, machine # Debug settings # from pdb import pm @@ -73,7 +71,7 @@ def code_sentinelle(jitter): return True # x86 32 bits engine instanciation -myjit = jitter_x86_32(jit_type=args.jitter) +myjit = machine.Machine("x86_32").jitter(jit_type=args.jitter) myjit.init_stack() libs = libimp() |