Projects STRLCPY IDAGolangHelper Commits c6340cef
🤬
  • ■ ■ ■ ■ ■ ■
    GO_Utils/GoStrings.py
    skipped 41 lines
    42 42   
    43 43  def make_string(addr, siz):
    44 44   print("Creating string at %x %d size" % (addr, siz))
    45  - idc.MakeUnknown(addr, siz, idc.DOUNK_SIMPLE)
     45 + ida_bytes.del_items(addr, siz)
    46 46   ida_bytes.create_strlit(addr, siz, -1)
    47 47   
    48 48  def get_bitness_bytes(addr):
    49  - if idc.GetSegmentAttr(addr, idc.SEGATTR_BITNESS) == 2:
     49 + if idc.get_segm_attr(addr, idc.SEGATTR_BITNESS) == 2:
    50 50   return 8
    51 51   return 4
    52 52   
    skipped 1 lines
    54 54   ea = idc.here()
    55 55   size_data = get_bitness_bytes(ea)
    56 56   f = idaapi.get_func(ea)
    57  - frsize = idc.GetFrameLvarSize(ea)
    58  - position = f.startEA
     57 + frsize = idc.get_func_attr(ea, idc.FUNCATTR_FRSIZE)
     58 + position = f.start_ea
    59 59   size = 0
    60  - while position < f.endEA:
     60 + while position < f.end_ea:
    61 61   instr = idautils.DecodeInstruction(position)
    62 62   if instr is None:
    63 63   print("%x: Not and instruction found" % position)
    skipped 14 lines
Please wait...
Page is in error, reload to recover