1 | 1 | | import idc |
2 | 2 | | import idaapi |
3 | 3 | | import idautils |
| 4 | + | import ida_bytes |
4 | 5 | | |
5 | 6 | | #Simple function to fix strings in current function |
6 | 7 | | #Mostly based on "Tim 'diff' Strazzere" ideas |
| skipped 35 lines |
42 | 43 | | def make_string(addr, siz): |
43 | 44 | | print "Creating string at %x %d size" % (addr, siz) |
44 | 45 | | idc.MakeUnknown(addr, siz, idc.DOUNK_SIMPLE) |
45 | | - | idc.MakeStr(addr, addr+siz) |
| 46 | + | ida_bytes.create_strlit(addr, siz, -1) |
46 | 47 | | |
47 | 48 | | def get_bitness_bytes(addr): |
48 | 49 | | if idc.GetSegmentAttr(addr, idc.SEGATTR_BITNESS) == 2: |
| skipped 28 lines |