求指教这句话 意思

人不狠 2012-07-24 11:12:28
Process currentProcess = Process.GetCurrentProcess();
for (int i = 0; i < currentProcess.Modules.Count; i++)
{
string text = currentProcess.Modules[i].FileName;
int num = text.LastIndexOf('\\');
if (num >= 0)
{
text = text.Substring(num + 1);
}
if (User.md5(text.ToLower()).ToLower() == "2b7a7e9166b99634011d25e474f67a0e")
{
currentProcess.Kill();
}
}
string[] files = Directory.GetFiles(User.my.Form.AppPath);
for (int j = 0; j < files.Length; j++)
{
string text2 = files[j];
int num2 = text2.LastIndexOf('\\');
if (num2 >= 0)
{
text2 = text2.Substring(num2 + 1);
}
if (User.md5(text2.ToLower()).ToLower() == "dacfb9024b69cac51dc7a97a1a022b12")
{
FileInfo fileInfo = new FileInfo(files[j]);
if (fileInfo.Length < 200000L)
{
currentProcess.Kill();
}
}
...全文
114 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
threenewbee 2012-07-25
  • 打赏
  • 举报
回复
晕,这代码是反编译来的。
stonespace 2012-07-25
  • 打赏
  • 举报
回复
杀掉自己?很奇怪,
人不狠 2012-07-25
  • 打赏
  • 举报
回复
他是根据什么条件关闭进程的
全栈极简 2012-07-24
  • 打赏
  • 举报
回复
杀进程的,没什么好解释的。

111,125

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧