Sha256: 0036b9f46d23622ae495f146a55cbe16a6d4c267484413efbbb9f45a40ad0aa1

Contents?: true

Size: 1.7 KB

Versions: 6

Compression:

Stored size: 1.7 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 "Jenkins" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2012-02-23
  @version = "0.1"
  @description = "Jenkins is an application that monitors executions of repeated jobs, such as building a software project or jobs run by cron."
  @website = "http://jenkins-ci.org/"

  # ShodanHQ results as at 2012-02-23 #
  # 100 for x-jenkins

  # Google results as at 2012-02-23 #
  # 20 for intitle:"Jenkins" "Remember me on this computer" "Jenkins ver"
  # 11 for inurl:":8080/jenkins/job/"

  # Dorks #
  @dorks = [
    'intitle:"Jenkins" "Remember me on this computer" "Jenkins ver"'
  ]

  # Matches #
  @matches = [

    # JavaScript
    { regexp: /<script>var isRunAsTest=false; var rootURL="[^"]*";<\/script>/ },

    # Footer # Version Detection
    { version: /<\/span><a href="http:\/\/jenkins\-ci\.org\/">Jenkins ver\. ([^<]+)<\/a>/ },

    # x-hudson-theme
    { search: "headers[x-hudson-theme]", regexp: /^.*$/ },

    # x-instance-identity
    { search: "headers[x-instance-identity]", regexp: /^.*$/ },

    # x-hudson-cli-port
    { search: "headers[x-hudson-cli-port]", regexp: /^.*$/ },

    # x-jenkins # Version Detection
    { search: "headers[x-jenkins]", version: /^(.+)$/ },

    # x-hudson
    { search: "headers[x-hudson]", regexp: /^.*$/ },

    # x-jenkins-cli-port
    { search: "headers[x-jenkins-cli-port]", regexp: /^.*$/ },

    # x-ssh-endpoint
    { search: "headers[x-ssh-endpoint]", regexp: /^.*$/ },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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