"Fossies" - the Fresh Open Source Software Archive

Member "WhatWeb-0.5.5/plugins/airos.rb" (15 Jan 2021, 1377 Bytes) of package /linux/www/WhatWeb-0.5.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    1 ##
    2 # This file is part of WhatWeb and may be subject to
    3 # redistribution and commercial restrictions. Please see the WhatWeb
    4 # web site for more information on licensing and terms of use.
    5 # https://www.morningstarsecurity.com/research/whatweb
    6 ##
    7 Plugin.define do
    8 name "AirOS"
    9 authors [
   10   "Brendan Coles <bcoles@gmail.com>", # 2010-10-30
   11 ]
   12 version "0.1"
   13 description "AirOS is an intuitive, versatile, highly developed Ubiquiti firmware technology that resides on Ubiquiti Station products. It is exceptionally intuitive and was designed to require no training to operate. Behind the user interface is a powerful firmware architecture which enables hi-performance outdoor multipoint networking. "
   14 website "http://www.ubnt.com/airos"
   15 
   16 # ShodanHQ results as at 2010-10-30 #
   17 # 8,411 for "Set-Cookie:" "AIROS_SESSIONID" Path= Version=
   18 # 8,411 for "cookiechecker uri="
   19 
   20 
   21 
   22 matches [
   23 
   24 # Login page
   25 { :text=>"cache_images(['main_top.png', 'main.png', 'link.png', 'net.png', '4dv.png', 'srv.png', 'system.png', 'border.gif', 'spectr.gif']);" },
   26 
   27 ]
   28 
   29 # Passive # HTTP Header
   30 passive do
   31     m=[]
   32 
   33     # Cookie
   34     m << { :name=>"AIROS_SESSIONID Cookie" } if @headers["set-cookie"] =~ /AIROS_SESSIONID=[a-z0-9]{32}; Path=\/; Version=([\d\.]+)/
   35 
   36     # Location: /cookiechecker?uri=/
   37     m << { :name=>"Location HTTP Header", :status=>301 } if @headers["location"] =~ /\/cookiechecker\?uri=\//
   38 
   39     m
   40 
   41 end
   42 
   43 end
   44