本文介绍了HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.<extension>\UserChoice 中的哈希值是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 8 中,用户选择为给定文档类型打开哪个应用程序似乎被保留

With Windows 8, the user's choice for which application to open for a given document type seems to be kept in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\<extension>\UserChoice

对于我机器上的 PDF,这包含:

For PDFs on my machine, this contains:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice]
"Hash"="xh8KhPWlZL0="
"ProgId"="AcroExch.Document"

然而在另一台机器上,哈希值是不同的.什么正在被散列,有没有办法创建一个 .reg 文件,该文件可以应用于另一台机器来设置此首选项?

Yet on another machine the hash is different. What's being hashed, and is there any way to create a .reg file which can be applied to another machine to set this preference?

推荐答案

有人对哈希进行了逆向工程并编写了一个 CLI 工具来设置文件关联:

Someone reverse engineered the hash and wrote a CLI tool to set file associations:

http://kolbi.cz/blog/?p=346

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))))

并未透露所有细节,但可能足以对其余细节进行逆向工程.

Not all details are revealed but probably enough to reverse engineer the rest.

这篇关于HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.<extension>\UserChoice 中的哈希值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 18:54