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
|
# File 'lib/checks/webmin.rb', line 6
def generate_checks(url)
[
{
:type => "application",
:vendor =>"Webmin",
:product =>"MiniServ",
:match_details => "server header",
:match_type => :content_headers,
:references => [],
:match_content => /server: MiniServ/,
:version => nil,
:dynamic_version => lambda {|x| (x,/server: MiniServ\/(.*)/)},
:examples => ["http://158.85.208.126:8080"],
:verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vMTU4Ljg1LjIwOC4xMjY6ODA4MA=="],
:paths => ["#{url}"]
},
{
:type => "application",
:vendor =>"Webmin",
:product =>"Webmin",
:match_details => "page title",
:match_type => :content_body,
:references => [],
:match_content => /<title>Login to Webmin/,
:version => nil,
:examples => ["http://158.85.208.126:8080"],
:verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vMTU4Ljg1LjIwOC4xMjY6ODA4MA=="],
:paths => ["#{url}"]
}
]
end
|