Skip to content

Commit 077c04d

Browse files
committed
Merge branch 'feature/rm6822-cold_fusion_version' of github.com:lmercer-r7/metasploit-framework into lmercer-r7-feature/rm6822-cold_fusion_version
2 parents 3faf4b3 + 481f2eb commit 077c04d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/auxiliary/scanner/http/cold_fusion_version.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def fingerprint(response)
3636
end
3737
end
3838

39-
len = (response.body.length > 2500) ? 2500 : response.body.length
4039
return nil if response.body.length < 100
4140

4241
title = "Not Found"
42+
response.body.gsub!(/[\r\n]/, '')
4343
if(response.body =~ /<title.*\/?>(.+)<\/title\/?>/i)
4444
title = $1
4545
title.gsub!(/\s/, '')
@@ -51,6 +51,8 @@ def fingerprint(response)
5151
if(response.body =~ />\s*Version:\s*(.*)<\/strong\><br\s\//)
5252
v = $1
5353
out = (v =~ /^6/) ? "Adobe ColdFusion MX6 #{v}" : "Adobe ColdFusion MX7 #{v}"
54+
elsif(response.body =~ /<meta name=\"Author\" content=\"Copyright 1995-2012 Adobe/ and response.body =~ /Administrator requires a browser that supports frames/ )
55+
out = "Adobe ColdFusion MX7"
5456
elsif(response.body =~ /<meta name=\"Author\" content=\"Copyright \(c\) 1995-2006 Adobe/)
5557
out = "Adobe ColdFusion 8"
5658
elsif(response.body =~ /<meta name=\"Author\" content=\"Copyright \(c\) 1995-2010 Adobe/ or
@@ -77,7 +79,7 @@ def run_host(ip)
7779
res = send_request_cgi({
7880
'uri' => url,
7981
'method' => 'GET',
80-
}, 5)
82+
}, 10)
8183

8284
return if not res or not res.body or not res.code
8385
res.body.gsub!(/[\r|\n]/, ' ')

0 commit comments

Comments
 (0)