rex-exploitation 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ff8931f96f0a7c2dff501bfeeebbddd006507c9
4
- data.tar.gz: 0a4b77913a6a10408cda458d91a76f1eaca9c41e
3
+ metadata.gz: ca75c92f579d8335d857047446dcea6c5f05653b
4
+ data.tar.gz: e4365ca5c0a47ebe981dfcabb8a9316b2af03722
5
5
  SHA512:
6
- metadata.gz: 07fc38f827fe008b6a8bf9d27137072a8e62d0c95965d3a278b71aa5113dfbe115ce853ca07ad7a41eed3b0b2920d7d410a69cab32d209dde175ba41800db812
7
- data.tar.gz: ce65a1bb5821a09785d1309776c7c722bddda7286bd373352e61b504b9ae8544cb997b0dfc5afff6d5997d1d5662ca0811ad8000ea2b46f7d5dd2a5d7d38cb68
6
+ metadata.gz: 97df28729572808c1d6c91a70f22715fbdfeae4f0319644a648a043d05bb443f519b285dab4e7d2889e67dc7bfc39d4d3fc0ac7d8bca754f1193c02227064550
7
+ data.tar.gz: 27aa3b342eb255fef8b38d788060c3cb64384f82ef3f910fd6ea300285a178f1ded03bee7aa85fef75a52db74733b523127e5d336b4ff45add54d84490698118
checksums.yaml.gz.sig CHANGED
Binary file
data/data/js/detect/os.js CHANGED
@@ -63,6 +63,12 @@ os_detect.getVersion = function(){
63
63
  return input.type == input_type;
64
64
  }
65
65
 
66
+ var syntax_is_valid = function(code) {
67
+ try { eval(code); return true;}
68
+ catch (err) {}
69
+ return false;
70
+ }
71
+
66
72
  //--
67
73
  // Client
68
74
  //--
@@ -221,7 +227,59 @@ os_detect.getVersion = function(){
221
227
  // Thanks to developer.mozilla.org "Firefox for developers" series for most
222
228
  // of these.
223
229
  // Release changelogs: http://www.mozilla.org/en-US/firefox/releases/
224
- if ('closest' in Element.prototype) {
230
+ if ('Symbol' in window && 'toStringTag' in window.Symbol) {
231
+ ua_version = '51.0';
232
+ }
233
+ else if ('Object' in window && 'getOwnPropertyDescriptors' in window.Object) {
234
+ ua_version = '50.0';
235
+ }
236
+ else if ('SpeechSynthesis' in window) {
237
+ ua_version = '49.0';
238
+ }
239
+ else if ('padStart' in String.prototype) {
240
+ ua_version = '48.0';
241
+ }
242
+ else if ('TextTrack' in window &&
243
+ 'oncuechange' in window.TextTrack.prototype) {
244
+ ua_version = '47.0';
245
+ }
246
+ else if ('elementsFromPoint' in document) {
247
+ ua_version = '46.0';
248
+ }
249
+ else if (syntax_is_valid('class A {}')) {
250
+ ua_version = '45.0';
251
+ }
252
+ else if ('Symbol' in window && 'toPrimitive' in Symbol) {
253
+ ua_version = '44.0';
254
+ }
255
+ else if (css_is_valid('hyphens', 'hyphens', 'auto')) {
256
+ ua_version = '43.0';
257
+ }
258
+ else if (typeof(ImageBitmap) == 'function') {
259
+ ua_version = '42.0';
260
+ }
261
+ else if (typeof(MessageChannel) == 'function') {
262
+ ua_version = '41.0';
263
+ }
264
+ else if (typeof(AudioContext) == 'function' &&
265
+ typeof(new AudioContext().createBufferSource().detune) == 'object') {
266
+ ua_version = '40.0';
267
+ }
268
+ else if (css_is_valid('scroll-snap-points-x', 'scrollSnapPointsX', 'unset')) {
269
+ ua_version = '39.0';
270
+ }
271
+ else if ('createElement' in document &&
272
+ document.createElement('picture') &&
273
+ document.createElement('picture').constructor === window['HTMLPictureElement']) {
274
+ ua_version = '38.0';
275
+ }
276
+ else if (css_is_valid('display', 'display', 'contents')) {
277
+ ua_version = '37.0';
278
+ }
279
+ else if (css_is_valid('isolation', 'isolation', 'isolate')) {
280
+ ua_version = '36.0';
281
+ }
282
+ else if ('closest' in Element.prototype) {
225
283
  ua_version = '35.0';
226
284
  } else if ('matches' in Element.prototype) {
227
285
  ua_version = '34.0';
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Exploitation
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-exploitation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
@@ -88,7 +88,7 @@ cert_chain:
88
88
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
89
89
  8mVuTXnyJOKRJA==
90
90
  -----END CERTIFICATE-----
91
- date: 2017-01-03 00:00:00.000000000 Z
91
+ date: 2017-01-31 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: bundler
metadata.gz.sig CHANGED
Binary file