rex-text 0.2.16 → 0.2.17

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: 0711ef0fbfeac5d76e81b38059935440f5ef6d13
4
- data.tar.gz: 58626ff7efe22cb34624010cc2540ba6ded45b3f
3
+ metadata.gz: 54626bd02ea487efb1721fa1434c9f6ef00fa236
4
+ data.tar.gz: 152f0ff3a0d18ee8e846463ba63bbe95b39035c4
5
5
  SHA512:
6
- metadata.gz: 65095b537c518bb196b926106030f5110ceafb4d6ae948463f80b891e66c36415843f7b036b32a04bf3befc3751118035d4dacc651375385d515e856531497c5
7
- data.tar.gz: ae5bec90e93e11d2fdb4fd3290f46ca632e8b0cb73a2b85f1c2607429f6741a0124d274024e6c54360082a99e868194fe168ee3b6d12dc043c9773113d4fae07
6
+ metadata.gz: 27eeeaacb1933fe0d15cd79fe71d33d1d21b1c3094308aae594380709092b7c4988ccc1237c726233c5cc36be134d6777b149a9e130f2fd5abddc5826453d06f
7
+ data.tar.gz: 25d4d72f523feef87f52a221548692d3e70e2f61d1c5f61080c95970220f6a06a5af921035b5c7db4c68e482e74de5a363fe1eeb50a4bc58a8de35b98571ac76
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -103,6 +103,7 @@ module Rex
103
103
  cset = (foo.join.unpack("C*") - bad.to_s.unpack("C*")).uniq
104
104
  return "" if cset.length == 0
105
105
  outp = []
106
+ (len = rand(len)) if len.kind_of?(Range)
106
107
  len.times { outp << cset[rand(cset.length)] }
107
108
  outp.pack("C*")
108
109
  end
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Text
3
- VERSION = "0.2.16"
3
+ VERSION = "0.2.17"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - David 'thelightcosine' Maloney
@@ -88,7 +88,7 @@ cert_chain:
88
88
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
89
89
  8mVuTXnyJOKRJA==
90
90
  -----END CERTIFICATE-----
91
- date: 2017-12-29 00:00:00.000000000 Z
91
+ date: 2018-04-08 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: bundler
metadata.gz.sig CHANGED
Binary file