编写插件:IDA Pro启动线程时会崩溃



当我尝试启动线程进入运行方法时,任何想法?

在IDA中运行线程是否存在一些限制?因为我在文档中没有发现任何内容,所以编写插件IDA。

import idaapi
from threading import Thread
import time
class Listener(Thread):
    def __init__(self):
        Thread.__init__(self)
    def run(self):
        time.sleep(3)
class myplugin_t(idaapi.plugin_t):
    flags = idaapi.PLUGIN_UNL
    def init(self):
        return idaapi.PLUGIN_OK
    def run(self, arg):
        t1 = Listener();
        t1.start();
        t1.join();
    def term(self):
        pass
def PLUGIN_ENTRY():
    return myplugin_t()

ps:当我在C

中编写插件时,发现了同样的问题

在Python中,您可以使用

thread.start_new_thread(functionname, ()) # the second arguments is for args

在IDA Pro。

中起作用

对于C ,任何IDA?

最新更新