File: Niagara-Web-Server.rb

package info (click to toggle)
whatweb 0.4.8~git20120606-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,956 kB
  • sloc: ruby: 53,738; sh: 577; makefile: 34
file content (46 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
##
# 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
##
Plugin.define "Niagara-Web-Server" do
author "Brendan Coles <bcoles@gmail.com>" # 2010-11-01
version "0.1"
description "Niagara Web Server"

# 8073 ShodanHQ results for "Niagara web server"
examples %w|
204.38.42.28
129.240.197.206
199.79.254.204
24.240.168.154
166.66.68.109
12.50.82.185
173.14.85.126
165.138.178.71
65.103.138.230
173.162.64.97
68.185.48.215
74.175.101.244
|

# Passive #
def passive
	m=[]

	# HTTP Server Header
	m << { :version=>@headers["server"].scan(/Niagara Web Server\/([\d\.]+)/).flatten } if @headers["server"] =~ /Niagara Web Server\/([\d\.]+)/

	# HTTP Niagara-Release Header
	m << { :version=>@headers["niagara-release"].to_s } unless @headers["niagara-release"].nil?

	# HTTP Niagara-ffs Header
	m << { :name=>"Niagara-ffs HTTP Header" } unless @headers["niagara-ffs"].nil?

	m

end

end