From 07060e4e69cdd86a55113fdd481a5a8e9fdcad75 Mon Sep 17 00:00:00 2001 From: Tyler Krpata Date: Thu, 5 Sep 2013 16:57:47 -0400 Subject: [PATCH] Add return in check --- modules/exploits/osx/local/sudo_password_bypass.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/osx/local/sudo_password_bypass.rb b/modules/exploits/osx/local/sudo_password_bypass.rb index a64e432437..193a3d5ace 100644 --- a/modules/exploits/osx/local/sudo_password_bypass.rb +++ b/modules/exploits/osx/local/sudo_password_bypass.rb @@ -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