From 96888455a7e5abb544f19dd99322911e6a588a53 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Tue, 28 May 2013 16:04:08 -0500 Subject: [PATCH] Add new signature for CF9 --- .../auxiliary/scanner/http/cold_fusion_version.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/auxiliary/scanner/http/cold_fusion_version.rb b/modules/auxiliary/scanner/http/cold_fusion_version.rb index d609f276fd..05fb1c2fd7 100644 --- a/modules/auxiliary/scanner/http/cold_fusion_version.rb +++ b/modules/auxiliary/scanner/http/cold_fusion_version.rb @@ -35,7 +35,7 @@ class Metasploit3 < Msf::Auxiliary if(response.headers['Server'] =~ /IIS/ or response.headers['Server'] =~ /\(Windows/) os = "Windows (#{response.headers['Server']})" elsif(response.headers['Server'] =~ /Apache\//) - os = "Unix (#{response.headers['Server']})" + os = "Unix (#{response.headers['Server']})" else os = response.headers['Server'] end @@ -48,11 +48,11 @@ class Metasploit3 < Msf::Auxiliary title = $1 title.gsub!(/\s/, '') end - return nil if( title == 'Not Found' or not title =~ /ColdFusionAdministrator/) + + return nil if( title == 'Not Found' or not title =~ /ColdFusionAdministrator/) out = nil - if(response.body =~ />\s*Version:\s*(.*)<\/strong\>\s+ url, - 'method' => 'GET', + 'uri' => url, + 'method' => 'GET', }) return if not res or not res.body or not res.code