在Windows 8中,似乎保留了用户为给定文档类型打开哪个应用程序的选择。
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\<extension>\UserChoice
对于我的机器上的PDF,它包含:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice]
"Hash"="xh8KhPWlZL0="
"ProgId"="AcroExch.Document"
但是在另一台机器上,哈希是不同的。什么是哈希,有什么方法可以创建一个.reg文件,该文件可以应用到另一台计算机上以设置此首选项?
有人对哈希进行反向工程,并编写了一个CLI工具来设置文件关联:
extension = “.txt”; the file extension
sid = “S-1-5-21-463486358-3398762107-1964875780-1001” ; the SID of the current user
progid = “txtfile”; the ProgId of the desired association
regdate = “01d3442a29887400”; timestamp of the UserChoice registry key
experience = “a microsoft secret string”; a static string (this is a dummy example, not the real string
hash = Base64(MicrosoftHash(MD5(toLower(extension, sid, progid, regdate, experience))))
并非所有细节都被透露出来,但可能足以对其余部分进行反向工程。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句