Skip to content

Instantly share code, notes, and snippets.

@josephglanville
Created October 21, 2014 22:48
Show Gist options
  • Save josephglanville/7fc6e000275c419ca896 to your computer and use it in GitHub Desktop.
Save josephglanville/7fc6e000275c419ca896 to your computer and use it in GitHub Desktop.
Scan ELBs for SSLv3 being enabled.
#!/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