安装程序时候,会安装在某文件夹下,可以利用该程序,让windows defender 不检测该文件夹。
#include <iostream>
#include <Windows.h>
using namespace std;
int main(int argc, char* argv[])
{
char filePath[1024];
strcpy(filePath,argv[1]);
//cout << filePath <<endl;
char* a = new char[1024];
sprintf(a,"PowerShell Add-MpPreference -ExclusionPath %s",filePath);
system(a);
delete a;
//system("pause");
return 0;
}
用法如下:

此时:window defender 已经不去检测该文件(C:\wpx)。
——————————————
常见问题,部分可能不能使用(出现以下情况)。解决办法:在编译时,将平台改成64位即可。


其他问题的出现:如下图。 解决办法:运行该程序时,使用超级管理员运行。

402



被折叠的 条评论
为什么被折叠?



