S
Size: a a a
S
SC
response.each do |r|
r.reservations.each do |i|
i.instances.each do |ids|
i_id.replace ids.dig(:instance_id)
sg = ids.dig(:security_groups)
enum_sg(sg, i_sgs)
list_open_ports(sg_response, i_sgs, i_ports)
if i_ports.any? #check if any ports open to 0.0.0.0/0 found
tmp_rep = ([ i_id, i_sgs, i_ports ])
report.push tmp_rep # Some unknown bug fills the array with 80 _last_ query results
print tmp_rep.to_s + "\n"
end
end
end
end
N
response.each do |r|
r.reservations.each do |i|
i.instances.each do |ids|
i_id.replace ids.dig(:instance_id)
sg = ids.dig(:security_groups)
enum_sg(sg, i_sgs)
list_open_ports(sg_response, i_sgs, i_ports)
if i_ports.any? #check if any ports open to 0.0.0.0/0 found
tmp_rep = ([ i_id, i_sgs, i_ports ])
report.push tmp_rep # Some unknown bug fills the array with 80 _last_ query results
print tmp_rep.to_s + "\n"
end
end
end
end
S
response.each do |r|
r.reservations.each do |i|
i.instances.each do |ids|
i_id.replace ids.dig(:instance_id)
sg = ids.dig(:security_groups)
enum_sg(sg, i_sgs)
list_open_ports(sg_response, i_sgs, i_ports)
if i_ports.any? #check if any ports open to 0.0.0.0/0 found
tmp_rep = ([ i_id, i_sgs, i_ports ])
report.push tmp_rep # Some unknown bug fills the array with 80 _last_ query results
print tmp_rep.to_s + "\n"
end
end
end
end
S
AJ
ЭК
S
S
ШБ
AO
PT
AM
AM