"Fossies" - the Fresh Open Source Software Archive 
Member "WhatWeb-0.5.5/plugins-disabled/address.rb" (15 Jan 2021, 700 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.
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 "Address"
9 authors [
10 "Brendan Coles <bcoles@gmail.com>", # 2011-01-25
11 ]
12 version "0.1"
13 description "This plugin identifies the 'address' (X)HTML/XML element and extracts its value."
14
15 # Google rsults as at 2011-01-25 #
16 # 124,000,000 for "Apache" "Server at" intitle:"index of"
17
18
19
20 # Matches #
21 matches [
22
23 # Extract address value
24 { :string=>/<address>([^<]*)<\/address>/i },
25 { :string=>/<address value="([^"]+)"[^>]*>/i },
26
27 ]
28
29 end
30
31