Skip to content

Commit d3adfff

Browse files
committed
Change syntax
1 parent f894b9a commit d3adfff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/open_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def verify_target(target_host,target_port,target_method,check_url,target_proxy_h
133133
end
134134
else
135135
# Verify return code && (headers.pattern or body.pattern)
136-
if valid_codes.include?(res.code.to_s) && (res.headers.include?(datastore['VALIDPATTERN']) or res.body.include?(datastore['VALIDPATTERN']))
136+
if valid_codes.include?(res.code.to_s) && (res.headers.include?(datastore['VALIDPATTERN']) || res.body.include?(datastore['VALIDPATTERN']))
137137

138138
print_good("#{peer} - Potentially open proxy [#{res.code}][#{target_method}]#{proxy_headers}")
139139

0 commit comments

Comments
 (0)