1.补丁退出后内核对象不会消失(即不需要后台运行)
2.减小程序大小(原作者程序大小229KB受够了!本工具只要不到5KB)
3.去掉Kernel32,User32等Windows子系统dll的依赖(我的依赖只有ntdll;所以改成native程序也是很容易的)
我今天发现了一个令人震惊的消息:原来PE可以用WOW64是Bug;微软其实在5年前的Win7(甚至9年前的Vista)中的smss(文件版本是6.1.7600.16385)的汇编代码中就有封杀PE下运行WOW64的判断
if ( !MiniNTBoot && !_wcsicmp(v8, L"DllDirectory32") )
{
v9 = (__int64)&SmpKnownDllPath32;
return SmpInitializeKnownDllPath(v9, v7, v6);
}
上述代码的逻辑即如果MiniNTBoot返回false且_wcsicmp(v8, L"DllDirectory32") 返回0(即注册表键值找到)再进行内核区对象创建
![]()
比如我随机抽取的64位8pe就没有WOW64内核对象,即没有KnownDll32目录对象
Win10应该是修复了Windows子系统的一个Bug(估计是增加了对内核对象的判断;如果存在则支持WOW64);所以Win10PE“和谐”WOW64其实只是为了修复漏洞
为何要封杀wow64? 因为微软在WinPE 1.0出来时就明确表明不能把PE当作正常系统使用。
The MIT License (MIT)
Copyright (c) 2015 M2-Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2012kkabc00094 发表于 2015-10-2 12:01
竟然在这里也见到毛利
2012mshs 发表于 2015-10-3 09:40
Only translate with bing
1. patch kernel objects do not disappear after the exit (which does not ne ...
shuren 发表于 2015-10-3 15:19
感觉用yamingw大大的SetWoW64工具很不错。感觉主要是要稳定高效,是否驻留内存并不是很重要
2010WAIGO 发表于 2015-10-3 17:40
>>但是也有遗憾,由于能力限制,没有实现原作者帖子fryquez的回复
不要妄自菲薄!其实楼主的能力什高, ...
andos 发表于 2015-10-3 19:27
同意,
如果能实现fryquez说的就更好
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |