rex-text 0.2.50 → 0.2.51
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/lib/rex/text/lang.rb +23 -0
- data/lib/rex/text/version.rb +1 -1
- data.tar.gz.sig +1 -2
- 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: 1e04dd029db8de939662b00ccf2eeb02f6aecd325ef16ab49da5027d9f4dfa90
|
4
|
+
data.tar.gz: 8042ee4ed9da8be2368534d6ef3c78771becae23a82d9b5d5446dfbe67637f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8d7427022700c1e900a81c4ff1a154882652df03fe76bd3513994baa3dd73f0c5c2f2fc45a7570a983e76ecb0d651b1246f618f68dc056f56a8e2cfa8c89000
|
7
|
+
data.tar.gz: dbb9428d2f125ca7c8ac2cfd468ceae49db03d283b7f54b2728f2b0ef806c84dfc16ba5f576e0fad50332cfcee6c7ef9bfd38440512e18577ffb3d2c4f2406a6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rex/text/lang.rb
CHANGED
@@ -45,6 +45,29 @@ module Rex
|
|
45
45
|
return "/*\n" + wordwrap(str, 0, wrap, '', '') + "*/\n"
|
46
46
|
end
|
47
47
|
|
48
|
+
#
|
49
|
+
# Converts to a masm style array of bytes
|
50
|
+
#
|
51
|
+
def self.to_masm(str, wrap = DefaultWrap, name = "")
|
52
|
+
raise ArgumentError.new('str can not be empty') if str.empty?
|
53
|
+
a = to_hex(str)
|
54
|
+
a.gsub!(/\\x/, '')
|
55
|
+
a.gsub!(/(.{2})/, '\1h,')
|
56
|
+
a.gsub!(/(.{32})/, '\1\n')
|
57
|
+
a.gsub!('\n', "\n")
|
58
|
+
a.gsub!(/^(.*),$/, 'DB \1')
|
59
|
+
a.gsub!(/([a-f].h)/, '0\1')
|
60
|
+
a.sub!(/^/, 'shellcode ')
|
61
|
+
return a
|
62
|
+
end
|
63
|
+
|
64
|
+
#
|
65
|
+
# Creates a masm style comment
|
66
|
+
#
|
67
|
+
def self.to_masm_comment(str, wrap = DefaultWrap)
|
68
|
+
return wordwrap(str, 0, wrap, '', '; ')
|
69
|
+
end
|
70
|
+
|
48
71
|
#
|
49
72
|
# Converts to a nim style array of bytes
|
50
73
|
#
|
data/lib/rex/text/version.rb
CHANGED
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
I��!����X��`�:�X6Q|�|��C{x��5�c��+>��D
|
1
|
+
BA�� �c�&֍P�^r�'-�`�ÎRAu]|�sYf~B^��X��K?&P՞�:�����L�L�P����yߤzǑ�`�S3Pk��c�T��p��5궇�D�2�컦l;�}4�c�/��������)�cXv�����q*���;쳗��O��
|
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.51
|
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: 2023-
|
96
|
+
date: 2023-06-12 00:00:00.000000000 Z
|
97
97
|
dependencies:
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
|
-
rubygems_version: 3.
|
188
|
+
rubygems_version: 3.1.4
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Provides Text Manipulation Methods for Exploitation
|
metadata.gz.sig
CHANGED
Binary file
|