about summary refs log tree commit diff stats
path: root/example/disasm/function.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-12-06 08:19:27 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-12-10 11:10:45 +0100
commitcc722f808ec76a3edeb6503d3a8ada975ef0a3d5 (patch)
treeeab1677d7a33947989d80d7813bdb54e27b7afd8 /example/disasm/function.py
parent4de79169b5600040ef4af1dd2d02dca55933a884 (diff)
downloadfocaccia-miasm-cc722f808ec76a3edeb6503d3a8ada975ef0a3d5.tar.gz
focaccia-miasm-cc722f808ec76a3edeb6503d3a8ada975ef0a3d5.zip
Example: remove deprecated example
Diffstat (limited to 'example/disasm/function.py')
-rw-r--r--example/disasm/function.py16
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())