Land #1912 - Fixed check for Admins SID in whoami /group output

unstable
sinn3r 2013-06-05 02:55:38 -05:00
commit 6d3dcf0cef
1 changed files with 1 additions and 1 deletions

View File

@ -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