/
netobjects_inc.rb
35 lines (35 loc) · 1.06 KB
/
netobjects_inc.rb
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
module Intrigue
module Ident
module Check
class NetObjects < Intrigue::Ident::Check::Base
def generate_checks(url)
[
{
type: "fingerprint",
category: "application",
tags: ["CMS"],
vendor: "NetObjects",
product: "Koken",
references: ["http://koken.me/"],
description: "NetObjects Koken - generator tag page reference",
version: nil,
match_logic: :all,
matches: [
{
match_type: :content_body,
match_content: /<meta name="generator" content="Koken (\d+(\.\d+)*)/i,
}
],
dynamic_version: lambda { |x|
_first_body_capture(x, /<meta name="generator" content="Koken (\d+(\.\d+)*)/i)
},
hide: false,
paths: [ { path: "#{url}", follow_redirects: true } ],
inference: true,
},
]
end
end
end
end
end