本帖最后由 slore 于 2016-7-7 22:03 编辑
文件/文件夹属性显示
- 文件/文件夹属性
- 多个文件/文件夹属性
- 磁盘驱动器属性
- 回收站属性
如法炮制,我们可以得到查看文件属性列表如下:
- Windows\System32\actxprxy.dll
- Windows\System32\apphelp.dll
- ;need for "security" tab
- Windows\System32\rshx32.dll
复制代码
做一个ADD_ITEMS.txt试试加到我们的MaintPE中。
...
...
...
果然不能用还得加点注册表料啊。
老方法搜索添加的dll文件名,发现同样在CLSID下面有actxprxy.dll和
rshx32.dll的定义,同时搜索下关联的CLSID,发现有几处,
我们一同加入到注册表中。
Prop.reg
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\PropertySheetHandlers\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\PropertySheetHandlers\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- @="rshx32.dll"
- "AccessPermission"=hex:01,00,04,80,60,00,00,00,70,00,00,00,00,00,00,00,14,00,\
- 00,00,02,00,4c,00,03,00,00,00,00,00,14,00,03,00,00,00,01,01,00,00,00,00,00,\
- 05,12,00,00,00,00,00,14,00,07,00,00,00,01,01,00,00,00,00,00,05,0a,00,00,00,\
- 00,00,14,00,03,00,00,00,01,01,00,00,00,00,00,05,04,00,00,00,cd,cd,cd,cd,cd,\
- cd,cd,cd,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,01,02,00,00,00,00,\
- 00,05,20,00,00,00,20,02,00,00
- "DllSurrogate"=""
- "LaunchPermission"=hex:01,00,04,80,78,00,00,00,88,00,00,00,00,00,00,00,14,00,\
- 00,00,02,00,64,00,04,00,00,00,00,00,14,00,1f,00,00,00,01,01,00,00,00,00,00,\
- 05,12,00,00,00,00,00,18,00,1f,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
- 20,02,00,00,00,00,14,00,1f,00,00,00,01,01,00,00,00,00,00,05,04,00,00,00,00,\
- 00,14,00,0b,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00,cd,cd,cd,cd,cd,cd,\
- cd,cd,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,01,02,00,00,00,00,00,\
- 05,20,00,00,00,20,02,00,00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- @="Security Shell Extension"
- "AppId"="{1f2e5c40-9550-11ce-99d2-00aa006e086c}"
- "LocalizedString"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,\
- 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
- 00,5c,00,72,00,73,00,68,00,78,00,33,00,32,00,2e,00,44,00,4c,00,4c,00,2c,00,\
- 2d,00,35,00,39,00,00,00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}\Elevation]
- "Enabled"=dword:00000001
- "IconReference"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,\
- 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
- 00,5c,00,69,00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,\
- 6c,00,2c,00,2d,00,33,00,00,00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}\InProcServer32]
- @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
- 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,73,00,\
- 68,00,78,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00
- "ThreadingModel"="Apartment"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9BA05972-F6A8-11CF-A442-00A0C90A8F39}]
- @="ShellWindows"
- "AppId"="{9BA05972-F6A8-11CF-A442-00A0C90A8F39}"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}]
- @="PSFactoryBuffer"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}\InProcServer32]
- @="X:\\Windows\\System32\\ActXPrxy.dll"
- "ThreadingModel"="Both"
- [HKEY_LOCAL_MACHINE\PE_SOFT\Classes\Interface\{08DE05E1-94B8-4A17-A27C-004771A6D3A4}]
- @="IStreamGroup"
- [HKEY_LOCAL_MACHINE\PE_SOFT\Classes\Interface\{08DE05E1-94B8-4A17-A27C-004771A6D3A4}\ProxyStubClsid32]
- @="{fd7f2b29-24d0-4b5c-b177-592c39f9ca10}"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{504B27AA-001F-4179-9AD0-663A37C317A9}]
- @="ICheckDiskDialog"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{504B27AA-001F-4179-9AD0-663A37C317A9}\ProxyStubClsid32]
- @="{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B0371994-3FA6-4AB5-BD72-B3479FE90894}]
- @="IPropertySheetHandler"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B0371994-3FA6-4AB5-BD72-B3479FE90894}\ProxyStubClsid32]
- @="{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}"
复制代码
再构建,测试,发现还不行。(这都是套路啊。。。回回这样,能不能一次加成功)
这时该怎么办呢?(这里搞了2天-。-)
先确定是不是注册表的问题,我们用OKPE.wim的SOFTWARE替换,
测试。发现确实可以显示了,那就是注册表了。
(这里有个小插曲,我先精简了WinSxs,结果写错为了,丢了2个目录,
x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_5.82.10586.0_zh-cn_f6ad7353800c302a
x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_6.0.10586.0_zh-cn_4954983c79a25127
这2个目录没有,注册表完全替换了也没用!当时我不知道,把想到APPID,CLSID,CLASSIC,MICROSOFT,INTERFACE,
几个大项一个个试试了边,最后整个System32目录替换掉了都没有成功显示
文件属性,直到我把Windows整个目录一个个都替换了,才发现是WinSxs精简失误。
所以重要的事情说一下:没有前人开路,精简放到最后做!)
既然,整个SOFTWARE可以用,我们就导出些关键项试试:
APPID.reg
CLSID.reg
INTERFACE.reg
CLASSIC.reg
MICROSOFT.reg
崩溃不行?哎,全部导入算了,ALL.reg,构建,启动测试。
...
...
...
什么,竟然没有用!
等等,完全替换SOFTWARE可以用,用reg文件却不可以?
哪里有问题?
思考1.权限不对?部分项目没写入?(导入命令没有提示权限错误)
思考2.难道注册表多内容也不行?
回忆下,一条龙手动做PE的时候,有说删除注册表的
"RunAs"="Interactive User"
也没见谁将过为什么,这种知其然而不知其所以然我自然也没有去做,
那么,我们现在来看看是不是这个原因,导出2份注册表信息进行比较,
看看有没有"RunAs"被删除的项目。
诶,只看差异部分,立马我们可以找到还确实有一项。
[HKEY_LOCAL_MACHINE\PE_SOFTWARE\Classes\AppID\{448aee3b-dc65-4af6-bf5f-dce86d62b6c7}]
我们bing一下{448aee3b-dc65-4af6-bf5f-dce86d62b6c7},有关于
WIN10下管理者不能查看属性的网页,甚至有这个,早看到就好了CRY。
http://www.ghisler.ch/board/viewtopic.php?t=42571
这里证实了,"RunAs"="Interactive User"删除的必要性,
但是所有都删除是否有必要,自己可以斟酌处理。
至此,我们可以得到显示文件属性的"鱼"了。
FileProperty
+ADD_ITEMS.txt
+FileProperty.reg
ADD_ITEMS.txt
- Windows\System32\actxprxy.dll
- Windows\System32\apphelp.dll
- ;need for "security" tab
- Windows\System32\rshx32.dll
- ;mui
- Windows\System32\%PB_PE_LANG%\rshx32.dll.mui
复制代码
FileProperty.reg
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\PropertySheetHandlers\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\PropertySheetHandlers\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- @="rshx32.dll"
- "AccessPermission"=hex:01,00,04,80,60,00,00,00,70,00,00,00,00,00,00,00,14,00,\
- 00,00,02,00,4c,00,03,00,00,00,00,00,14,00,03,00,00,00,01,01,00,00,00,00,00,\
- 05,12,00,00,00,00,00,14,00,07,00,00,00,01,01,00,00,00,00,00,05,0a,00,00,00,\
- 00,00,14,00,03,00,00,00,01,01,00,00,00,00,00,05,04,00,00,00,cd,cd,cd,cd,cd,\
- cd,cd,cd,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,01,02,00,00,00,00,\
- 00,05,20,00,00,00,20,02,00,00
- "DllSurrogate"=""
- "LaunchPermission"=hex:01,00,04,80,78,00,00,00,88,00,00,00,00,00,00,00,14,00,\
- 00,00,02,00,64,00,04,00,00,00,00,00,14,00,1f,00,00,00,01,01,00,00,00,00,00,\
- 05,12,00,00,00,00,00,18,00,1f,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
- 20,02,00,00,00,00,14,00,1f,00,00,00,01,01,00,00,00,00,00,05,04,00,00,00,00,\
- 00,14,00,0b,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00,cd,cd,cd,cd,cd,cd,\
- cd,cd,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,01,02,00,00,00,00,00,\
- 05,20,00,00,00,20,02,00,00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
- @="Security Shell Extension"
- "AppId"="{1f2e5c40-9550-11ce-99d2-00aa006e086c}"
- "LocalizedString"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,\
- 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
- 00,5c,00,72,00,73,00,68,00,78,00,33,00,32,00,2e,00,44,00,4c,00,4c,00,2c,00,\
- 2d,00,35,00,39,00,00,00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}\Elevation]
- "Enabled"=dword:00000001
- "IconReference"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,\
- 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
- 00,5c,00,69,00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,\
- 6c,00,2c,00,2d,00,33,00,00,00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1f2e5c40-9550-11ce-99d2-00aa006e086c}\InProcServer32]
- @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
- 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,73,00,\
- 68,00,78,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00
- "ThreadingModel"="Apartment"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9BA05972-F6A8-11CF-A442-00A0C90A8F39}]
- @="ShellWindows"
- "AppId"="{9BA05972-F6A8-11CF-A442-00A0C90A8F39}"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}]
- @="PSFactoryBuffer"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}\InProcServer32]
- @="X:\\Windows\\System32\\ActXPrxy.dll"
- "ThreadingModel"="Both"
- [HKEY_LOCAL_MACHINE\PE_SOFT\Classes\Interface\{08DE05E1-94B8-4A17-A27C-004771A6D3A4}]
- @="IStreamGroup"
- [HKEY_LOCAL_MACHINE\PE_SOFT\Classes\Interface\{08DE05E1-94B8-4A17-A27C-004771A6D3A4}\ProxyStubClsid32]
- @="{fd7f2b29-24d0-4b5c-b177-592c39f9ca10}"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{504B27AA-001F-4179-9AD0-663A37C317A9}]
- @="ICheckDiskDialog"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{504B27AA-001F-4179-9AD0-663A37C317A9}\ProxyStubClsid32]
- @="{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B0371994-3FA6-4AB5-BD72-B3479FE90894}]
- @="IPropertySheetHandler"
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B0371994-3FA6-4AB5-BD72-B3479FE90894}\ProxyStubClsid32]
- @="{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}"
- ;this(PE_SOFTWARE) isn't a typo, WIM_Builder will also import this to offline hive file.
- ;need update ACL rights for offline importing.
- ;or you can add this on WinPE startup.(PE_SOFTWARE->SOFTWARE)
- [HKEY_LOCAL_MACHINE\PE_SOFTWARE\Classes\AppID\{448aee3b-dc65-4af6-bf5f-dce86d62b6c7}]
- ;"RunAs"="Interactive User"
- "RunAs"=-
复制代码
遗留问题,选项卡改变所有者会提示无法打开控制程序,看来还是缺点什么。(解决不了就右键加个命令行) |