Sha256: 65a94dbeff5a726e1fac5f245f447225b656c1fde2fca5c0992fec2531bab3fe

Contents?: true

Size: 1.37 KB

Versions: 6

Compression:

Stored size: 1.37 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-23 # Andrew Horton
# Moved patterns from passive function to matches[]
##
WhatWeb::Plugin.define "Zotonic" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-06-21
  @version = "0.2"
  @description = "Zotonic, The Erlang CMS - Zotonic is an open source content management system for people that want a fast, extensible, flexible and complete system for dynamic web sites. It is built from the ground up with rich internet applications and web publishing in mind."
  @website = "http://zotonic.com/"

  # ShodanHQ results as at 2011-06-21 #
  # 15 for z_pid z_sid
  # 13 for Zotonic

  @matches = [

    # Version Detection # HTTP Server Header
    { regexp: /Zotonic/, search: "headers[server]" },

    # Version Detection # HTTP Server Header
    { version: /Zotonic\/([^\s]+)/, search: "headers[server]" },

  ]

  # Passive #
  def passive(target)
    m = []

    # z_pid and z_sid cookies
    if target.headers["set-cookie"] =~ /z_pid=[^;]+;/ && target.headers["set-cookie"] =~ /z_sid=[^;]+;/
      m << { name: "z_pid and z_sid cookies" }
    end

    # Return passive matches
    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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