Formatted reg binary type to hex when displaying query results.

GSoC/Meterpreter_Web_Console
b0yd 2018-03-23 15:56:12 -04:00
parent b9fc786d24
commit 7e0c255591
1 changed files with 5 additions and 1 deletions

View File

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