Add return in check
parent
368a78a963
commit
07060e4e69
|
@ -115,7 +115,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
|
||||
if not user_in_admin_group?
|
||||
print_error "sudo version is vulnerable, but user is not in the admin group (necessary to change the date)."
|
||||
Exploit::CheckCode::Safe
|
||||
return Exploit::CheckCode::Safe
|
||||
end
|
||||
# one root for you sir
|
||||
Exploit::CheckCode::Vulnerable
|
||||
|
|
Loading…
Reference in New Issue