# 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-19 # Andrew Horton # Replaced passive function with match ## WhatWeb::Plugin.define "Canon-Print-Server" do @author = "Brendan Coles " # 2011-03-07 @version = "0.2" @description = "Canon Print Server - Print servers connect printers directly to the network so that multiple PCs can share them." @website = "http://canon.com" # ShodanHQ results as at 2011-03-07 # # 1,142 for PRINT_SERVER WEB # 1,142 for PRINT_SERVER WEB 1.0 # Matches # @matches = [ # Manufacturer Link # Unknown Model { text: '' }, # Firmware Version Detection # Unknown Model { url: "/ps_stat.htm", firmware: /Hardware ID: [^<]{1,10}
Firmware Version: ([^<]{1,10})
Protocol ID: [^<]{1,10}
Default Name: [^<]{1,10}
Server Name: [^<]{1,10}
H\/W Address: [^<]{12}
/ }, # MAC Detection # Unknown Model { url: "/ps_stat.htm", string: /Hardware ID: [^<]{1,10}
Firmware Version: [^<]{1,10}
Protocol ID: [^<]{1,10}
Default Name: [^<]{1,10}
Server Name: [^<]{1,10}
H\/W Address: ([^<]{12})
/ }, # Default Logos { url: "/canongrp.gif", md5: "894c5a7115790dc428592752baa20d13" }, { url: "/canoninc.gif", md5: "3f780904c5f8e650d0fb0df6b5e28d6b" }, # Menu HTML # NetHawk { model: "Nethawk", text: '
[TCP/IP] [NetWare] [AppleTalk] [SMB]' }, # Model Detection # NetHawk { model: /
[\r\n]*

[\r\n]*(NetHawk N-111|NetHawk N500)<\/b><\/h1><\/center>/ }, # Model Detection # Meta Generator # NetHawk N-111 { text: '', model: "NetHawk N-111", certainty: 25 }, # HTTP server header { certainty: 25, version: /^PRINT_SERVER WEB ([\d\.]+)$/, search: "headers[server]" }, ] end