From 61551fa78e9dd22ed1f982b4fe171fd6383c39a6 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Fri, 18 May 2018 14:43:57 +0200 Subject: Core: replace AsmLabel by LocKey --- example/disasm/function.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example/disasm/function.py') diff --git a/example/disasm/function.py b/example/disasm/function.py index 89f65abb..10495dbc 100644 --- a/example/disasm/function.py +++ b/example/disasm/function.py @@ -8,9 +8,9 @@ from miasm2.arch.x86.disasm import dis_x86_32 # RET shellcode = '\xb8\xef\xbe7\x13\xb9\x04\x00\x00\x00\xc1\xc0\x08\xe2\xfb\xc3' mdis = dis_x86_32(shellcode) -blocks = mdis.dis_multiblock(0) +asmcfg = mdis.dis_multiblock(0) -for block in blocks: +for block in asmcfg.blocks: print block -open('graph.dot', 'w').write(blocks.dot()) +open('graph.dot', 'w').write(asmcfg.dot()) -- cgit 1.4.1