@@ -39,8 +39,7 @@ def fingerprint(response)
39
39
return nil if response . body . length < 100
40
40
41
41
title = "Not Found"
42
- response . body . gsub! ( /[\r \n ]/ , '' )
43
- if ( response . body =~ /<title.*\/ ?>(.+)<\/ title\/ ?>/i )
42
+ if ( response . body =~ /<title.*\/ ?>(.+)<\/ title\/ ?>/im )
44
43
title = $1
45
44
title . gsub! ( /\s / , '' )
46
45
end
@@ -51,11 +50,11 @@ def fingerprint(response)
51
50
if ( response . body =~ />\s *Version:\s *(.*)<\/ strong\> <br\s \/ / )
52
51
v = $1
53
52
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/ )
53
+ elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright 1995\ - 2012 Adobe/ and response . body =~ /Administrator requires a browser that supports frames/ )
55
54
out = "Adobe ColdFusion MX7"
56
- elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995-2006 Adobe/ )
55
+ elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995\ - 2006 Adobe/ )
57
56
out = "Adobe ColdFusion 8"
58
- elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995-2010 Adobe/ or
57
+ elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995\ - 2010 Adobe/ or
59
58
response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995\- 2009 Adobe Systems\, Inc\. All rights reserved/ )
60
59
out = "Adobe ColdFusion 9"
61
60
elsif ( response . body =~ /<meta name=\" Keywords\" content=\" (.*)\" >\s +<meta name/ )
@@ -79,7 +78,7 @@ def run_host(ip)
79
78
res = send_request_cgi ( {
80
79
'uri' => url ,
81
80
'method' => 'GET' ,
82
- } , 10 )
81
+ } )
83
82
84
83
return if not res or not res . body or not res . code
85
84
res . body . gsub! ( /[\r |\n ]/ , ' ' )
0 commit comments