c# - 何时使用 Process.EnterDebugMode

标签 c# debugging process

关于Process.EnterDebugMode的MSDN页面它说:

Some operating system processes run in a special mode. Attempting to read properties of or attach to these processes is not possible unless you have called EnterDebugMode on the component.

这里所说的特殊模式是什么?

最佳答案

“特殊模式”只是添加SeDebugPrivilege .作为Raymond Chen指出,If you grant somebody SeDebugPrivilege, you gave away the farm .

具有 SeDebugPrivilege 的用户可以连接到任何进程并对其进行调试。当您调试一个进程时,您可以将代码注入(inject)其中。所以从安全的角度来看,用户基本上就是管理员。

关于c# - 何时使用 Process.EnterDebugMode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13830079/

相关文章:

C# - 获取打开的任务列表

c# - 如何在c#中比较两个字典并在验证后获得输出为True和False

c - fork 过程中的不同输出

java - 如何让 IntelliJ 调试器允许我的应用程序的关闭 Hook 运行?

c - Linux 内核模块中的 raise(SIGTRAP) 相当于什么?

android - 如何防止系统杀死我的 'foreground' 服务?

process - 如何通过批处理脚本自动停止进程

c# - 在 C# 中转换与转换的适当时间

c# - 从代码隐藏中获取 edititemtemplate 的值

java - 无法通过 IntelliJ 打开调试器端口