import os import sys from ctypes import * windll.kernel32.WriteProcessMemory.argtypes = [c_void_p, c_void_p, c_void_p, c_int, c_void_p] windll.kernel32.WriteProcessMemory.restype = c_void_p address1 = 0x00f9fea8 #i的地址 number1 = 0x140000000 lpNumberOfBytesWritten = c_size_t(0) PROCESS_ALL_ACCESS = (0x000F0000 | 0x00100000 | 0xFFF) hProcess = windll.kernel32.OpenProcess(PROCESS_ALL_ACCESS, False, 26848
在python里使用WriteProcessMemory修改内存地址上的值
最新推荐文章于 2022-06-06 08:47:48 发布
这篇博客介绍如何在Python中利用WriteProcessMemory函数修改内存地址的内容,通过一个C代码示例展示了该过程,重点在于进程内存操作。
摘要由CSDN通过智能技术生成