diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-01-08 17:22:08 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-01-23 17:24:42 +0100 |
| commit | 5bc92753be1c0b20b8ad224c7a75ae77bf025151 (patch) | |
| tree | 77ad4016cccb04a1e73283bb7ef98082db46cdf6 /example/disasm_03.py | |
| parent | a20db36fb2631350ceb98eee51e3ee408b080b96 (diff) | |
| download | miasm-5bc92753be1c0b20b8ad224c7a75ae77bf025151.tar.gz miasm-5bc92753be1c0b20b8ad224c7a75ae77bf025151.zip | |
Example: Rename Disasm_03 to Disasm_File
Diffstat (limited to 'example/disasm_03.py')
| -rw-r--r-- | example/disasm_03.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/example/disasm_03.py b/example/disasm_03.py deleted file mode 100644 index 5bae0e89..00000000 --- a/example/disasm_03.py +++ /dev/null @@ -1,19 +0,0 @@ -import sys -from miasm2.arch.x86.disasm import dis_x86_32 -from miasm2.core.asmbloc import bloc2graph -from miasm2.analysis.binary import Container - -if len(sys.argv) != 3: - print 'Example:' - print "%s samples/box_upx.exe 0x410f90" % sys.argv[0] - sys.exit(0) - -addr = int(sys.argv[2], 16) -cont = Container.from_stream(open(sys.argv[1])) -mdis = dis_x86_32(cont.bin_stream) -# Inform the engine to avoid disassembling null instructions -mdis.dont_dis_nulstart_bloc = True -blocs = mdis.dis_multibloc(addr) - -graph = bloc2graph(blocs) -open('graph.txt', 'w').write(graph) |