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.
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class PhpMyAdmin < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "PhpMyAdmin",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_cookies,
13
13
  :content => /phpMyAdmin=/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Rabbitmq < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "RabbitMQ",
@@ -11,7 +11,7 @@ module Check
11
11
  :type => :content_body,
12
12
  :version => nil,
13
13
  :content => /RabbitMQ Management/,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  },
16
16
  {
17
17
  :name => "RabbitMQ API",
@@ -19,7 +19,7 @@ module Check
19
19
  :type => :content_body,
20
20
  :version => nil,
21
21
  :content => /RabbitMQ Management HTTP API/,
22
- :paths => ["#{uri}/api"]
22
+ :paths => ["#{url}/api"]
23
23
  }
24
24
  ]
25
25
  end
data/lib/checks/spring.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Spring < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Spring",
@@ -11,7 +11,7 @@ module Check
11
11
  :type => :content_body,
12
12
  :version => nil,
13
13
  :content => /{"timestamp":\d.*,"status":999,"error":"None","message":"No message available"}/,
14
- :paths => ["#{uri}/error.json"]
14
+ :paths => ["#{url}/error.json"]
15
15
  }
16
16
  ]
17
17
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class TeamCity < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "TeamCity Continuous Integration",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_body,
13
13
  :content => /icons\/teamcity.black.svg/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Telerik < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Telerik Sitefinity",
@@ -14,7 +14,7 @@ module Check
14
14
  :content => /Telerik.Sitefinity.Resources/,
15
15
  :dynamic_version => lambda { |x| x["details"]["hidden_response_data"].match(/Version=([\d\.]+),/).captures[0] },
16
16
  :verify_sites => [],
17
- :paths => ["#{uri}"]
17
+ :paths => ["#{url}"]
18
18
  }
19
19
  ]
20
20
  end
data/lib/checks/tomcat.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Tomcat < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Apache Tomcat",
@@ -12,7 +12,7 @@ module Check
12
12
  :version => nil,
13
13
  :content => /<title>Apache Tomcat/,
14
14
  :dynamic_version => lambda{|x| x["details"]["hidden_response_data"].scan(/<title>(.*)<\/title>/)[0].first.gsub("Apache Tomcat/","").gsub(" - Error report","").chomp },
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 Varnish < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Varnish",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_headers,
13
13
  :content => /via: [0-9]\.[0-9] varnish/i,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end
data/lib/checks/vmware.rb CHANGED
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Vmware < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "VMWare Horizon",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_body,
13
13
  :content => /<title>VMware Horizon/,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class Wordpress < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "Wordpress",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_body,
13
13
  :content => /gmt_offset/,
14
- :paths => ["#{uri}/wp-json"]
14
+ :paths => ["#{url}/wp-json"]
15
15
  },
16
16
  {
17
17
  :name => "Wordpress",
@@ -20,7 +20,7 @@ module Check
20
20
  :version => "2.0",
21
21
  :type => :checksum_body,
22
22
  :checksum => "a306a72ce0f250e5f67132dc6bcb2ccb",
23
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
23
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
24
24
  },
25
25
  {
26
26
  :name => "Wordpress",
@@ -29,7 +29,7 @@ module Check
29
29
  :version => "2.1",
30
30
  :type => :checksum_body,
31
31
  :checksum => "4f04728cb4631a553c4266c14b9846aa",
32
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
32
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
33
33
  },
34
34
  {
35
35
  :name => "Wordpress",
@@ -38,7 +38,7 @@ module Check
38
38
  :version => "2.2",
39
39
  :type => :checksum_body,
40
40
  :checksum => "25e1e78d5b0c221e98e14c6e8c62084f",
41
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
41
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
42
42
  },
43
43
  {
44
44
  :name => "Wordpress",
@@ -47,7 +47,7 @@ module Check
47
47
  :version => "2.3",
48
48
  :type => :checksum_body,
49
49
  :checksum => "83c83d0f0a71bd57c320d93e59991c53",
50
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
50
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
51
51
  },
52
52
  {
53
53
  :name => "Wordpress",
@@ -56,7 +56,7 @@ module Check
56
56
  :version => "2.5",
57
57
  :type => :checksum_body,
58
58
  :checksum => "7293453cf0ff5a9a4cfe8cebd5b5a71a",
59
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
59
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
60
60
  },
61
61
  {
62
62
  :name => "Wordpress",
@@ -65,7 +65,7 @@ module Check
65
65
  :version => "2.6",
66
66
  :type => :checksum_body,
67
67
  :checksum => "61740709537bd19fb6e03b7e11eb8812",
68
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
68
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
69
69
  },
70
70
  {
71
71
  :name => "Wordpress",
@@ -74,7 +74,7 @@ module Check
74
74
  :version => "2.7",
75
75
  :type => :checksum_body,
76
76
  :checksum => "e6bbc53a727f3af003af272fd229b0b2",
77
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
77
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
78
78
  },
79
79
  {
80
80
  :name => "Wordpress",
@@ -83,7 +83,7 @@ module Check
83
83
  :version => "2.7.1",
84
84
  :type =>:checksum_body,
85
85
  :checksum => "e6bbc53a727f3af003af272fd229b0b2",
86
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
86
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
87
87
  },
88
88
  {
89
89
  :name => "Wordpress",
@@ -92,7 +92,7 @@ module Check
92
92
  :version => "2.9.1",
93
93
  :type => :checksum_body,
94
94
  :checksum => "128e75ed19d49a94a771586bf83265ec",
95
- :paths => ["#{uri}/wp-includes/js/tinymce/tiny_mce.js"]
95
+ :paths => ["#{url}/wp-includes/js/tinymce/tiny_mce.js"]
96
96
  }
97
97
  ]
98
98
  end
@@ -100,7 +100,7 @@ module Check
100
100
 
101
101
  =begin
102
102
  all_checks = [{
103
- :uri => "#{uri}",
103
+ :url => "#{url}",
104
104
  :checklist => [
105
105
  {
106
106
  :name => "Yoast Wordpress SEO Plugin", # won't be used if we have
@@ -3,7 +3,7 @@ module Ident
3
3
  module Check
4
4
  class WpEngine < Intrigue::Ident::Check::Base
5
5
 
6
- def generate_checks(uri)
6
+ def generate_checks(url)
7
7
  [
8
8
  {
9
9
  :name => "WPEngine",
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_body,
13
13
  :content => /This domain is successfully pointed at WP Engine, but is not configured for an account on our platform./,
14
- :paths => ["#{uri}"]
14
+ :paths => ["#{url}"]
15
15
  }
16
16
  ]
17
17
  end
@@ -11,7 +11,7 @@ Dir["#{check_folder}/*.rb"].each { |file| require_relative file }
11
11
  module Intrigue
12
12
  module Ident
13
13
 
14
- VERSION=0.46
14
+ VERSION=0.47
15
15
 
16
16
  def generate_requests_and_check(url)
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intrigue-ident
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.46'
4
+ version: '0.47'
5
5
  platform: ruby
6
6
  authors:
7
7
  - jcran
@@ -63,6 +63,7 @@ files:
63
63
  - Gemfile.lock
64
64
  - intrigue-ident.gemspec
65
65
  - lib/check_factory.rb
66
+ - lib/checks/adobe.rb
66
67
  - lib/checks/akamai.rb
67
68
  - lib/checks/amazon.rb
68
69
  - lib/checks/aruba.rb
@@ -94,6 +95,7 @@ files:
94
95
  - lib/checks/mediawiki.rb
95
96
  - lib/checks/microsoft.rb
96
97
  - lib/checks/nagios.rb
98
+ - lib/checks/nginx.rb
97
99
  - lib/checks/oracle.rb
98
100
  - lib/checks/palo_alto.rb
99
101
  - lib/checks/pardot.rb