Python idc.MakeUnknown() Examples
The following are 6
code examples of idc.MakeUnknown().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
idc
, or try the search function
.
Example #1
Source File: simple_x64.py From LKD with BSD 3-Clause "New" or "Revised" License | 5 votes |
def reset(): idc.MakeUnknown(idc.MinEA(), 0x1000, 0) for i in range(0x1000): idc.PatchByte(idc.MinEA() + i, 0)
Example #2
Source File: simple_x86.py From LKD with BSD 3-Clause "New" or "Revised" License | 5 votes |
def reset(): idc.MakeUnknown(idc.MinEA(), 0x1000, 0) for i in range(0x1000): idc.PatchByte(idc.MinEA() + i, 0)
Example #3
Source File: exception.py From mcsema with Apache License 2.0 | 5 votes |
def make_array(ea, size): if ea != idc.BADADDR and ea != 0: flags = idc.GetFlags(ea) if not idc.isByte(flags) or idc.ItemSize(ea) != 1: idc.MakeUnknown(ea, 1, idc.DOUNK_SIMPLE) idc.MakeByte(ea) idc.MakeArray(ea, size)
Example #4
Source File: exception.py From mcsema with Apache License 2.0 | 5 votes |
def read_string(ea): s = idc.GetString(ea, -1, idc.ASCSTR_C) if s: slen = len(s)+1 idc.MakeUnknown(ea, slen, idc.DOUNK_SIMPLE) idaapi.make_ascii_string(ea, slen, idc.ASCSTR_C) return s, ea + slen else: return s, ea
Example #5
Source File: simple_x64.py From PythonForWindows with BSD 3-Clause "New" or "Revised" License | 5 votes |
def reset(): idc.MakeUnknown(idc.MinEA(), 0x1000, 0) for i in range(0x1000): idc.PatchByte(idc.MinEA() + i, 0)
Example #6
Source File: simple_x86.py From PythonForWindows with BSD 3-Clause "New" or "Revised" License | 5 votes |
def reset(): idc.MakeUnknown(idc.MinEA(), 0x1000, 0) for i in range(0x1000): idc.PatchByte(idc.MinEA() + i, 0)