mirror of
https://github.com/cea-sec/miasm
synced 2026-06-21 13:48:18 +00:00
ed5c3668cc
* API has changed, so old scripts need updates * See example for API usage * Use tcc or llvm for jit emulation * Go to test and run test_all.py to check install Enjoy !
14 lines
294 B
Python
14 lines
294 B
Python
from miasm2.arch.x86.disasm import dis_x86_32
|
|
from miasm2.core.asmbloc import bloc2graph
|
|
|
|
|
|
s = '\xb8\xef\xbe7\x13\xb9\x04\x00\x00\x00\xc1\xc0\x08\xe2\xfb\xc3'
|
|
mdis = dis_x86_32(s)
|
|
blocs = mdis.dis_multibloc(0)
|
|
|
|
for b in blocs:
|
|
print b
|
|
|
|
g = bloc2graph(blocs)
|
|
open('graph.txt', 'w').write(g)
|