Skip to content

Commit a8adcda

Browse files
committed
Redo port checks
1 parent 156aac1 commit a8adcda

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

modules/auxiliary/scanner/http/f5_bigip_virtual_server.rb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,18 @@ def run_host(ip)
7373
end
7474

7575
ports.each do |port|
76-
if bigip_http?(ip, port, false)
77-
print_good("#{ip}:#{port} - BigIP HTTP virtual server found")
78-
next
76+
77+
unless port == 443 # Skip http check for 443
78+
if bigip_http?(ip, port, false)
79+
print_good("#{ip}:#{port} - BigIP HTTP virtual server found")
80+
next
81+
end
7982
end
8083

81-
if bigip_http?(ip, port, true)
82-
print_good("#{ip}:#{port} - BigIP HTTPS virtual server found")
84+
unless port == 80 # Skip https check for 80
85+
if bigip_http?(ip, port, true)
86+
print_good("#{ip}:#{port} - BigIP HTTPS virtual server found")
87+
end
8388
end
8489
end
8590
end

0 commit comments

Comments
 (0)