Land #7949, Format binary registry data nicely on display
parent
1557540b08
commit
7f62d49b2a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue