File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ def validate_fingerprint()
126
126
opts [ :pattern ] . each do |re |
127
127
if not re . match ( info )
128
128
err = "The target server fingerprint \" #{ info } \" does not match \" #{ re . to_s } \" , use 'set FingerprintCheck false' to disable this check."
129
- fail_with ( Msf :: Exploit :: Failure ::NotFound , err )
129
+ fail_with ( Failure ::NotFound , err )
130
130
end
131
131
end
132
132
end
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ def mssql_query(sqla, doprint=false)
144
144
if ( datastore [ 'METHOD' ] == 'GET' )
145
145
146
146
unless datastore [ 'GET_PATH' ] . index ( "[SQLi]" )
147
- fail_with ( Exploit :: Failure ::NoTarget , "The SQL injection parameter was not specified in the GET path" )
147
+ fail_with ( Failure ::NoTarget , "The SQL injection parameter was not specified in the GET path" )
148
148
end
149
149
150
150
uri = datastore [ 'GET_PATH' ] . gsub ( "[SQLi]" , Rex ::Text . uri_encode ( sqla ) )
@@ -160,7 +160,7 @@ def mssql_query(sqla, doprint=false)
160
160
else
161
161
162
162
unless datastore [ 'DATA' ] . index ( "[SQLi]" )
163
- fail_with ( Exploit :: Failure ::NoTarget , "The SQL injection parameter was not specified in the POST data" )
163
+ fail_with ( Failure ::NoTarget , "The SQL injection parameter was not specified in the POST data" )
164
164
end
165
165
166
166
post_data = datastore [ 'DATA' ] . gsub ( "[SQLi]" , Rex ::Text . uri_encode ( sqla ) )
You can’t perform that action at this time.
0 commit comments