@@ -35,7 +35,7 @@ def fingerprint(response)
35
35
if ( response . headers [ 'Server' ] =~ /IIS/ or response . headers [ 'Server' ] =~ /\( Windows/ )
36
36
os = "Windows (#{ response . headers [ 'Server' ] } )"
37
37
elsif ( response . headers [ 'Server' ] =~ /Apache\/ / )
38
- os = "Unix (#{ response . headers [ 'Server' ] } )"
38
+ os = "Unix (#{ response . headers [ 'Server' ] } )"
39
39
else
40
40
os = response . headers [ 'Server' ]
41
41
end
@@ -48,10 +48,10 @@ def fingerprint(response)
48
48
title = $1
49
49
title . gsub! ( /\s / , '' )
50
50
end
51
- return nil if ( title == 'Not Found' or not title =~ /ColdFusionAdministrator/ )
52
51
53
- out = nil
52
+ return nil if ( title == 'Not Found' or not title =~ /ColdFusionAdministrator/ )
54
53
54
+ out = nil
55
55
56
56
if ( response . body =~ />\s *Version:\s *(.*)<\/ strong\> <br\s \/ / )
57
57
v = $1
@@ -64,7 +64,8 @@ def fingerprint(response)
64
64
response . body =~ /1997\- 2012 Adobe Systems Incorporated and its licensors/ )
65
65
out = "Adobe ColdFusion 10"
66
66
elsif ( response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995\- 2010 Adobe/ or
67
- response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995\- 2009 Adobe Systems\, Inc\. All rights reserved/ )
67
+ response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1995\- 2009 Adobe Systems\, Inc\. All rights reserved/ or
68
+ response . body =~ /<meta name=\" Author\" content=\" Copyright \( c\) 1997\- 2012 Adobe Systems\, Inc\. All rights reserved/ )
68
69
out = "Adobe ColdFusion 9"
69
70
elsif ( response . body =~ /<meta name=\" Keywords\" content=\" (.*)\" >\s +<meta name/ )
70
71
out = $1. split ( /,/ ) [ 0 ]
@@ -85,8 +86,8 @@ def run_host(ip)
85
86
url = '/CFIDE/administrator/index.cfm'
86
87
87
88
res = send_request_cgi ( {
88
- 'uri' => url ,
89
- 'method' => 'GET' ,
89
+ 'uri' => url ,
90
+ 'method' => 'GET' ,
90
91
} )
91
92
92
93
return if not res or not res . body or not res . code
0 commit comments