From 455cfbe8b7aed7cb5be8e1b9aa1917a9f7d51821 Mon Sep 17 00:00:00 2001 From: Ajax Date: Mon, 25 Jan 2016 11:05:29 +0100 Subject: BasicBlocks: update examples with the new API --- example/asm/shellcode.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'example/asm/shellcode.py') diff --git a/example/asm/shellcode.py b/example/asm/shellcode.py index 9dc5c6bc..11cf9a4d 100644 --- a/example/asm/shellcode.py +++ b/example/asm/shellcode.py @@ -76,8 +76,7 @@ if args.PE: # Print and graph firsts blocs before patching it for bloc in blocs: print bloc -graph = asmbloc.bloc2graph(blocs) -open("graph.dot", "w").write(graph) +open("graph.dot", "w").write(blocs.dot()) # Apply patches patches = asmbloc.asm_resolve_final(machine.mn, -- cgit 1.4.1