Little refactoring

This commit is contained in:
ethicalhack3r
2013-07-25 19:47:16 +02:00
parent c33e553175
commit 6d2165acc3

View File

@@ -128,12 +128,14 @@ def main
end end
wp_target.interesting_headers.each do |header| wp_target.interesting_headers.each do |header|
output = "#{green('[+]')} Interesting header: "
if header[1].class == Array if header[1].class == Array
header[1].each do |value| header[1].each do |value|
puts green('[+]') + " Interesting header: #{header[0]}: #{value}" puts output + "#{header[0]}: #{value}"
end end
else else
puts green('[+]') + " Interesting header: #{header[0]}: #{header[1]}" puts output + "#{header[0]}: #{header[1]}"
end end
end end