Revert until the mixin is checked in
git-svn-id: file:///home/svn/framework3/trunk@11464 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
bafd318ba7
commit
401d8e5a68
|
@ -14,8 +14,6 @@ require 'rex'
|
|||
|
||||
class Metasploit3 < Msf::Post
|
||||
|
||||
include Post::Registry
|
||||
|
||||
def initialize(info={})
|
||||
super( update_info( info,
|
||||
'Name' => 'Get environment',
|
||||
|
@ -68,5 +66,20 @@ class Metasploit3 < Msf::Post
|
|||
print_line chan.read
|
||||
end
|
||||
end
|
||||
|
||||
def registry_enumvals(key)
|
||||
values = []
|
||||
begin
|
||||
vals = {}
|
||||
root_key, base_key = session.sys.registry.splitkey(key)
|
||||
open_key = session.sys.registry.open_key(root_key, base_key, KEY_READ)
|
||||
vals = open_key.enum_value
|
||||
vals.each { |val|
|
||||
values << val.name
|
||||
}
|
||||
open_key.close
|
||||
end
|
||||
return values
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue