rex-text 0.2.56 → 0.2.58
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/.github/workflows/verify.yml +1 -1
- data/lib/rex/text/lang.rb +14 -0
- data/lib/rex/text/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: f93cc2b081c3c212d771e24fc6609827bbbfa793a0ff831e36db36ed109e9698
|
|
4
|
+
data.tar.gz: c47a24c308143a31dbc613bf7373d7c0ff1ba1015a7682ca50ed2c6a61151cae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cacdcdfe6fed8cd45720cd5207f7691bf213ee2d20006cc5e14930e3416e0be7740466c10dd24507765343b40a7c9788c0251e8f02fd6861e4922fd47ab970f5
|
|
7
|
+
data.tar.gz: 68c829797b08567a41bebf3701409894d45835bbd13ba026e9469acb7d2f794dbddf90f0348ea9d28b71a20b411893f0b479d34f9d7449d5ca3dcd7969a95f15
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/rex/text/lang.rb
CHANGED
|
@@ -217,5 +217,19 @@ module Rex
|
|
|
217
217
|
return wordwrap(str, 0, wrap, '', '# ')
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
+
#
|
|
221
|
+
# Converts to a zig style array of bytes
|
|
222
|
+
#
|
|
223
|
+
def self.to_zig(str, wrap = DefaultWrap, name = "buf")
|
|
224
|
+
return numhexify(str, wrap, '', '', "\nconst #{name}: []const u8 = \&.{\n", "};", ',')
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
#
|
|
228
|
+
# Creates a zig-style comment
|
|
229
|
+
#
|
|
230
|
+
def self.to_zig_comment(str, wrap = DefaultWrap)
|
|
231
|
+
return wordwrap(str, 0, wrap, '', '// ')
|
|
232
|
+
end
|
|
233
|
+
|
|
220
234
|
end
|
|
221
235
|
end
|
data/lib/rex/text/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
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.58
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Metasploit Hackers
|
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
|
34
34
|
DgscAao7wB3xW2BWEp1KnaDWkf1x9ttgoBEYyuYwU7uatB67kBQG1PKvLt79wHvz
|
|
35
35
|
Dxs+KOjGbBRfMnPgVGYkORKVrZIwlaboHbDKxcVW5xv+oZc7KYXWGg==
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
|
-
date: 2024-
|
|
37
|
+
date: 2024-05-10 00:00:00.000000000 Z
|
|
38
38
|
dependencies:
|
|
39
39
|
- !ruby/object:Gem::Dependency
|
|
40
40
|
name: rake
|
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
127
|
version: '0'
|
|
128
128
|
requirements: []
|
|
129
|
-
rubygems_version: 3.
|
|
129
|
+
rubygems_version: 3.2.3
|
|
130
130
|
signing_key:
|
|
131
131
|
specification_version: 4
|
|
132
132
|
summary: Provides Text Manipulation Methods for Exploitation
|
metadata.gz.sig
CHANGED
|
Binary file
|