我正在尝试将我的 bt 键盘与 windows 10 和 ubuntu 16.04 配对。问题是我无法使用 chntpw 获取密钥,因为在我想要十六进制转储键盘注册表项后,程序因分段错误而崩溃。这是我第二次尝试读取会话密钥。
(起初我尝试使用 regedit 在 win 10 中读出该密钥,但我无法获得读取该密钥的权限。即使我以管理员身份运行 regedit,也无法在 Windows 上更改所有者(没有权限)。)
在这里你可以看到我使用 chntpw 获取密钥的操作:
chntpw -e SYSTEM
chntpw version 1.00 140201, (c) Petter N Hagen
Hive <SYSTEM> name (from header): <SYSTEM>
ROOT KEY at offset: 0x001020 * Subkey indexing type is: 686c <lh>
File size 18874368 [1200000] bytes, containing 4008 pages (+ 1 headerpage)
Used for data: 285621/17878016 blocks/bytes, unused: 198/335616 blocks/bytes.
Simple registry editor. ? for help.
> ls
Node has 15 subkeys and 0 values
key name
<ActivationBroker>
<ControlSet001>
<DriverDatabase>
<HardwareConfig>
<Input>
<Keyboard Layout>
<Maps>
<MountedDevices>
<ResourceManager>
<ResourcePolicyStore>
<RNG>
<Select>
<Setup>
<Software>
<WPA>
> cd ControlSet001/Services/BTHPORT/Parameters/Keys
(...)\Services\BTHPORT\Parameters\Keys> ls
Node has 1 subkeys and 0 values
key name
<xxxxxxxxxxxxxx>
(...)\Services\BTHPORT\Parameters\Keys> cd xxxxxxxxxxxxxx
(...)\BTHPORT\Parameters\Keys\xxxxxxxxxxxxxx> ls
Node has 1 subkeys and 0 values
key name
<yyyyyyyyyyyyyyyy>
(...)\BTHPORT\Parameters\Keys\xxxxxxxxxxxxxx> hex yyyyyyyyyyyyyyyy
Segmentation fault (core dumped)
现在经过几个小时的尝试,我不知道该怎么做才能获得这个密钥。有人知道我可以尝试什么吗?
问候
答案1
OP 可能已经有了答案,但对于像我这样的人,他们因为没有注意而犯了同样的错误。yyyyyyyyyyyy
不是一个值,而是一个子键。
因此,您必须进入 yyyyyyyyyyyy,您会在其中找到几个值。
在我的情况下,这是一个文件夹,因为它是一个蓝牙 LE 设备。不过,不确定这是否仅适用于低功耗设备。