Land #1912 - Fixed check for Admins SID in whoami /group output
commit
6d3dcf0cef
|
@ -104,7 +104,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
print_error('Either whoami is not there or failed to execute')
|
||||
print_error('Continuing under assumption you already checked...')
|
||||
else
|
||||
isinadmins = cmdout[0].split("\r\n").grep(/S-1-5-32-544/)
|
||||
isinadmins = cmdout.join.scan(/S-1-5-32-544/)
|
||||
if isinadmins.size > 0
|
||||
print_good('Part of Administrators group! Continuing...')
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue