[英]OpenProcess/ReadProcessMemory/WriteProcessMemory/CloseHandle equivalent
What would be the equivalent api to these Windows functions? 这些Windows功能的等效API是什么? In case you are not familiar with the windows functions, all they do is open a process, access(read and write) its memory and close its handle.
如果您不熟悉Windows函数,他们所做的只是打开一个进程,访问(读取和写入)其内存并关闭其句柄。
Can this be done with syscalls only as well? 这只能用系统调用来完成吗?
If you're on a more modern kernel, you might try process_vm_readv which seems to more closely simulate ReadProcessMemory, only it works slightly more cleanly than ptrace and even the Windows equivalents. 如果您使用的是更现代的内核,您可以尝试使用似乎更接近模拟ReadProcessMemory的process_vm_readv ,只是它比ptrace甚至Windows等效项更干净。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.