diff options
| author | CM <devnull@localhost> | 2014-08-20 15:54:10 +0200 |
|---|---|---|
| committer | CM <devnull@localhost> | 2014-08-20 15:54:10 +0200 |
| commit | 4d7684293df6bb8daefcdf22d1f03dc97c44f8fa (patch) | |
| tree | edec0da24e890e91087aa4dfed8812d69a3eedce /example/sandbox_pe_x86_32.py | |
| parent | e79b01b21ef150373cf69b1c419aec5c2f95df80 (diff) | |
| download | miasm-4d7684293df6bb8daefcdf22d1f03dc97c44f8fa.tar.gz miasm-4d7684293df6bb8daefcdf22d1f03dc97c44f8fa.zip | |
Sandbox: use machine.gdbserver
Diffstat (limited to 'example/sandbox_pe_x86_32.py')
| -rw-r--r-- | example/sandbox_pe_x86_32.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/example/sandbox_pe_x86_32.py b/example/sandbox_pe_x86_32.py index 26d492f9..3820c2fd 100644 --- a/example/sandbox_pe_x86_32.py +++ b/example/sandbox_pe_x86_32.py @@ -5,7 +5,7 @@ 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, machine +from miasm2.analysis import debugging, machine # Debug settings # from pdb import pm @@ -71,7 +71,8 @@ def code_sentinelle(jitter): return True # x86 32 bits engine instanciation -myjit = machine.Machine("x86_32").jitter(jit_type=args.jitter) +machine = machine.Machine("x86_32") +myjit = machine.jitter(jit_type=args.jitter) myjit.init_stack() libs = libimp() @@ -107,7 +108,7 @@ if any([args.debugging, args.gdbserver]): cmd = debugging.DebugCmd(dbg) cmd.cmdloop() else: - gdb = gdbserver.GdbServer_x86_32(dbg, args.gdbserver) + gdb = machine.gdbserver(dbg, args.gdbserver) print("Listenning on port %d" % args.gdbserver) gdb.run() |