Sha256: cde80b68aa7c45303f27e7e3ccb7b13393fc562c759ce94676b4c159113be56f

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 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 "OCS-Inventory-NG" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-10-20
  @version = "0.1"
  @description = "Open Computers and Software Inventory Next Generation - computer hardware management - http://www.ocsinventory-ng.org/en/"

  # Google results as at 2011-10-20 #
  # 63 for intitle:"OCS Inventory" +Ver +inurl:"index.php?av="

  # Dorks #
  @dorks = [
    'intitle:"OCS Inventory" "Ver" inurl:"index.php?av="'
  ]

  # Matches #
  @matches = [

    # Login Page # StyleSheet
    { text: "<LINK REL='StyleSheet' TYPE='text/css' HREF='css/ocsreports.css'>" },

    # Login Page # Version Detection # Banner HTML
    { version: /<img src=image\/banner-ocs\.png><\/a><\/td><td width='33%' align='right'>[\s]+<b>Ver\. ([^&]+)&nbsp&nbsp&nbsp;<\/b>/ },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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