Skip to content

Commit 8780c32

Browse files
committed
Fixed issues rapid7#7691, silent exit.
Add a print statement to alert user what is missing, user could be confused that "show missing" is empty yet something is missing.
1 parent 12af07d commit 8780c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/auxiliary/scanner/http/error_sql_injection.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@ def run_host(ip)
7878
if not datastore['QUERY'].empty?
7979
qvars = queryparse(datastore['QUERY']) #Now its a Hash
8080
else
81+
print_error("You need to set QUERY param for GET")
8182
return
8283
end
8384
else
8485
if not datastore['DATA'].empty?
8586
qvars = queryparse(datastore['DATA']) #Now its a Hash
8687
else
88+
print_error("You need to set DATA parameter for POST")
8789
return
8890
end
8991
end

0 commit comments

Comments
 (0)