# 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 # 2011-03-19 # Brendan Coles # Updated regex ## WhatWeb::Plugin.define "Juniper-Load-Balancer" do @author = "Aung Khant " # 2011-02-04 @version = "0.2" @description = "Juniper Networks Application Acceleration and Load Balancing Platforms" @website = "http://juniper.net/ - Note: This will slow down your web app pentest scanning. Use only manual fuzzing with time throttling." # Passive # def passive(target) m = [] # Cookie m << { name: "cookie (rl-sticky-key)" } if target.headers["set-cookie"] =~ /rl\-sticky\-key/i # Via HTTP Header if /Juniper Networks Application Acceleration Platform/i.match?(target.headers["via"]) m << { name: "via header" } # Version Detection # Via HTTP Header if /Juniper Networks Application Acceleration Platform \- ([^<^\)]+)/i.match?(target.headers['via']) m << { version: target.headers['via'].scan(/Juniper Networks Application Acceleration Platform \- ([^<^\)]+)/i) } end end # Return passive matches m end end