Use :display correctly
parent
cd837ebe16
commit
f10a35ed08
|
@ -78,8 +78,8 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
os = sysinfo["OS"]
|
||||
if os =~ /windows/i
|
||||
svc = service_info 'nvsvc'
|
||||
if svc and svc[:display_name] =~ /NVIDIA/i
|
||||
vprint_good("Found service '#{svc[:display_name]}'")
|
||||
if svc and svc[:display] =~ /NVIDIA/i
|
||||
vprint_good("Found service '#{svc[:display]}'")
|
||||
|
||||
begin
|
||||
if is_running?
|
||||
|
|
|
@ -41,10 +41,10 @@ class Metasploit3 < Msf::Post
|
|||
serv = service_info("rpcapd")
|
||||
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")
|
||||
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")
|
||||
prog=expand_path("%ProgramFiles%") << "\\winpcap\\rpcapd.exe"
|
||||
if reg != 2
|
||||
|
|
Loading…
Reference in New Issue