Sha256: d513027253bb96729d60e0f6d6f3b401654314283951791666e113e5645d23a7

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 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
##
# Version 0.2 by Andrew Horton
# Replaced matches, replaced Google dork, replaced examples
# Plugin still needs to be tested on all versions of MRTG

WhatWeb::Plugin.define "MRTG" do
  @author = "Aung Khant <http://yehg.net/>" # 2012-02-10
  @version = "0.2"
  @description = "MRTG - Multi Router Traffic Grapher - http://oss.oetiker.ch/mrtg/"

  # Google results as at 2012-08-09 #
  # 8330 for intitle:"MRTG Index Page"

  # Matches #
  @matches = [
    { name: "Title", regexp: /<TITLE>MRTG Index Page<\/TITLE>/i },
    { name: "Logo in footer", regexp: /HREF="http:\/\/oss.oetiker.ch\/mrtg\/"><IMG[\s]*BORDER=0 SRC="mrtg-l.png"/mi },

    { name: "Logo in footer2", regexp: /HREF="http:\/\/www.ee.ethz.ch\/~oetiker\/webtools\/mrtg\/">.*src=mrtg-l.png alt=MRTG/mi },

    { name: "Logo image", url: "/mrtg-l.png", md5: "241244d0d8845dcad7e891e84e79d63f" },
    { version: /<title>MRTG Index Page.*version ([^<]+)<\/font><\/td>/mi }

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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