Skip to content

Commit 1032663

Browse files
committed
Fixed check for Administrators SID in whoami /group output
1 parent 95c1df2 commit 1032663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/local/bypassuac.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def exploit
104104
print_error('Either whoami is not there or failed to execute')
105105
print_error('Continuing under assumption you already checked...')
106106
else
107-
isinadmins = cmdout[0].split("\r\n").grep(/S-1-5-32-544/)
107+
isinadmins = cmdout.join.scan(/S-1-5-32-544/)
108108
if isinadmins.size > 0
109109
print_good('Part of Administrators group! Continuing...')
110110
else

0 commit comments

Comments
 (0)