diff options
| author | Camille Mougey <commial@gmail.com> | 2018-12-10 12:22:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-10 12:22:52 +0100 |
| commit | c392534a4d51759cf8ac349ea873e25b424f7472 (patch) | |
| tree | 2dd12a15c7f3a038471e566d4a971b5934084a17 /example/disasm/function.py | |
| parent | 68e93fbd8a637e6a2d57e4ea26a1306b14744bd6 (diff) | |
| parent | 5e620f04a458a7ff3fb72673f887c9423a40c1aa (diff) | |
| download | miasm-c392534a4d51759cf8ac349ea873e25b424f7472.tar.gz miasm-c392534a4d51759cf8ac349ea873e25b424f7472.zip | |
Merge pull request #898 from serpilliere/add_dis_examples
Add dis examples
Diffstat (limited to 'example/disasm/function.py')
| -rw-r--r-- | example/disasm/function.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/example/disasm/function.py b/example/disasm/function.py deleted file mode 100644 index 10495dbc..00000000 --- a/example/disasm/function.py +++ /dev/null @@ -1,16 +0,0 @@ -from miasm2.arch.x86.disasm import dis_x86_32 - -# 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) -asmcfg = mdis.dis_multiblock(0) - -for block in asmcfg.blocks: - print block - -open('graph.dot', 'w').write(asmcfg.dot()) |