rex-text 0.2.35 → 0.2.36
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/text/rand.rb +16 -0
- data/lib/rex/text/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed5e7201007a3c09cec5c931c006e00de6d55b0c76f602b7641c25b02c8d6a14
|
|
4
|
+
data.tar.gz: 445ecf81d92555096f960255bb8a424153f113735d88c02aec6fbaa3508dd250
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bb526a85fbeeef3a3afd1b1d9b26f3ab5025f27415b13528d96e9bdb61e0362e13f5939fa41b5c9882c118d490d0ca4f7c3c0bd9c56a2e129c7fde0f2c92620
|
|
7
|
+
data.tar.gz: 9ceb7ea946a1d2156614116c7f5b6d57f0529c464f1432e04c840f242e376f64b8c16c2807e7a9e2b7d45e0395ef1660c1d5c849676e72e83f1d03b0c8b4b81f
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rex/text/rand.rb
CHANGED
|
@@ -92,6 +92,15 @@ module Rex
|
|
|
92
92
|
"tammy", "teresa", "theresa", "tina", "virginia", "wanda"
|
|
93
93
|
]
|
|
94
94
|
|
|
95
|
+
Func_Verb = [
|
|
96
|
+
"get", "set", "put", "describe", "acquire", "release", "initialize", "free",
|
|
97
|
+
"init", "find", "list", "create", "destroy"
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
Func_Subj = [
|
|
101
|
+
"file", "directory", "dir", "address", "addr", "process", "proc", "user",
|
|
102
|
+
"privileges", "priv", "attribute", "attr", "mutex", "handle", "type"
|
|
103
|
+
]
|
|
95
104
|
|
|
96
105
|
# Generates a random character.
|
|
97
106
|
def self.rand_char(bad, chars = AllChars)
|
|
@@ -278,5 +287,12 @@ module Rex
|
|
|
278
287
|
end
|
|
279
288
|
rand_base(len,'',*allowed_characters)
|
|
280
289
|
end
|
|
290
|
+
|
|
291
|
+
# Generate a random function name
|
|
292
|
+
def self.rand_func_name
|
|
293
|
+
verb = rand(9) > 4 ? Func_Verb.sample.capitalize : Func_Verb.sample
|
|
294
|
+
subj = rand(9) > 4 ? Func_Subj.sample.capitalize : Func_Subj.sample
|
|
295
|
+
verb + subj
|
|
296
|
+
end
|
|
281
297
|
end
|
|
282
298
|
end
|
data/lib/rex/text/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.2.36
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Metasploit Hackers
|
|
@@ -93,7 +93,7 @@ cert_chain:
|
|
|
93
93
|
EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
|
|
94
94
|
9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
|
|
95
95
|
-----END CERTIFICATE-----
|
|
96
|
-
date: 2021-
|
|
96
|
+
date: 2021-08-13 00:00:00.000000000 Z
|
|
97
97
|
dependencies:
|
|
98
98
|
- !ruby/object:Gem::Dependency
|
|
99
99
|
name: rake
|
metadata.gz.sig
CHANGED
|
Binary file
|