Update enum_emet.rb

Cleaned up a bit more
bug/bundler_fix
Vincent Yiu 2016-04-22 00:41:10 +01:00
parent c81d0ade3f
commit ca4bcfe62a
1 changed files with 2 additions and 11 deletions

View File

@ -9,7 +9,6 @@ require 'msf/core/post/common'
class MetasploitModule < Msf::Post
include Msf::Post::Windows::Priv
include Msf::Post::Windows::Registry
include Msf::Post::Common
@ -25,21 +24,13 @@ class MetasploitModule < Msf::Post
end
# Run Method for when run command is issued
def run
print_status("Running module against #{sysinfo['Computer']}")
if sysinfo['Architecture'] =~ /x64/
reg_vals = registry_enumvals('HKLM\\SOFTWARE\\Microsoft\\EMET\\AppSettings',REGISTRY_VIEW_64_BIT)
else
reg_vals = registry_enumvals('HKLM\\SOFTWARE\\Microsoft\\EMET\\AppSettings',REGISTRY_VIEW_32_BIT)
end
isadmin = is_admin?
#a = registry_getvaldata('HKLM\HARDWARE\DESCRIPTION\System','SystemBiosVersion')
t = ""
reg_vals.each do |x|