Sha256: 5bc1147b34ccc8e590e475537559231496f0ae701fefe4bf052cf1837f0703ef

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.4 # 2011-03-06 # Brendan Coles <bcoles@gmail.com>
# Updated module detection
##
# Version 0.3
# uses :module
##
# Version 0.2
# remove :certainty
##
WhatWeb::Plugin.define "PHPNuke" do
  @author = "Andrew Horton"
  @version = "0.4"
  @description = "PHP-Nuke is a free CMS"
  @website = "phpnuke.org. The plugin passively recognises modules. An obvious improvement would be to aggresively discover modules and discover the phpnuke version"

  # Google results as at 2011-03-06 #
  # 497 for allinurl:"modules.php?name=Your_Account"
  # 305 for "powered by phpnuke"
  #  88 for allinurl:phpnuke/modules.php?name=Search

  # Matches #
  @matches = [

    { name: "meta generator tag with PHP-Nuke",
      regexp: /<meta name="generator" content="[^"]+(PHP-Nuke|http:\/\/phpnuke.org)/i },

    { certainty: 75,
      text: "<a href=\"modules.php?name=Your_Account\">" },

    # this also appears in DotNetNuke
    { certainty: 25,
      text: "<META NAME=\"RATING\" CONTENT=\"GENERAL\">" },

    { certainty: 75,
      text: "<a href=\"http://phpnuke.org/files/gpl.txt\">" },

    { name: "Feedback link",
      certainty: 75,
      text: "<a href=\"modules.php?name=Feedback\">Feedback</a>" },

    { name: "modules.php?name links",
      certainty: 25,
      regexp: /<a href="[^"]*modules.php\?name=[a-zA-Z0-9_]+[^"]*">/ },

    { name: "engine code is copyright of PHP-Nuke",
      text: "<a href='http://www.phpnuke.org'><img src='images/powered/phpnuke.gif' title=\"The engine code is copyright of PHP-Nuke.\" border='0'></a>" },

    # Module Detection
    { certainty: 75, module: /<a href="[^"]*modules.php\?name=([a-zA-Z0-9_]+)[^"]*">/ },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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