Created
October 21, 2014 22:48
-
-
Save josephglanville/7fc6e000275c419ca896 to your computer and use it in GitHub Desktop.
Scan ELBs for SSLv3 being enabled.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'aws' | |
elb = AWS::ELB.new | |
elb.load_balancers.each do |lb| | |
vuln = false | |
lb.policies.each do |pol| | |
if pol.attributes.include?('Protocol-SSLv3') | |
if pol.attributes['Protocol-SSLv3'] | |
vuln = true | |
break | |
end | |
end | |
end | |
puts "#{lb.name} vulnerable: #{vuln}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment