Skip to content

Commit 77b036c

Browse files
committed
Land rapid7#2703, uninit const fix for MSSQL_SQLI
2 parents 05dfc16 + a5aca61 commit 77b036c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/mssql_sqli.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def mssql_query(sqla, doprint=false)
144144
if (datastore['METHOD'] == 'GET')
145145

146146
unless datastore['GET_PATH'].index("[SQLi]")
147-
fail_with(Failure::NoTarget, "The SQL injection parameter was not specified in the GET path")
147+
fail_with(::Msf::Module::Failure::NoTarget, "The SQL injection parameter was not specified in the GET path")
148148
end
149149

150150
uri = datastore['GET_PATH'].gsub("[SQLi]", Rex::Text.uri_encode(sqla))
@@ -160,7 +160,7 @@ def mssql_query(sqla, doprint=false)
160160
else
161161

162162
unless datastore['DATA'].index("[SQLi]")
163-
fail_with(Failure::NoTarget, "The SQL injection parameter was not specified in the POST data")
163+
fail_with(::Msf::Module::Failure::NoTarget, "The SQL injection parameter was not specified in the POST data")
164164
end
165165

166166
post_data = datastore['DATA'].gsub("[SQLi]", Rex::Text.uri_encode(sqla))

0 commit comments

Comments
 (0)