当前位置: 首页>>代码示例>>Python>>正文


Python PyFlxInstrument类代码示例

本文整理汇总了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
开发者ID:pleed,项目名称:pyqemu,代码行数:12,代码来源:memory.py

示例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)
开发者ID:pleed,项目名称:pyqemu,代码行数:19,代码来源:process.py

示例3: breakpoint_insert

	def breakpoint_insert(self, addr):
		PyFlxInstrument.breakpoint_insert(addr)
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例4: activate

	def activate(self, pid, tid, procname):
		PyFlxInstrument.set_instrumentation_active(1)
		PyFlxInstrument.set_context(pid,tid, str(procname))
开发者ID:pleed,项目名称:pyqemu,代码行数:3,代码来源:instrumentation.py

示例5: constsearch_pattern

	def constsearch_pattern(self, pattern):
		PyFlxInstrument.constsearch_pattern(pattern)
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例6: functionentropy_disable

	def functionentropy_disable(self):
		PyFlxInstrument.functionentropy_disable()
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例7: set_context

	def set_context(self, pid, tid):
		PyFlxInstrument.set_context(pid, tid)
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例8: arithwindow_disable

	def arithwindow_disable(self):
		PyFlxInstrument.arithwindow_disable()
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例9: memtrace_disable

	def memtrace_disable(self):
		PyFlxInstrument.memtrace_disable()
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例10: read_process

	def read_process(self, process, address, len):
		try:
			return PyFlxInstrument.vmem_read_process(process.cr3, address, len)
		except RuntimeError:
			return None
开发者ID:pleed,项目名称:pyqemu,代码行数:5,代码来源:instrumentation.py

示例11: vmem_read

	def vmem_read(self, n):
		return PyFlxInstrument.vmem_read(n, 4096)
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例12: dump_disable

	def dump_disable(self):
		PyFlxInstrument.dump_disable()
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例13: dump_enable

	def dump_enable(self, path):
		PyFlxInstrument.dump_enable(path)
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例14: deactivate

	def deactivate(self):
		PyFlxInstrument.set_instrumentation_active(0)
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py

示例15: syscall_hook

	def syscall_hook(self, number):
		PyFlxInstrument.syscall_hook(number)
开发者ID:pleed,项目名称:pyqemu,代码行数:2,代码来源:instrumentation.py


注:本文中的PyFlxInstrument类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。