Skip to content

Commit 036d43b

Browse files
committed
fixed logic bug
1 parent 1e2f1ea commit 036d43b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/auxiliary/admin/mssql/mssql_escalate_dbowner_sqli.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ def check_db_owner(trust_db_list)
162162
parsed_result =result.body.scan( /EVILSQLISTART([^>]*)EVILSQLISTOP/).last.first
163163

164164
# Return sysadmin status
165-
return parsed_result
165+
if parsed_result
166+
return parsed_result
167+
end
166168
end
169+
nil
167170
end
168171

169172
# Attempt to escalate privileges

0 commit comments

Comments
 (0)