Use :display correctly

bug/bundler_fix
Meatballs 2013-12-15 18:28:29 +00:00
parent cd837ebe16
commit f10a35ed08
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
2 changed files with 4 additions and 4 deletions

View File

@ -78,8 +78,8 @@ class Metasploit3 < Msf::Exploit::Local
os = sysinfo["OS"] os = sysinfo["OS"]
if os =~ /windows/i if os =~ /windows/i
svc = service_info 'nvsvc' svc = service_info 'nvsvc'
if svc and svc[:display_name] =~ /NVIDIA/i if svc and svc[:display] =~ /NVIDIA/i
vprint_good("Found service '#{svc[:display_name]}'") vprint_good("Found service '#{svc[:display]}'")
begin begin
if is_running? if is_running?

View File

@ -41,10 +41,10 @@ class Metasploit3 < Msf::Post
serv = service_info("rpcapd") serv = service_info("rpcapd")
print_status("Checking if machine #{sysinfo['Computer']} has rpcapd service") print_status("Checking if machine #{sysinfo['Computer']} has rpcapd service")
if serv[:display_name] !~ /remote/i if serv[:display] !~ /remote/i
print_error("This machine doesn't seem to have the rpcapd service") print_error("This machine doesn't seem to have the rpcapd service")
else else
print_status("Rpcap service found: #{serv[:display_name]}") print_status("Rpcap service found: #{serv[:display]}")
reg=registry_getvaldata("HKLM\\SYSTEM\\CurrentControlSet\\Services\\rpcapd","Start") reg=registry_getvaldata("HKLM\\SYSTEM\\CurrentControlSet\\Services\\rpcapd","Start")
prog=expand_path("%ProgramFiles%") << "\\winpcap\\rpcapd.exe" prog=expand_path("%ProgramFiles%") << "\\winpcap\\rpcapd.exe"
if reg != 2 if reg != 2