Sha256: 4ee19c923eea7caf4393e1078c687271d1cfe32d768b92003209fb1110457a2b
Contents?: true
Size: 1.71 KB
Versions: 6
Compression:
Stored size: 1.71 KB
Contents
# frozen_string_literal: true ## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # http://www.morningstarsecurity.com/research/whatweb ## WhatWeb::Plugin.define "cm3-cms" do @author = "Aung Khant <http://yehg.net/>" # 2012-02-12 @version = "0.1" @description = "CM3/CM2 CMS - http://www.cm3cms.com/ , CM2 was based on ASP, CM3 was based on ASP.NET." # Matches # @matches = [ { name: 'JavaScript Object (CM2)', text: 'top.cm2_home.location.href' }, { name: 'HTML Body (CM2)', text: 'name="cm2_top" id="cm2_top"' }, { name: 'HTML Body (CM2)', text: 'name="cm25_main"' }, { name: 'HTML Body (CM3)', text: 'name="id="cm3top" name="cm3top"' }, { name: 'HTML Body (CM3)', text: 'logo_cm3_top.gif" border="0"' }, { name: 'HTML Body (CM3)', text: 'alt="Content management system: cm3 built and powered"' }, { name: 'HTML Body (CM3)', text: 'cm3powered_green.gif"' }, { name: 'Set-Cookie Header (CM3)', search: "headers[set-cookie]", regexp: /cm3session/ } ] # Aggressive # def aggressive(target) m = [] # cm2 url = URI.join(target.uri.to_s, 'admin/').to_s new_target = WhatWeb::Target.new url if new_target.status == 200 if /(name="cm2_top" id="cm2_top"|name="cm25_main")/.match?(new_target.body) m << { name: "HTML Body (CM2)" } end end # cm3 url = URI.join(target.uri.to_s, 'AcoraCMS/Admin/').to_s new_target = WhatWeb::Target.new url if new_target.status == 200 if /cm3session/.match?(new_target.headers["set-cookie"]) m << { name: "HTTP Cookie (CM3)" } end end m end end
Version data entries
6 entries across 6 versions & 1 rubygems