From 481f2eb791365eefe3d65334b7e44740dde4e61d Mon Sep 17 00:00:00 2001 From: lmercer Date: Wed, 16 Jan 2013 17:23:35 -0500 Subject: [PATCH] updated cold_fusion_version from Redmine Feature #6822 --- modules/auxiliary/scanner/http/cold_fusion_version.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/http/cold_fusion_version.rb b/modules/auxiliary/scanner/http/cold_fusion_version.rb index 92aaba751e..1f7169e415 100644 --- a/modules/auxiliary/scanner/http/cold_fusion_version.rb +++ b/modules/auxiliary/scanner/http/cold_fusion_version.rb @@ -36,10 +36,10 @@ class Metasploit3 < Msf::Auxiliary end end - len = (response.body.length > 2500) ? 2500 : response.body.length return nil if response.body.length < 100 title = "Not Found" + response.body.gsub!(/[\r\n]/, '') if(response.body =~ /(.+)<\/title\/?>/i) title = $1 title.gsub!(/\s/, '') @@ -51,6 +51,8 @@ class Metasploit3 < Msf::Auxiliary if(response.body =~ />\s*Version:\s*(.*)<\/strong\> url, 'method' => 'GET', - }, 5) + }, 10) return if not res or not res.body or not res.code res.body.gsub!(/[\r|\n]/, ' ')