Skip to content

Commit

Permalink
Use .each_value instead of .each
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi committed May 6, 2024
1 parent 4da9771 commit bb805a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ronin/vulns/sqli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def vulnerable?
#
def check_for_sql_errors(response)
if response.code == '500'
ERROR_PATTERNS.each do |database,error_pattern|
ERROR_PATTERNS.each_value do |error_pattern|
if error_pattern =~ response.body
return true
end
Expand Down

0 comments on commit bb805a0

Please sign in to comment.