Пример #1
0
    def append_cmt(self, ea, cmt, rptble=False):
        if len(cmt) > 1024:
            rs_log("warning, comment needs to be splitted (from 0x%x)" % ea)
            nh = idaapi.next_head(ea, ida_idaapi.BADADDR)
            if nh == ida_idaapi.BADADDR:
                rs_log('[x] failed to find next instruction candidate')
                return

            self.append_cmt(nh, cmt[1024:], rptble)
            cmt = cmt[:1024]

        idaapi.append_cmt(ea, cmt, rptble)
Пример #2
0
    def append_cmt(self, ea, cmt, rptble=False):
        if len(cmt) > 1024:
            print "[*] warning, comment needs to be splitted (from 0x%x)" % ea
            nh = idaapi.next_head(ea, idaapi.BADADDR)
            if nh == idaapi.BADADDR:
                print "[*] failed to find next instruction candidate"
                return

            self.append_cmt(nh, cmt[1024:], rptble)
            cmt = cmt[:1024]

        idaapi.append_cmt(ea, cmt, rptble)