1

我在我的 PC 上设置了软件限制策略。每当我尝试从命令行使用 mingw32-make 时,都会得到以下信息:

mingw32-make.exe -j 4 -e -f  Makefile
This program is blocked by group policy. For more information, contact your system administrator.
mingw32-make.exe: *** [All] Error 1
Makefile:4: recipe for target `All' failed

在软件限制策略中,我有一个C:\MinGw. 另外,如果进入命令行mingw32-make.exe,在没有makefile的文件夹中,这就是我得到的:

mingw32-make: *** No targets specified and no makefile found. Stop.

我猜 ming32-make 运行 SRP 下不允许的辅助可执行文件。有谁知道这个程序可能是什么?

4

1 回答 1

1

我发现事件查看器会记录 SRP 何时阻止某些内容。使用它,我发现 mingw32-make 在用户的 %TEMP% 文件夹中创建了一个 .bat 文件。然后我在 SRP 中将该 .bat 文件列入白名单。它需要一个通配符,因为 .bat 文件名的一部分是随机生成的。

但是,这将允许执行与通配符匹配的任何 .bat 文件。这允许恶意文件在匹配通配符时运行。

于 2013-10-09T08:00:58.470 回答