本文整理汇总了Python中PyFlxInstrument.registers方法的典型用法代码示例。如果您正苦于以下问题:Python PyFlxInstrument.registers方法的具体用法?Python PyFlxInstrument.registers怎么用?Python PyFlxInstrument.registers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyFlxInstrument
的用法示例。
在下文中一共展示了PyFlxInstrument.registers方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import PyFlxInstrument [as 别名]
# 或者: from PyFlxInstrument import registers [as 别名]
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
# 需要导入模块: import PyFlxInstrument [as 别名]
# 或者: from PyFlxInstrument import registers [as 别名]
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: handle_memtrace
# 需要导入模块: import PyFlxInstrument [as 别名]
# 或者: from PyFlxInstrument import registers [as 别名]
def handle_memtrace(self, event):
eip = PyFlxInstrument.registers()["eip"]
if event.writes:
self.log("Write: 0x%x , Addr: 0x%x, BBL: 0x%x"%(event.value,event.addr,eip))
else:
self.log("Read: 0x%x , Addr: 0x%x, BBL: 0x%x"%(event.value,event.addr,eip))
示例4: register
# 需要导入模块: import PyFlxInstrument [as 别名]
# 或者: from PyFlxInstrument import registers [as 别名]
def register(self, register):
regs = PyFlxInstrument.registers()
return regs[register]
示例5: retval
# 需要导入模块: import PyFlxInstrument [as 别名]
# 或者: from PyFlxInstrument import registers [as 别名]
def retval(self):
self.exitstate = PyFlxInstrument.registers()
return self.exitstate["eax"]
示例6: doReturn
# 需要导入模块: import PyFlxInstrument [as 别名]
# 或者: from PyFlxInstrument import registers [as 别名]
def doReturn(self):
self.exitstate = PyFlxInstrument.registers()
for callback in self.return_callbacks:
callback(self)