Land #7949, Format binary registry data nicely on display

4.x
Brent Cook 2018-04-02 23:11:25 -05:00 committed by Jeffrey Martin
parent 1557540b08
commit 7f62d49b2a
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 5 additions and 1 deletions

View File

@ -840,12 +840,16 @@ class Console::CommandDispatcher::Stdapi::Sys
end end
v = open_key.query_value(value) v = open_key.query_value(value)
data = v.data
if v.type == REG_BINARY
data = data.unpack('H*')[0]
end
print( print(
"Key: #{key}\n" + "Key: #{key}\n" +
"Name: #{v.name}\n" + "Name: #{v.name}\n" +
"Type: #{v.type_to_s}\n" + "Type: #{v.type_to_s}\n" +
"Data: #{v.data}\n") "Data: #{data}\n")
when "queryclass" when "queryclass"
open_key = nil open_key = nil