intrigue-ident 0.44 → 0.45

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: c1799c39ceec8d33c4b54ff83233ce21318f16a0d9d5ef7720a056a42b034ed9
4
- data.tar.gz: 398d2de6693b7b0c9a80290d39321b9c894d464ce8859bc0e113773d18d4f016
3
+ metadata.gz: 9b1b97863acc31e71a2d6b171da778a5d45b4342862180dead9bda62b232d8f2
4
+ data.tar.gz: 97594e1c8c1f4b9bad71a9dfad4e34c0ce850c4b2bbf41717551e05084bddc06
5
5
  SHA512:
6
- metadata.gz: 5e7b84da0b5914dafb29e2e37e04e50f1f0cf262331abe5a2e2472722313d2f494e041b248532b3289c938a71975f6a8be8d401c14765b64996bb2d80f5d31ef
7
- data.tar.gz: 40812edabfee98674facfb1bbea39e1522a9826bab3204b78e625480ec2902b8f94f2f4934101ae74dd0fd5143b17f748929082f3a14eabf27320607e098f7f2
6
+ metadata.gz: 9f1b1d0d0e4617acc28fb6a4f4513797f0ccaf47ca29b0df520d24485b218b52d55e03bf7f2bd6c4deef283058fe0f7a2985ab4f20704bf6b7bede25cce09749
7
+ data.tar.gz: 7f4f07abce481ba854e26822ec592bd5c44e2542713824cf91bbe0ad5e07ff1ab502d58587d93eba7beaea8e7bc2eb3f315f47be2b188e78c89d338a98bacbbc
data/lib/checks/amazon.rb CHANGED
@@ -14,7 +14,7 @@ class Amazon < Intrigue::Ident::Check::Base
14
14
  :type => :content_headers,
15
15
  :content => /awselb\/\d.\d/,
16
16
  :hide => true,
17
- :dynamic_version => lambda { |x| x[:headers].match(/awselb\/(\d.\d)/).captures[0] },
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
19
  :paths => ["#{uri}"]
20
20
  }
@@ -6,24 +6,22 @@ class AspNet < Intrigue::Ident::Check::Base
6
6
  def generate_checks(uri)
7
7
  [
8
8
  {
9
- :accept => "Intrigue::Entity::Uri",
10
9
  :name => "ASP.NET",
11
10
  :description => "ASP.Net Error Message",
12
11
  :version => nil,
13
12
  :tags => ["error_page"],
14
13
  :type => :content_body,
15
14
  :content => /^.*ASP.NET is configured.*$/i,
16
- :dynamic_version => lambda{|x| x.body.scan(/ASP.NET Version:(.*)$/)[0].first.chomp },
15
+ :dynamic_version => lambda{|x| x["details"]["hidden_response_data"].scan(/ASP.NET Version:(.*)$/)[0].first.chomp },
17
16
  :paths => ["#{uri}"]
18
17
  },
19
18
  {
20
- :accept => "Intrigue::Entity::Uri",
21
19
  :name => "ASP.NET",
22
20
  :description => "X-AspNet Header",
23
21
  :version => nil,
24
22
  :type => :content_headers,
25
23
  :content => /^x-aspnet-version:.*$/i,
26
- :dynamic_version => lambda{|x| x.body.scan(/ASP.NET Version:(.*)$/i)[0].first.chomp if x.body.scan(/ASP.NET Version:(.*)$/i)[0] },
24
+ :dynamic_version => lambda{|x| x["details"]["hidden_response_data"].scan(/ASP.NET Version:(.*)$/i)[0].first.chomp if x.body.scan(/ASP.NET Version:(.*)$/i)[0] },
27
25
  :paths => ["#{uri}"]
28
26
  },
29
27
  {
@@ -33,7 +31,6 @@ class AspNet < Intrigue::Ident::Check::Base
33
31
  :type => :content_cookies,
34
32
  :content => /ASPSESSIONID.*$/i,
35
33
  :paths => ["#{uri}"]
36
- #:dynamic_version => lambda{|x| x.each_header{|k,v| return v if k =~ /x-aspnet-version/ } }
37
34
  },
38
35
  {
39
36
  :name => "ASP.NET",
@@ -42,7 +39,6 @@ class AspNet < Intrigue::Ident::Check::Base
42
39
  :type => :content_cookies,
43
40
  :content => /ASP.NET_SessionId.*$/i,
44
41
  :paths => ["#{uri}"]
45
- #:dynamic_version => lambda{|x| x.each_header{|k,v| return v if k =~ /x-aspnet-version/ } }
46
42
  },
47
43
  {
48
44
  :name => "ASP.NET MVC",
@@ -51,7 +47,6 @@ class AspNet < Intrigue::Ident::Check::Base
51
47
  :type => :content_headers,
52
48
  :content => /x-aspnetmvc-version/i,
53
49
  :paths => ["#{uri}"]
54
- #:dynamic_version => lambda{|x| x.each_header{|k,v| return v if k =~ /x-aspnetmvc-version/ } }
55
50
  },
56
51
  {
57
52
  :name => "ASP.NET",
@@ -60,7 +55,6 @@ class AspNet < Intrigue::Ident::Check::Base
60
55
  :type => :content_body,
61
56
  :content => /WebResource.axd?d=/i,
62
57
  :paths => ["#{uri}"]
63
- #:dynamic_version => lambda{|x| x.each_header{|k,v| return v if k =~ /WebResource.axd?d=/ } }
64
58
  }
65
59
  ]
66
60
  end
@@ -28,8 +28,8 @@ class Atlassian < Intrigue::Ident::Check::Base
28
28
  :type => :content_body,
29
29
  :content => /FishEye and Crucible/,
30
30
  :dynamic_version => lambda{|x|
31
- if x.body.scan(/Log in to FishEye and Crucible (.*)\</)[0]
32
- x.body.scan(/Log in to FishEye and Crucible (.*)\</)[0].first
31
+ if x["details"]["hidden_response_data"].scan(/Log in to FishEye and Crucible (.*)\</)[0]
32
+ x["details"]["hidden_response_data"].scan(/Log in to FishEye and Crucible (.*)\</)[0].first
33
33
  end
34
34
  },
35
35
  :paths => ["#{uri}"]
@@ -41,8 +41,8 @@ class Atlassian < Intrigue::Ident::Check::Base
41
41
  :type => :content_cookies,
42
42
  :content => /atlassian.xsrf.token/i,
43
43
  :dynamic_version => lambda{ |x|
44
- if x.body.scan(/<span id="footer-build-information">(.*)-<span/)[0]
45
- x.body.scan(/<span id="footer-build-information">(.*)-<span/)[0].first.gsub("(","")
44
+ if x["details"]["hidden_response_data"].scan(/<span id="footer-build-information">(.*)-<span/)[0]
45
+ x["details"]["hidden_response_data"].scan(/<span id="footer-build-information">(.*)-<span/)[0].first.gsub("(","")
46
46
  end
47
47
  },
48
48
  :paths => ["#{uri}"]
data/lib/checks/chef.rb CHANGED
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_body,
13
13
  :content => /<title>Chef Server<\/title>/,
14
- :dynamic_version => lambda{|x| x.body.scan(/Version\ (.*)\ &mdash;/)[0].first },
14
+ :dynamic_version => lambda{|x| x["details"]["hidden_response_data"].scan(/Version\ (.*)\ &mdash;/)[0].first },
15
15
  :paths => ["#{uri}"]
16
16
  },
17
17
  {
data/lib/checks/drupal.rb CHANGED
@@ -12,7 +12,7 @@ module Check
12
12
  :type => :content_body,
13
13
  :content => /Drupal/,
14
14
  :dynamic_version => lambda { |x|
15
- version = x.body.scan(/^(Drupal.*)[ ,<\.].*$/)[0]
15
+ version = x["details"]["hidden_response_data"].scan(/^(Drupal.*)[ ,<\.].*$/)[0]
16
16
  return version.first.gsub("Drupal ","").gsub(",","").chomp if version
17
17
  },
18
18
  :paths => ["#{uri}/CHANGELOG.txt"]
@@ -11,7 +11,7 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_headers,
13
13
  :content => /x-hudson/i,
14
- :dynamic_version => lambda { |x| x["x-hudson"] },
14
+ :dynamic_version => lambda { |x| x["details"]["headers"].select{|y| y =~ /x-hudson/}.split(":").last },
15
15
  :paths => ["#{uri}"]
16
16
  },
17
17
  {
@@ -28,7 +28,7 @@ module Check
28
28
  :version => nil,
29
29
  :type => :content_headers,
30
30
  :content => /x-jenkins/i,
31
- :dynamic_version => lambda { |x| x["x-jenkins"] },
31
+ :dynamic_version => lambda { |x| x["details"]["headers"].select{|y| y =~ /x-jenkins/}.split(":").last },
32
32
  :paths => ["#{uri}"]
33
33
  }
34
34
  ]
@@ -37,7 +37,7 @@ module Check
37
37
  :version => nil,
38
38
  :type => :content_headers,
39
39
  :content => /x-owa-version/,
40
- :dynamic_version => lambda { |x| x["x-owa-version"] },
40
+ :dynamic_version => lambda { |x| x["details"]["headers"].select{|y| y =~ /x-owa-version/}.split(":").last },
41
41
  :paths => ["#{uri}"]
42
42
  },
43
43
  {
data/lib/checks/spring.rb CHANGED
@@ -5,15 +5,6 @@ module Check
5
5
 
6
6
  def generate_checks(uri)
7
7
  [
8
- {
9
- :name => "Spring",
10
- :description => "Standard Spring Error Message",
11
- :type => :content_body,
12
- :version => nil,
13
- :content => /{"timestamp":\d.*,"status":999,"error":"None","message":"No message available"}/,
14
- :references => ["https://github.com/spring-projects/spring-boot"],
15
- :paths => ["#{uri}/donotbealarmedthisisjusttestingagenericerrorpage"]
16
- },
17
8
  {
18
9
  :name => "Spring",
19
10
  :description => "Standard Spring MVC error page",
@@ -12,7 +12,7 @@ module Check
12
12
  :version => nil,
13
13
  :type => :content_body,
14
14
  :content => /Telerik.Sitefinity.Resources/,
15
- :dynamic_version => lambda { |x| x.body.match(/Version=([\d\.]+),/).captures[0] },
15
+ :dynamic_version => lambda { |x| x["details"]["hidden_response_data"].match(/Version=([\d\.]+),/).captures[0] },
16
16
  :verify_sites => [],
17
17
  :paths => ["#{uri}"]
18
18
  }
data/lib/checks/tomcat.rb CHANGED
@@ -11,7 +11,7 @@ module Check
11
11
  :type => :content_body,
12
12
  :version => nil,
13
13
  :content => /<title>Apache Tomcat/,
14
- :dynamic_version => lambda{|x| x.body.scan(/<title>(.*)<\/title>/)[0].first.gsub("Apache Tomcat/","").gsub(" - Error report","").chomp },
14
+ :dynamic_version => lambda{|x| x["details"]["hidden_response_data"].scan(/<title>(.*)<\/title>/)[0].first.gsub("Apache Tomcat/","").gsub(" - Error report","").chomp },
15
15
  :paths => ["#{uri}"]
16
16
  }
17
17
  ]
@@ -11,11 +11,6 @@ module Check
11
11
  :version => nil,
12
12
  :type => :content_headers,
13
13
  :content => /via: [0-9]\.[0-9] varnish/i,
14
- :dynamic_version => lambda{ |x|
15
- m = nil
16
- x.each_header{|h,v| m = v if (h == "via" && v =~ /varnish/) }
17
- m.gsub("varnish ","") if m
18
- },
19
14
  :paths => ["#{uri}"]
20
15
  }
21
16
  ]
@@ -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.44
14
+ VERSION=0.45
15
15
 
16
16
  def generate_requests_and_check(url)
17
17
 
@@ -138,7 +138,7 @@ module Intrigue
138
138
  "hidden": false,
139
139
  "detail_string": "Server: | App: | Title: Index page",
140
140
  "details": {
141
- "uri": "http://69.162.37.69:80",
141
+ "uri": "http://69.112.37.69:80",
142
142
  "code": "200",
143
143
  "port": 80,
144
144
  "forms": false,
@@ -149,7 +149,7 @@ module Intrigue
149
149
  "scripts": [],
150
150
  "products": [],
151
151
  "protocol": "tcp",
152
- "ip_address": "69.162.37.69",
152
+ "ip_address": "69.112.37.69",
153
153
  "javascript": [],
154
154
  "fingerprint": [],
155
155
  "api_endpoint": false,
@@ -164,12 +164,6 @@ module Intrigue
164
164
  "hidden_response_data": "",
165
165
  "hidden_screenshot_contents": """
166
166
  },
167
- "task_results": [{
168
- "id": 32,
169
- "name": "masscan_scan_on_69.162.0.0/18",
170
- "base_entity_name": "69.162.0.0/18",
171
- "base_entity_type": "Intrigue::Entity::NetBlock"
172
- }],
173
167
  "generated_at": "2018-07-04T03:43:11+00:00"
174
168
  }'
175
169
  =end
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.44'
4
+ version: '0.45'
5
5
  platform: ruby
6
6
  authors:
7
7
  - jcran