Sha256: 10ec5e0ed1b43780cf4cf924b92fbe86c05fa64082f41e4b9bd19e452d8e3ab4

Contents?: true

Size: 1.67 KB

Versions: 6

Compression:

Stored size: 1.67 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 "KnowledgeTree" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2010-09-18
  @version = "0.1"
  @description = "Document Management Software"
  @website = "http://www.knowledgetree.com/"

  # 13 results for "powered by KnowledgeTree" "KnowledgeTree Version" @ 2010-09-18
  # 71 results for inurl:kt_path_info="ktcore.actions.document.assist" @ 2010-09-18
  # 77 results for "powered by KnowledgeTree" @ 2010-09-18

  # DOrks #
  @dorks = [
    '"powered by KnowledgeTree"'
  ]

  @matches = [

    # Default title
    { text: '    <title>Dashboard | KnowledgeTree</title>' },

    # Login page # Default title
    { text: '    <title>Login | KnowledgeTree</title>' },

    # Powered by image
    { text: '/resources/powered-by-kt.png" border="0" alt="Powered by KnowledgeTree" title="Powered by KnowledgeTree"/></a>' },

    # Favicon
    { md5: "bace14cd488b34068a9c2e54bff2b5b1", url: "/resources/favicon.ico" },

  ]

  # Version detection
  def passive(target)
    m = []

    # Login page
    if /                    <a href="http:\/\/www.knowledgetree.com\/">Document Management Software<\/a><br>/.match?(target.body)
      if /		    	    KnowledgeTree Version ([\d\.]+) \(Community Edition\)<br\/>/.match?(target.body)
        version = target.body.scan(/		    	    KnowledgeTree Version ([\d\.]+) \(Community Edition\)<br\/>/)[0][0]
        m << { version: version }
      end
    end

    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/knowledgetree.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/knowledgetree.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/knowledgetree.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/knowledgetree.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/knowledgetree.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/knowledgetree.rb