Python idaapi.register_timer() Examples
The following are 7
code examples of idaapi.register_timer().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
idaapi
, or try the search function
.
Example #1
Source File: ida_frontend.py From revsync with MIT License | 6 votes |
def on_open(): global auto_wait global fhash print('revsync: file opened:', idaapi.get_root_filename()) netnode.create(NETNODE_NAME) try: fhash = netnode.getblob(0, 'I').decode('ascii') except: fhash = None if not fhash: fhash = read_fhash() try: ret = netnode.setblob(fhash.encode('ascii'), 0, 'I') except: print('saving fhash failed, this will probably break revsync') if auto_is_ok(): on_load() auto_wait = False else: auto_wait = True print('revsync: waiting for auto analysis') if not hasattr(IDP_Hooks, 'auto_empty_finally'): idaapi.register_timer(1000, wait_for_analysis)
Example #2
Source File: diaphora_ida.py From maltindex with GNU General Public License v2.0 | 5 votes |
def __init__(self, func, args, interval): self.func = func self.args = args self.interval = interval self.obj = idaapi.register_timer(self.interval, self) if self.obj is None: raise RuntimeError, "Failed to register timer"
Example #3
Source File: diaphora_ida.py From maltindex with GNU General Public License v2.0 | 5 votes |
def __init__(self, g, interval): self.interval = interval self.obj = idaapi.register_timer(self.interval, self) if self.obj is None: raise RuntimeError, "Failed to register timer" self.g = g
Example #4
Source File: ida2pwntools.py From ida2pwntools with Apache License 2.0 | 5 votes |
def __init__(self): self.interval = 1000 # 1 second self.obj = idaapi.register_timer(self.interval, self) if self.obj is None: raise RuntimeError("Failed to register timer") self.times = WAIT_TIME_NO_UI
Example #5
Source File: IDASynergy.py From IDASynergy with MIT License | 5 votes |
def start_plugin(): idaapi.register_timer(1000, wait_ready)
Example #6
Source File: ui.py From ida-minsc with BSD 3-Clause "New" or "Revised" License | 5 votes |
def register(cls, id, interval, callable): '''Register the specified `callable` with the requested `id` to be called at every `interval`.''' if id in cls.clock: idaapi.unregister_timer(cls.clock[id]) # XXX: need to create a closure that can terminate when signalled cls.clock[id] = res = idaapi.register_timer(interval, callable) return res
Example #7
Source File: dbg.py From deREferencing with GNU General Public License v3.0 | 5 votes |
def hook(self, *args): #self.timer = idaapi.register_timer(self.timer_freq, self.check_thread) super(DbgHooks, self).hook(*args)