Sha256: 42ea8dd687933829da65351ee023c335dd737387a0f07328bb3b46ae3ab5004f

Contents?: true

Size: 1.51 KB

Versions: 6

Compression:

Stored size: 1.51 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 # 2011-03-02 #
# Removed redundant capitalized target.headers["Server"] match
##
# Version 0.3 2011-03-16 by Andrew Horton
# Added cisco model detection

WhatWeb::Plugin.define "Cisco-IOS" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2010-10-26
  @version = "0.3"
  @description = "Cisco IOS (originally Internetwork Operating System) is the software used on the vast majority of Cisco Systems routers and current Cisco network switches. (Earlier switches ran CatOS.) IOS is a package of routing, switching, internetworking and telecommunications functions tightly integrated with a multitasking operating system. - More info: http://en.wikipedia.org/wiki/Cisco_IOS"

  # ShodanHQ results as at 2010-10-26 #
  # 284,567 for "server: cisco-IOS"

  # Matches #
  @matches = [

    # Model Detection
    { model: /\ssdmconfig-([^\.]+).cfg/ },
    { model: /\sc(\d+)(nm)?[^\-]*-\S+-mz\S+\.bin/ },

    # Directory
    { string: "Dir",     regexp: /<input type="hidden" name="DIRINFO" value="\s+Directory of archive:\// },
    { string: "DirFail", regexp: /<input type="hidden" name="DIRINFO" value="\s*(Command authorization failed|% Authorization failed)/ },

    # HTTP Server Header
    { search: "headers[server]", regexp: /^cisco-IOS/ },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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