Sha256: 6aa577f5f324be9af05cf843be791aade056c1cf0b2054a2e91ba28b88930a16

Contents?: true

Size: 1.9 KB

Versions: 6

Compression:

Stored size: 1.9 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 # 2016-04-17 # Andrew Horton
# Added website parameter and description
##
WhatWeb::Plugin.define "SHOUTcast-Administrator" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2010-07-03
  @version = "0.2"
  @description = "SHOUTcast is free cross-platform proprietary software for streaming media over the Internet. The software, developed by Nullsoft, allows digital audio content, primarily in MP3 or HE-AAC format, to be broadcast to and from media player software, enabling the creation of Internet radio stations. Wikipedia: https://en.wikipedia.org/wiki/SHOUTcast"
  @website = "http://www.shoutcast.com/"

  @matches = [

    # about 27,000 results for intitle:"SHOUTcast Administrator" @ 2010-07-02
    { text: '<title>SHOUTcast Administrator</title>' },

    { regexp: /<tr><td><font class=ltv>Written by Stephen 'Tag Loomis, Tom Pepper and Justin Frankel<\/font><\/td><\/tr><\/table><\/td><\/tr><tr><td nowrap colspan=5 align=center><font class=ST><b><a href="http:\/\/www.shoutcast.com\/disclaimer.phtml">Copyright Nullsoft Inc<\/a>[<a href="\/llamacookie">.<\/a>]* 1998-[0-9]{4}<\/b><\/font><\/td><\/tr><\/table><\/font><\/body><\/html>/ },

  ]

  def passive(target)
    m = []

    if /<tr><td height=14 align=right><font class=ltv><a id=ltv href="http:\/\/www.shoutcast.com\/">SHOUTcast Server Version [0-9a-zA-Z\-\.\/\\_]+<\/a><\/font><\/td><\/tr>/.match?(target.body)
      version = target.body.scan(/<tr><td height=14 align=right><font class=ltv><a id=ltv href="http:\/\/www.shoutcast.com\/">SHOUTcast Server Version ([0-9a-zA-Z\-\.\/\\_]+)<\/a><\/font><\/td><\/tr>/)[0][0]
      m << { version: version }
    end

    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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