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]/, ' ')