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
|
# File 'lib/checks/mediawiki.rb', line 6
def generate_checks(url)
[
{
:type => "application",
:vendor =>"MediaWiki",
:product =>"MediaWiki",
:match_details =>"powered by tag",
:match_type => :content_body,
:version => nil,
:match_content => /<a href="\/\/www.mediawiki.org\/">Powered by MediaWiki<\/a>/,
:paths => ["#{url}"]
},
{
:type => "application",
:vendor =>"MediaWiki",
:product =>"MediaWiki",
:match_details =>"generator tag",
:match_type => :content_body,
:match_content => /<meta name=\"generator\" content=\"MediaWiki/,
:version => nil,
:dynamic_version => lambda { |x| _first_body_capture(x,/<meta name=\"generator\" content=\"MediaWiki\ (.*?)\"\/>/) },
:examples => ["http://2004.appsecusa.org:80"],
:verify => ["b3dhc3AjSW50cmlndWU6OkVudGl0eTo6VXJpI2h0dHA6Ly8yMDA0LmFwcHNlY3VzYS5vcmc6ODA="],
:paths => ["#{url}"]
}
]
end
|