Sha256: f1763f6390044a84abbee81f2908ff68b78b8748125f3c5ca52afe06147f335b

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 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-18 # Andrew Horton
# Added website parameter
#
##
WhatWeb::Plugin.define "Barracuda-Load-Balancer" do
  @author = "Aung Khant <http://yehg.net/>" # 2011-02-04
  @version = "0.2"
  @description = "Barracuda Load Balancer"
  @website = "http://www.barracudanetworks.com/ns/products/balancer_overview.php"

  @matches = [
    { name: "BNI__BARRACUDA_LB_COOKIE cookie", text: "BNI__BARRACUDA_LB_COOKIE", search: "headers[set-cookie]" },
    { name: "BNI_BARRACUDA_LB_COOKIE cookie", text: "BNI_BARRACUDA_LB_COOKIE", search: "headers[set-cookie]" },
  ]

  def passive(target)
    m = []

    if /BARRACUDA_LB_COOKIE=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/i.match?(target.headers["set-cookie"])
      internal_ip = target.headers["set-cookie"].scan(/BARRACUDA_LB_COOKIE=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/i)
      m << { string: 'Internal IP: ' + internal_ip.to_s }
    end
    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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