Use :display correctly
parent
cd837ebe16
commit
f10a35ed08
|
@ -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?
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue