polymorf / findcrypt-yara

IDA pro plugin to find crypto constants (and more)
BSD 3-Clause "New" or "Revised" License
1.36k stars 243 forks source link

change idc.set_name() in findcrypt3.py #13

Closed LwwIsCute closed 6 years ago

LwwIsCute commented 6 years ago

When I ran it in my IDA pro , an error happened in line 195 of findcrypt3.py
idc.set_name(arg1,arg2,arg3,arg4) Error detail is that ‘module’ object has no attribute 'set_name'. Then I read the source code of IDA\IDC, found that there is only idaapi.py has the function set_name() instead of idc.py. And luckily, findcrypt3.py imports idaapi.py, so I changed idc.set_name() to idaapi.set_name(), then this plugin ran in right way. Wish you to update this project, and thank you for your creating and fixing it!