diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-11-03 19:15:09 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-11-03 19:35:16 +0100 |
| commit | 1a09c007ae8f6a391a90fa4ef4aa14c71ed672f6 (patch) | |
| tree | bbf1454892e8af049d2e430ded6f9c741524e237 /example | |
| parent | acb866d6d401e5cfbdb01c4a888fe8017c472281 (diff) | |
| download | miasm-1a09c007ae8f6a391a90fa4ef4aa14c71ed672f6.tar.gz miasm-1a09c007ae8f6a391a90fa4ef4aa14c71ed672f6.zip | |
TestDis: fix imports
Diffstat (limited to 'example')
| -rw-r--r-- | example/disasm_03.py | 4 | ||||
| -rw-r--r-- | example/test_dis.py | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/example/disasm_03.py b/example/disasm_03.py index 72c08c0d..1141dc55 100644 --- a/example/disasm_03.py +++ b/example/disasm_03.py @@ -1,15 +1,13 @@ import sys -from elfesteem import pe_init from miasm2.arch.x86.disasm import dis_x86_32 from miasm2.core.asmbloc import bloc2graph -from miasm2.core.bin_stream import bin_stream_pe +from miasm2.analysis.binary import Container if len(sys.argv) != 3: print 'Example:' print "%s box_upx.exe 0x410f90" % sys.argv[0] sys.exit(0) -fname = sys.argv[1] ad = int(sys.argv[2], 16) cont = Container.from_stream(open(sys.argv[1])) mdis = dis_x86_32(cont.bin_stream) diff --git a/example/test_dis.py b/example/test_dis.py index ba0d7921..722e99c9 100644 --- a/example/test_dis.py +++ b/example/test_dis.py @@ -4,10 +4,8 @@ import time from miasm2.analysis.binary import Container from miasm2.core.asmbloc import * -from miasm2.expression.simplifications import expr_simp from optparse import OptionParser -from miasm2.core.cpu import dum_arg -from miasm2.expression.expression import * +from miasm2.expression.expression import ExprId from miasm2.core.interval import interval from miasm2.analysis.machine import Machine from pdb import pm |