Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10下,xp32/ win32 的程序会被360报木马病毒的错误 #45

Open
newghost opened this issue May 18, 2019 · 2 comments
Open

Comments

@newghost
Copy link

image

CommandTrayHost-x64下的 CommandTrayHost.exe 程序没有发现这个问题。

@newghost
Copy link
Author

newghost commented May 19, 2019

除了,CommandTrayHost.rc 的git编码问题,编绎时还遇到两个错误:

`Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB8020	The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".	CommandTrayHost	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets	57	


Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB8036	The Windows SDK version 10.0.16299.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".	CommandTrayHost	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets	36

我用的是 vs2015 community 版:

修改项目Properties后解决:

image

CommandTrayHost\CommandTrayHost\CommandTrayHost.vcxproj 中替换以下:

<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>

<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v140</PlatformToolset>

用社区版编绎的 x86 平台项目不会报木马警告 。

@rexdf
Copy link
Owner

rexdf commented May 21, 2019

二进制文件并不是我本地编译的,是appveyor自动化编译与发布的, 用的也是社区版的2017 https://github.com/rexdf/CommandTrayHost/blob/master/appveyor.yml

这个应该就是360的误报了。因为这个小工具涉及到操作其他进程,行为可能就显得有些可疑了。

另外还一个原因大约是我加了一个压缩壳的缘故吧,这是个开源的压缩壳。 https://github.com/upx/upx

至于这两个选项的问题,其实应该WinSDK版本的问题,大约是你那边操作系统是Win8.1的缘故? 嗯,2015居然能编译!其实一些C++标准特性我都是往新的用的,本地开发用的2017. 现在已经切到2019了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants