File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ def fingerprint(response)
36
36
end
37
37
end
38
38
39
- len = ( response . body . length > 2500 ) ? 2500 : response . body . length
40
39
return nil if response . body . length < 100
41
40
42
41
title = "Not Found"
42
+ response . body . gsub! ( /[\r \n ]/ , '' )
43
43
if ( response . body =~ /<title.*\/ ?>(.+)<\/ title\/ ?>/i )
44
44
title = $1
45
45
title . gsub! ( /\s / , '' )
@@ -51,6 +51,8 @@ def fingerprint(response)
51
51
if ( response . body =~ />\s *Version:\s *(.*)<\/ strong\> <br\s \/ / )
52
52
v = $1
53
53
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"
54
56
elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995-2006 Adobe/ )
55
57
out = "Adobe ColdFusion 8"
56
58
elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995-2010 Adobe/ or
@@ -77,7 +79,7 @@ def run_host(ip)
77
79
res = send_request_cgi ( {
78
80
'uri' => url ,
79
81
'method' => 'GET' ,
80
- } , 5 )
82
+ } , 10 )
81
83
82
84
return if not res or not res . body or not res . code
83
85
res . body . gsub! ( /[\r |\n ]/ , ' ' )
You can’t perform that action at this time.
0 commit comments