We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44fb059 commit ba880d1Copy full SHA for ba880d1
modules/exploits/windows/mssql/mssql_clr_payload.rb
@@ -98,6 +98,9 @@ def get_exploit_version(sql_version_string)
98
def set_trustworthy(on)
99
result = mssql_query("ALTER DATABASE [#{datastore['DATABASE']}] SET TRUSTWORTHY #{on ? 'ON' : 'OFF'}", false)
100
unless result[:errors].empty?
101
+ result[:errors].each do |err|
102
+ vprint_error(err)
103
+ end
104
fail_with(Failure::Unknown, "Failed to change Trustworthy setting")
105
end
106
@@ -117,6 +120,9 @@ def enable_clr(enable)
117
120
^
118
121
result = mssql_query(query, false)
119
122
123
124
125
126
fail_with(Failure::Unknown, "Failed to change CLR setting")
127
128
0 commit comments