Revert until the mixin is checked in

git-svn-id: file:///home/svn/framework3/trunk@11464 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-01-04 02:46:18 +00:00
parent bafd318ba7
commit 401d8e5a68
1 changed files with 15 additions and 2 deletions

View File

@ -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