about summary refs log tree commit diff stats
path: root/example/disasm
diff options
context:
space:
mode:
Diffstat (limited to 'example/disasm')
-rw-r--r--example/disasm/callback.py4
-rw-r--r--example/disasm/file.py2
-rw-r--r--example/disasm/full.py2
-rw-r--r--example/disasm/function.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/example/disasm/callback.py b/example/disasm/callback.py
index 06159138..5aae7f6f 100644
--- a/example/disasm/callback.py
+++ b/example/disasm/callback.py
@@ -46,7 +46,7 @@ bin_stream = bin_stream_str(shellcode)
 mdis = dis_x86_32(bin_stream)
 
 print "Without callback:\n"
-blocks = mdis.dis_multibloc(0)
+blocks = mdis.dis_multiblock(0)
 print "\n".join(str(block) for block in blocks)
 
 # Enable callback
@@ -59,7 +59,7 @@ mdis.job_done.clear()
 
 print "=" * 40
 print "With callback:\n"
-blocks_after = mdis.dis_multibloc(0)
+blocks_after = mdis.dis_multiblock(0)
 print "\n".join(str(block) for block in blocks_after)
 
 # Ensure the callback has been called
diff --git a/example/disasm/file.py b/example/disasm/file.py
index db5cd96b..88ba6162 100644
--- a/example/disasm/file.py
+++ b/example/disasm/file.py
@@ -13,6 +13,6 @@ cont = Container.from_stream(open(sys.argv[1]))
 mdis = dis_x86_32(cont.bin_stream)
 # Inform the engine to avoid disassembling null instructions
 mdis.dont_dis_nulstart_bloc = True
-blocks = mdis.dis_multibloc(addr)
+blocks = mdis.dis_multiblock(addr)
 
 open('graph.dot', 'w').write(blocks.dot())
diff --git a/example/disasm/full.py b/example/disasm/full.py
index 3e35ed6c..ad85f7dc 100644
--- a/example/disasm/full.py
+++ b/example/disasm/full.py
@@ -121,7 +121,7 @@ while not finish and todo:
         if ad in done:
             continue
         done.add(ad)
-        allblocks = mdis.dis_multibloc(ad)
+        allblocks = mdis.dis_multiblock(ad)
 
         log.info('func ok %.16x (%d)' % (ad, len(all_funcs)))
 
diff --git a/example/disasm/function.py b/example/disasm/function.py
index 1fe1754f..89f65abb 100644
--- a/example/disasm/function.py
+++ b/example/disasm/function.py
@@ -8,7 +8,7 @@ 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_multibloc(0)
+blocks = mdis.dis_multiblock(0)
 
 for block in blocks:
     print block