6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/checks/yaws.rb', line 6
def generate_checks(url)
[
{
:type => "application",
:vendor =>"Yaws",
:product =>"Yaws",
:match_details =>"server header",
:references => ["https://en.wikipedia.org/wiki/Yaws_(web_server)"],
:match_type => :content_headers,
:match_content => /server: Yaws/i,
:dynamic_version => lambda { |x|
(x,/server: Yaws (.*)/i)
},
:examples => ["https://158.85.224.176:443"],
:verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwczovLzE1OC44NS4yMjQuMTc2OjQ0Mw=="],
:paths => ["#{url}"]
}
]
end
|