本文整理汇总了Python中PyFlxInstrument类的典型用法代码示例。如果您正苦于以下问题:Python PyFlxInstrument类的具体用法?Python PyFlxInstrument怎么用?Python PyFlxInstrument使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PyFlxInstrument类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, fromaddr, toaddr, nextaddr, process):
self.fromaddr = fromaddr
self.toaddr = toaddr
self.nextaddr = nextaddr
self.process = process
self.entrystate = PyFlxInstrument.registers()
self.exitstate = None
self.return_callbacks = []
self.dllname = None
self.name = None
示例2: handle_syscall
def handle_syscall(self, syscall):
# NtCreateThread
syscall_name = syscalls.getSyscallByNumber(syscall.number)
if syscall_name is not None:
if syscall_name == "NtTerminateProcess":
self.os.terminating_processes.append((self,PyFlxInstrument.registers()["cr3"]))
self.log(syscall_name)
self.thread.terminate()
self.logger.shutdown(self)
if syscall_name == "NtCreateThread":
self.logger.info("Creating Thread")
self.log(syscall_name)
if syscall_name == "NtTerminateThread":
self.logger.info("Thread %d terminated"%self.cur_tid)
self.log(syscall_name)
self.thread.terminate()
if syscall_name == "NtCreateProcess" or syscall_name == "NtCreateProcessEx":
self.logger.info("New Process has been created by %s"%self.name)
self.log(syscall_name)
示例3: breakpoint_insert
def breakpoint_insert(self, addr):
PyFlxInstrument.breakpoint_insert(addr)
示例4: activate
def activate(self, pid, tid, procname):
PyFlxInstrument.set_instrumentation_active(1)
PyFlxInstrument.set_context(pid,tid, str(procname))
示例5: constsearch_pattern
def constsearch_pattern(self, pattern):
PyFlxInstrument.constsearch_pattern(pattern)
示例6: functionentropy_disable
def functionentropy_disable(self):
PyFlxInstrument.functionentropy_disable()
示例7: set_context
def set_context(self, pid, tid):
PyFlxInstrument.set_context(pid, tid)
示例8: arithwindow_disable
def arithwindow_disable(self):
PyFlxInstrument.arithwindow_disable()
示例9: memtrace_disable
def memtrace_disable(self):
PyFlxInstrument.memtrace_disable()
示例10: read_process
def read_process(self, process, address, len):
try:
return PyFlxInstrument.vmem_read_process(process.cr3, address, len)
except RuntimeError:
return None
示例11: vmem_read
def vmem_read(self, n):
return PyFlxInstrument.vmem_read(n, 4096)
示例12: dump_disable
def dump_disable(self):
PyFlxInstrument.dump_disable()
示例13: dump_enable
def dump_enable(self, path):
PyFlxInstrument.dump_enable(path)
示例14: deactivate
def deactivate(self):
PyFlxInstrument.set_instrumentation_active(0)
示例15: syscall_hook
def syscall_hook(self, number):
PyFlxInstrument.syscall_hook(number)