intrigue-ident 0.46 → 0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 446a3c91d0244f9d7646ef00468943b3486609c9ac5213f271179ff9819e23c1
4
- data.tar.gz: db0e8732cf48204a3a257d51a5bd98b6195c554c0f417a4797b20e4022904d34
3
+ metadata.gz: 77728483a277c380646ceb6c0253353f177d6348cb908c389a23f831ef23444b
4
+ data.tar.gz: 340d97ca26a82a85d91a018a35b8449f562275e0d2abffa43579083d0e0a616a
5
5
  SHA512:
6
- metadata.gz: fdda2e3202b386f789d0482b8ae686c9b2d255f9eb3f8516da7d4b98cd452cd7ec9234606c6f6034329420479d708dfc8b1914ff1603feea10e4cef2d97b2ea4
7
- data.tar.gz: 4f733df83147dc001150d764e69720da0e1ea140dc47f9ae769a96f66e244b0e7697df7153581ba42c909489dd3e3097b030bffb479651324dbc09e74fad5fb6
6
+ metadata.gz: 9fe7e89e0291cdce2f2d389ca1a0b005e471d7301b1faa960be34f8d700796f63dcb4705d19008bdcbe51bf64863fd9aedaec0994d356fd7a8a695d95d7a5d42
7
+ data.tar.gz: 31ac3e55421f512c810696e62caed0a7d3f30bdae713e1764cc11d36f4d027068e976e871002750ad7234bdd453a80e16f3d960696fcfe5c0200f30b9738a34d
@@ -0,0 +1,23 @@
1
+ module Intrigue
2
+ module Ident
3
+ module Check
4
+ class Adobe < Intrigue::Ident::Check::Base
5
+
6
+ def generate_checks(url)
7
+ [
8
+ {
9
+ :name => "Adobe Coldfusion",
10
+ :description => "Adobe Coldfusion",
11
+ :version => nil,
12
+ :type => :content_cookies,
13
+ :content => /CFTOKEN=/,
14
+ :hide => false,
15
+ :examples => ["https://209.235.70.106:443"],
16
+ :paths => ["#{url}"]
17
+ }
18
+ ]
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
data/lib/checks/amazon.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Amazon < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Amazon ELB",
@@ -16,7 +16,7 @@ class Amazon < Intrigue::Ident::Check::Base
16
16
  :hide => true,
17
17
  :dynamic_version => lambda { |x| x["details"]["headers"].join("\n").match(/awselb\/(\d.\d)/).captures[0] },
18
18
  :verify_sites => ["http://52.4.103.22:80"],
19
- :paths => ["#{uri}"]
19
+ :paths => ["#{url}"]
20
20
  }
21
21
  ]
22
22
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Atlassian < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Atlassian BitBucket",
@@ -11,7 +11,7 @@ class Atlassian < Intrigue::Ident::Check::Base
11
11
  :version => nil,
12
12
  :type => :content_body,
13
13
  :content => /com.atlassian.bitbucket.server/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  },
16
16
  {
17
17
  :name => "Atlassian Confluence",
@@ -19,7 +19,7 @@ class Atlassian < Intrigue::Ident::Check::Base
19
19
  :version => nil,
20
20
  :type => :content_headers,
21
21
  :content => /X-Confluence-Request-Time/i,
22
- :paths => ["#{uri}"]
22
+ :paths => ["#{url}"]
23
23
  },
24
24
  {
25
25
  :name => "Atlassian Crucible",
@@ -32,7 +32,16 @@ class Atlassian < Intrigue::Ident::Check::Base
32
32
  x["details"]["hidden_response_data"].scan(/Log in to FishEye and Crucible (.*)\</)[0].first
33
33
  end
34
34
  },
35
- :paths => ["#{uri}"]
35
+ :paths => ["#{url}"]
36
+ },
37
+ {
38
+ :name => "Atlassian Hipchat",
39
+ :description => "Atlassian Hipchat",
40
+ :version => nil,
41
+ :type => :content_body,
42
+ :content => /\$\(document\).trigger\('hipchat.load'\);/,
43
+ :examples => ["https://api.appfire.com:443"],
44
+ :paths => ["#{url}"]
36
45
  },
37
46
  {
38
47
  :name => "Atlassian Jira",
@@ -45,7 +54,7 @@ class Atlassian < Intrigue::Ident::Check::Base
45
54
  x["details"]["hidden_response_data"].scan(/<span id="footer-build-information">(.*)-<span/)[0].first.gsub("(","")
46
55
  end
47
56
  },
48
- :paths => ["#{uri}"]
57
+ :paths => ["#{url}"]
49
58
  }
50
59
  ]
51
60
  end
data/lib/checks/chef.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Chef < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Chef Server",
@@ -12,7 +12,7 @@ module Check
12
12
  :type => :content_body,
13
13
  :content => /<title>Chef Server<\/title>/,
14
14
  :dynamic_version => lambda{|x| x["details"]["hidden_response_data"].scan(/Version\ (.*)\ &mdash;/)[0].first },
15
- :paths => ["#{uri}"]
15
+ :paths => ["#{url}"]
16
16
  },
17
17
  {
18
18
  :name => "Chef Server",
@@ -20,7 +20,7 @@ module Check
20
20
  :version => nil,
21
21
  :type => :content_cookies,
22
22
  :content => /chef-manage/i,
23
- :paths => ["#{uri}"]
23
+ :paths => ["#{url}"]
24
24
  }
25
25
  ]
26
26
  end
data/lib/checks/cisco.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Cisco < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Cisco SSL VPN",
@@ -13,7 +13,7 @@ module Check
13
13
  :type => :content_cookies,
14
14
  :content => /webvpn/,
15
15
  :hide => false,
16
- :paths => ["#{uri}"]
16
+ :paths => ["#{url}"]
17
17
  },
18
18
  {
19
19
  :name => "Cisco SSL VPN",
@@ -21,10 +21,10 @@ module Check
21
21
  :tags => ["tech:vpn"],
22
22
  :version => nil,
23
23
  :type => :content_body,
24
- :content => /document.location.replace\(\"\/\+CSCOE\+\/logon.html\"\);/,
25
- :examples => ["https://12.237.144.250:443"],
24
+ :content => /document.location.replace\(\"\/\+CSCOE\+\/logon.html\"\)/,
25
+ :examples => ["https://12.237.144.250:443", "http://12.150.243.178:80"],
26
26
  :hide => false,
27
- :paths => ["#{uri}"]
27
+ :paths => ["#{url}"]
28
28
  },
29
29
  {
30
30
  :name => "Cisco Router",
@@ -33,7 +33,7 @@ module Check
33
33
  :type => :content_headers,
34
34
  :content => /server: cisco-IOS/,
35
35
  :hide => false,
36
- :paths => ["#{uri}"]
36
+ :paths => ["#{url}"]
37
37
  }
38
38
  ]
39
39
  end
data/lib/checks/citrix.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Citrix < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Citrix Netscaler Gateway",
@@ -13,7 +13,7 @@ module Check
13
13
  :type => :content_body,
14
14
  :content => /<title>Netscaler Gateway/,
15
15
  :hide => false,
16
- :paths => ["#{uri}"]
16
+ :paths => ["#{url}"]
17
17
  }
18
18
  ]
19
19
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Cloudflare < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Cloudflare",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => "",
12
12
  :type => :content_cookies,
13
13
  :content => /__cfduid/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  },
16
16
  {
17
17
  :name => "Cloudflare",
@@ -19,7 +19,7 @@ module Check
19
19
  :version => "",
20
20
  :type => :content_headers,
21
21
  :content => /cloudflare-nginx/i,
22
- :paths => ["#{uri}"]
22
+ :paths => ["#{url}"]
23
23
  },
24
24
  {
25
25
  :name => "Cloudflare",
@@ -29,7 +29,7 @@ module Check
29
29
  :type => :content_body,
30
30
  :content => /<title>Direct IP access not allowed \| Cloudflare/,
31
31
  :hide => true,
32
- :paths => ["#{uri}"]
32
+ :paths => ["#{url}"]
33
33
  },
34
34
  {
35
35
  :name => "Cloudflare",
@@ -39,7 +39,7 @@ module Check
39
39
  :type => :content_body,
40
40
  :content => /cferror_details/,
41
41
  :hide => true,
42
- :paths => ["#{uri}"]
42
+ :paths => ["#{url}"]
43
43
  },
44
44
  {
45
45
  :name => "Cloudflare",
@@ -48,7 +48,7 @@ module Check
48
48
  :type => :content_body,
49
49
  :content => /403\ Forbidden<\/h1><\/center>\n<hr><center>cloudflare<\/center>/,
50
50
  :hide => true,
51
- :paths => ["#{uri}"]
51
+ :paths => ["#{url}"]
52
52
  }
53
53
  ]
54
54
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Cloudfront < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Cloudfront - Error (Body)",
@@ -12,7 +12,7 @@ module Check
12
12
  :type => :content_body,
13
13
  :content => /ERROR: The request could not be satisfied/,
14
14
  :hide => true,
15
- :paths => ["#{uri}"]
15
+ :paths => ["#{url}"]
16
16
  },
17
17
  {
18
18
  :name => "Cloudfront - Error (Headers)",
@@ -21,7 +21,7 @@ module Check
21
21
  :type => :content_headers,
22
22
  :content => /Error from cloudfront/,
23
23
  :hide => true,
24
- :paths => ["#{uri}"]
24
+ :paths => ["#{url}"]
25
25
  },
26
26
  {
27
27
  :name => "Cloudfront - 403 (Body)",
@@ -30,7 +30,7 @@ module Check
30
30
  :type => :content_body,
31
31
  :content => /<h1>403 Forbidden<\/h1><\/center>\n<hr><center>cloudflare/,
32
32
  :hide => true,
33
- :paths => ["#{uri}"]
33
+ :paths => ["#{url}"]
34
34
  }
35
35
  ]
36
36
  end
data/lib/checks/cpanel.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Cpanel < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "cPanel Hosted - Missing Page",
@@ -12,7 +12,7 @@ module Check
12
12
  :type => :content_body,
13
13
  :content => /URL=\/cgi-sys\/defaultwebpage.cgi/,
14
14
  :hide => true,
15
- :paths => ["#{uri}"]
15
+ :paths => ["#{url}"]
16
16
  }
17
17
  ]
18
18
  end
data/lib/checks/django.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Django < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Django",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_body,
13
13
  :content => /<title>Log in \| Django site admin<\/title>/,
14
- :paths => ["#{uri}/admin"]
14
+ :paths => ["#{url}/admin"]
15
15
  }
16
16
  ]
17
17
  end
data/lib/checks/drupal.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Drupal < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Drupal",
@@ -15,7 +15,7 @@ module Check
15
15
  version = x["details"]["hidden_response_data"].scan(/^(Drupal.*)[ ,<\.].*$/)[0]
16
16
  return version.first.gsub("Drupal ","").gsub(",","").chomp if version
17
17
  },
18
- :paths => ["#{uri}/CHANGELOG.txt"]
18
+ :paths => ["#{url}/CHANGELOG.txt"]
19
19
  }
20
20
  ]
21
21
  end
data/lib/checks/f5.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class F5 < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "F5 BIG-IP APM",
@@ -13,7 +13,7 @@ module Check
13
13
  :type => :content_cookies,
14
14
  :content => /MRHSession/,
15
15
  :hide => false,
16
- :paths => ["#{uri}"]
16
+ :paths => ["#{url}"]
17
17
  }
18
18
  ]
19
19
  end
data/lib/checks/fastly.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Fastly < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Fastly",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => "",
12
12
  :type => :content_headers,
13
13
  :content => /x-fastly-backend-reqs/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end
@@ -3,25 +3,27 @@ module Ident
3
3
  module Check
4
4
  class Generic < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Unauthorized (401)",
10
10
  :description => "Generic Unauthorized",
11
11
  :tags => ["error_page"],
12
12
  :version => nil,
13
+ :hide => true,
13
14
  :type => :content_body,
14
15
  :content => /<STRONG>401 Unauthorized/,
15
- :paths => ["#{uri}"]
16
+ :paths => ["#{url}"]
16
17
  },
17
18
  {
18
19
  :name => "Content Missing (404)",
19
20
  :description => "Content Missing (404) - Could be an API, or just serving something at another location. TODO ... is this ECS-specific? (check header)",
20
21
  :tags => ["error_page"],
21
22
  :version => nil,
23
+ :hide => true,
22
24
  :type => :content_body,
23
25
  :content => /<title>404 - Not Found<\/title>/,
24
- :paths => ["#{uri}"]
26
+ :paths => ["#{url}"]
25
27
  }
26
28
  ]
27
29
  end
data/lib/checks/gitlab.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Gitlab < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Gitlab",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_cookies,
13
13
  :content => /_gitlab_session/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end
data/lib/checks/google.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Google < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Google",
@@ -12,7 +12,7 @@ module Check
12
12
  :version => "",
13
13
  :content => /The requested URL <code>\/<\/code> was not found on this server\./,
14
14
  :hide => true,
15
- :paths => ["#{uri}"]
15
+ :paths => ["#{url}"]
16
16
  }
17
17
  ]
18
18
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Grafana < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Grafana",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_cookies,
13
13
  :content => /grafana_sess/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end