about summary refs log tree commit diff stats
path: root/example/jitter/x86_32.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/jitter/x86_32.py')
-rw-r--r--example/jitter/x86_32.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/jitter/x86_32.py b/example/jitter/x86_32.py
index 5272f732..c2273b69 100644
--- a/example/jitter/x86_32.py
+++ b/example/jitter/x86_32.py
@@ -1,6 +1,6 @@
 from argparse import ArgumentParser
-from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE
-from miasm2.analysis.machine import Machine
+from miasm.jitter.csts import PAGE_READ, PAGE_WRITE
+from miasm.analysis.machine import Machine
 
 from pdb import pm
 
@@ -20,7 +20,7 @@ def code_sentinelle(jitter):
 myjit = Machine("x86_32").jitter(args.jitter)
 myjit.init_stack()
 
-data = open(args.filename).read()
+data = open(args.filename, 'rb').read()
 run_addr = 0x40000000
 myjit.vm.add_memory_page(run_addr, PAGE_READ | PAGE_WRITE, data)