diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-01-08 17:11:11 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-01-23 17:24:42 +0100 |
| commit | 17258a346c5ecf423b0758f5de6cf56f423b9e88 (patch) | |
| tree | 8125e493c9fee6a77473d0c1d63e7e84f948ff35 /example/disasm_02.py | |
| parent | d0a21b0738db10c38d20bb9ebeafd5fb8e72fc3a (diff) | |
| download | miasm-17258a346c5ecf423b0758f5de6cf56f423b9e88.tar.gz miasm-17258a346c5ecf423b0758f5de6cf56f423b9e88.zip | |
Example: Rename Disasm_02 to Disasm Function
Diffstat (limited to 'example/disasm_02.py')
| -rw-r--r-- | example/disasm_02.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/example/disasm_02.py b/example/disasm_02.py deleted file mode 100644 index 0d443c26..00000000 --- a/example/disasm_02.py +++ /dev/null @@ -1,18 +0,0 @@ -from miasm2.arch.x86.disasm import dis_x86_32 -from miasm2.core.asmbloc import bloc2graph - -# MOV EAX, 0x1337BEEF -# MOV ECX, 0x4 -# loop: -# ROL EAX, 0x8 -# LOOP loop -# RET -shellcode = '\xb8\xef\xbe7\x13\xb9\x04\x00\x00\x00\xc1\xc0\x08\xe2\xfb\xc3' -mdis = dis_x86_32(shellcode) -blocs = mdis.dis_multibloc(0) - -for bloc in blocs: - print bloc - -graph = bloc2graph(blocs) -open('graph.txt', 'w').write(graph) |