Update bypassuac_sluihijack.rb
parent
80d0b40207
commit
e2160fa7e0
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue