Home | History | Annotate | Download | only in suite

Lines Matching refs:code

3 # Simple fuzzing tool by disassembling random code. By Nguyen Anh Quynh, 2014
22 # file providing code to disassemble
56 code = f.read(size)
57 if len(code) != size: # reached end-of-file?
62 return code
65 def cs(md, code):
66 insns = md.disasm(code, 0)
72 def cs_lite(md, code):
73 insns = md.disasm_lite(code, 0)
102 code = get_code(cfile, j * ii)
103 if code is None:
106 #print to_hex(code)
107 cs(md, code)
115 code = get_code(cfile, j * ii)
116 if code is None:
119 #print to_hex(code)
120 cs_lite(md, code)