Update bypassuac_sluihijack.rb

GSoC/Meterpreter_Web_Console
gushmazuko 2018-05-28 12:00:52 +02:00 committed by GitHub
parent 80d0b40207
commit e2160fa7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class MetasploitModule < Msf::Exploit::Local
unless check == CheckCode::Appears
fail_with(Failure::NotVulnerable, "Target is not vulnerable.")
end
# Check if you are an admin
vprint_status('Checking admin status...')
admin_group = is_in_admin_group?
@ -191,7 +191,7 @@ class MetasploitModule < Msf::Exploit::Local
end
fail_with(Failure::None, 'Already in elevated state') if is_admin? || is_system?
print_status('UAC is Enabled, checking level...')
if admin_group.nil?
print_error('Either whoami is not there or failed to execute')