1. 程式人生 > >IDA執行加密演算法識別外掛findcrypt-yara報錯‘module’ object has no attribute’set_name’

IDA執行加密演算法識別外掛findcrypt-yara報錯‘module’ object has no attribute’set_name’

10月12日

findcrypt下載的是github專案, 負責人似乎沒維護好,指令碼原始碼findcrypt3.py裡的195行出錯

                idc.set_name(value[0], name
                             + "_"
                             + hex(self.toVirtualAddress(string[0], offsets)).lstrip("0x").rstrip("L").upper()
                             , 0)

讀 IDA\IDC原始碼, 發現只有 idaapi.py 有 set_name()函式,idc.py裡沒有。而且 findcrypt3.py 匯入了idaapi模組, 所以只要把idc.set_name() 改成 idaapi.set_name(),指令碼即可正常執行。

已把此修改提交給github作者。https://github.com/polymorf/findcrypt-yara/pull/13