From c33e5531752161f3c82673ab9f46c5b6fea2f667 Mon Sep 17 00:00:00 2001 From: ethicalhack3r Date: Thu, 25 Jul 2013 19:41:03 +0200 Subject: [PATCH] Handle when there are 2 headers of the same name --- wpscan.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wpscan.rb b/wpscan.rb index f389bb5b..109622d4 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -128,7 +128,13 @@ def main end wp_target.interesting_headers.each do |header| - puts green('[+]') + " Interesting header: #{header[0]}: #{header[1]}" + if header[1].class == Array + header[1].each do |value| + puts green('[+]') + " Interesting header: #{header[0]}: #{value}" + end + else + puts green('[+]') + " Interesting header: #{header[0]}: #{header[1]}" + end end if wp_target.multisite?