从进程kill prevent C#应用程序 [英] Prevent C# app from process kill

查看:89
本文介绍了从进程kill prevent C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何保护我的C#应用​​程序从别人通过taskman的杀死它的进程或编程?

How can I protect my C# app from someone killing its process via taskman or programmatically?

下面是我的情况:

应用程序A是由另一个团队开发的MFC应用程序。它有通过后门启用未发表的基于文本的远程接口。

App A is an MFC app developed by another team. It has an unpublished text-based remote interface that is enabled via a backdoor.

我开发的应用程序B,C#的WinForms应用程序随,A,B相互作用使得A的后门时,它需要远程访问关闭它完成时(或故障)。

I'm developing app B, a C# WinForms app which interacts with A. B enables A's backdoor when it needs remote access closes it when finished (or on failure).

我在探索如何用户已启用了远程接口后才能访问到的隐藏功能,比如杀死B的过程中可能滥用B点。我想有B只有一个最后的机会要关闭的后门当这种情况发生。

I'm exploring ways users could abuse B in order to gain access to A's hidden functionality, such as killing B's process after it has enabled A's remote interface. I'd like have one last chance for B to close A's backdoor when that happens.

B使用本地主机要与互动,所以我不担心断电的情况。

B uses localhost to interact with A, so I'm not worried about the power-down scenario.

我在寻找不涉及改变的解决方案。

I'm looking for a solution that doesn't involve changing A.

我不期待能够阻止黑暗切线(虽然这将是一个奖金),但现在一个脚本小子能有他的方式与这个设计:)

I'm not expecting to be able to stop Dark Tangent (though that would be a bonus), but right now a script kiddie could have his way with this design :)

这些应用程序在Windows XP上运行,但也将很快支持Vista和放大器; 7。

These apps run on Windows XP, but will also soon support Vista & 7.

在此先感谢,
吉姆

Thanks in advance, Jim

推荐答案

您不能 - 只要用户拨打TerminateProcess在你的程序中,你不能prevent结束杀死你程序的权利立即任务管理器。雷蒙德陈在此发布​​前一段时间:的http:// blogs.msdn.com/b/oldnewthing/archive/2004/02/16/73780.aspx

You can't - as long as the user has the right to call TerminateProcess on your program, you can't prevent End Process from killing you immediately in task manager. Raymond Chen posted on this some time ago: http://blogs.msdn.com/b/oldnewthing/archive/2004/02/16/73780.aspx

这篇关于从进程kill prevent C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆