c# - 使用 .Net Core 在 Linux 中读取另一个进程的内存
问题描述
我想问一下在Linux上使用.NET Core时是否可以读取其他进程的内存
在我正在使用的 Windows 上DllImports
[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
[DllImport("kernel32.dll")]
public static extern bool ReadProcessMemory(int hProcess, int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead);
但是我怎样才能在 Linux 上实现呢?
我想从地址中读取值,例如ProcessBaseMemoryAddresss
+0x210438
解决方案
推荐阅读
- javascript - 将方法添加到字符串变量的原型
- reactjs - React.js 无法在 iOS 15 中捕获快速点击事件?
- oracle - ora2pg 无法连接,但 sqlplus 可以工作
- javascript - 从 Javascript 中的用户输入中获取数组的最小值/最大值
- java - React-Native android 模块 - 删除文件夹及其内容冻结 UI
- vb.net - VB.NET 嵌入自定义字体
- java - JENKINS:为 Maven 项目解析 POM 错误:FATAL Non-Readable POM
- excel - 在 Excel 中获取范围之前的先决条件
- c# - C# 运算符“+”不能应用于“bool”类型的操作数
- java - 带有ttl(生存时间)的Firebase FCM Android Java MulticastMessage永不过期