rex-arch 0.1.15 → 0.1.16

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
  SHA256:
3
- metadata.gz: c520219e4ec1aa72c4b743d82c677490e3590a767a4652370fa8a16417158536
4
- data.tar.gz: 659f64f42369a11b68692b2065b480fc30cc9d14e4b73f095f3092ab6d8314af
3
+ metadata.gz: 352f71eefa447d4682ea349e1ac6c60c231dc6e0d909bada19475899c29dbae5
4
+ data.tar.gz: fa17ec6ee67cdd0c5510dfbd0910687c949d7207312139b7d74a5692fc87b7c4
5
5
  SHA512:
6
- metadata.gz: 0c35b02a7b152eb2178fa847529616e0d0ccde0245ffc477f0f6c218fc6cbb1e6c14c2e6d9ed032989335cddb967e2cb33a05660c70ac9402a7cd30392023748
7
- data.tar.gz: 75a10ab99ca24fec5d04165b4c4e47b4c8ecc18ab9e32f8dc6c80355b89c81381f7b95dfd5b4a30d978fa389263d06d4df703864d491f75fe11505fbe6aa893f
6
+ metadata.gz: 0e622637e1aa0ccf6727faa46b4ce7b6a89b8e23ea58fc7cae349dcbc2367067361416e11d17af5e66b8f8b413642e03584cfc460e2da2961ffd99f9f48bb7d6
7
+ data.tar.gz: 352fd6da2adbba7af244f5828357cd49906019fd2d0a266cc5ce4c8d10bab2813b6cb0694f3d3dd788284a0d58d9e627059462d0620bc5a5ae2f3f19440080f9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Arch
3
- VERSION = "0.1.15"
3
+ VERSION = "0.1.16"
4
4
  end
5
5
  end
data/lib/rex/arch.rb CHANGED
@@ -26,36 +26,41 @@ module Arch
26
26
  ARCH_ANY = '_any_'
27
27
  ARCH_ALL = ARCH_TYPES =
28
28
  [
29
- ARCH_X86 = 'x86',
30
- ARCH_X86_64 = 'x86_64',
31
- ARCH_X64 = 'x64', # To be used for compatability with ARCH_X86_64
32
- ARCH_MIPS = 'mips',
33
- ARCH_MIPSLE = 'mipsle',
34
- ARCH_MIPSBE = 'mipsbe',
35
- ARCH_MIPS64 = 'mips64',
36
- ARCH_MIPS64LE = 'mips64le',
37
- ARCH_PPC = 'ppc',
38
- ARCH_PPCE500V2 = 'ppce500v2',
39
- ARCH_PPC64 = 'ppc64',
40
- ARCH_PPC64LE = 'ppc64le',
41
- ARCH_CBEA = 'cbea',
42
- ARCH_CBEA64 = 'cbea64',
43
- ARCH_SPARC = 'sparc',
44
- ARCH_SPARC64 = 'sparc64',
45
- ARCH_ARMLE = 'armle',
46
- ARCH_ARMBE = 'armbe',
47
- ARCH_AARCH64 = 'aarch64',
48
- ARCH_CMD = 'cmd',
49
- ARCH_PHP = 'php',
50
- ARCH_TTY = 'tty',
51
- ARCH_JAVA = 'java',
52
- ARCH_RUBY = 'ruby',
53
- ARCH_DALVIK = 'dalvik',
54
- ARCH_PYTHON = 'python',
55
- ARCH_NODEJS = 'nodejs',
56
- ARCH_FIREFOX = 'firefox',
57
- ARCH_ZARCH = 'zarch',
58
- ARCH_R = 'r'
29
+ ARCH_X86 = 'x86',
30
+ ARCH_X86_64 = 'x86_64',
31
+ ARCH_X64 = 'x64', # To be used for compatability with ARCH_X86_64
32
+ ARCH_MIPS = 'mips',
33
+ ARCH_MIPSLE = 'mipsle',
34
+ ARCH_MIPSBE = 'mipsbe',
35
+ ARCH_MIPS64 = 'mips64',
36
+ ARCH_MIPS64LE = 'mips64le',
37
+ ARCH_PPC = 'ppc',
38
+ ARCH_PPCE500V2 = 'ppce500v2',
39
+ ARCH_PPC64 = 'ppc64',
40
+ ARCH_PPC64LE = 'ppc64le',
41
+ ARCH_CBEA = 'cbea',
42
+ ARCH_CBEA64 = 'cbea64',
43
+ ARCH_SPARC = 'sparc',
44
+ ARCH_SPARC64 = 'sparc64',
45
+ ARCH_ARMLE = 'armle',
46
+ ARCH_ARMBE = 'armbe',
47
+ ARCH_AARCH64 = 'aarch64',
48
+ ARCH_CMD = 'cmd',
49
+ ARCH_PHP = 'php',
50
+ ARCH_TTY = 'tty',
51
+ ARCH_JAVA = 'java',
52
+ ARCH_RUBY = 'ruby',
53
+ ARCH_DALVIK = 'dalvik',
54
+ ARCH_PYTHON = 'python',
55
+ ARCH_NODEJS = 'nodejs',
56
+ ARCH_FIREFOX = 'firefox',
57
+ ARCH_ZARCH = 'zarch',
58
+ ARCH_R = 'r',
59
+ ARCH_RISCV32BE = 'riscv32be',
60
+ ARCH_RISCV32LE = 'riscv32le',
61
+ ARCH_RISCV64BE = 'riscv64be',
62
+ ARCH_RISCV64LE = 'riscv64le',
63
+ ARCH_LOONGARCH64 = 'loongarch64',
59
64
  ]
60
65
 
61
66
  #
@@ -126,6 +131,16 @@ module Arch
126
131
  [addr].pack('Q<')
127
132
  when ARCH_ZARCH
128
133
  [addr].pack('Q>')
134
+ when ARCH_RISCV32BE
135
+ [addr].pack('N')
136
+ when ARCH_RISCV32LE
137
+ [addr].pack('V')
138
+ when ARCH_RISCV64BE
139
+ [addr].pack('Q>')
140
+ when ARCH_RISCV64LE
141
+ [addr].pack('Q<')
142
+ when ARCH_LOONGARCH64
143
+ [addr].pack('Q<')
129
144
  end
130
145
  end
131
146
 
@@ -173,6 +188,16 @@ module Arch
173
188
  return ENDIAN_LITTLE
174
189
  when ARCH_ZARCH
175
190
  return ENDIAN_BIG
191
+ when ARCH_RISCV32BE
192
+ return ENDIAN_BIG
193
+ when ARCH_RISCV32LE
194
+ return ENDIAN_LITTLE
195
+ when ARCH_RISCV64BE
196
+ return ENDIAN_BIG
197
+ when ARCH_RISCV64LE
198
+ return ENDIAN_LITTLE
199
+ when ARCH_LOONGARCH64
200
+ return ENDIAN_LITTLE
176
201
  end
177
202
 
178
203
  return ENDIAN_LITTLE
data.tar.gz.sig CHANGED
@@ -1 +1,4 @@
1
- xN y��:Fm���/�O�����ǎ���� UX��=�6�$��Ƞf�)���
1
+ F��׷Q<��F
2
+ [�<�g�?b��"����?۴W�T��Q�Ŝ��b��\���!���, ����5 �j`v9Hcpy�0k���"����>�S�ͯ]�9EwFʜ�G��iG|�ot�=ȉőeU�
3
+ �$ބ��Lu��8+��<�7�}7�_<h|�7�j�g� Kl%,M��
4
+ и
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-arch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -10,90 +10,31 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBl
14
- MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
15
- d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv
16
- b3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzExMTEwMDAwMDAwWjBlMQswCQYDVQQG
17
- EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl
18
- cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwggEi
19
- MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7c
20
- JpSIqvTO9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYP
21
- mDI2dsze3Tyoou9q+yHyUmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+
22
- wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4
23
- VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpyoeb6pNnVFzF1roV9Iq4/
24
- AUaG9ih5yLHa5F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3MtZzEuY3Js
84
- MEwGA1UdIARFMEMwNwYJYIZIAYb9bAMBMCowKAYIKwYBBQUHAgEWHGh0dHBzOi8v
85
- d3d3LmRpZ2ljZXJ0LmNvbS9DUFMwCAYGZ4EMAQQBMIGEBggrBgEFBQcBAQR4MHYw
86
- JAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBOBggrBgEFBQcw
87
- AoZCaHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0U0hBMkFzc3Vy
88
- ZWRJRENvZGVTaWduaW5nQ0EuY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEL
89
- BQADggEBAN+GL5/myPWg7oH4mVrG7/OhXF1MoYQF0ddaNiqaweEHMuKJBQCVZRbL
90
- 37HojoKXXv2yyRJBCeTB+ojrxX+5PdLVZa0ss7toWzJ2A1poPXZ1eZvm5xeFD32z
91
- YQaTmmNWNI3PCDTyJ2PXUc+bDiNNwcZ7yc5o78UNRvp9Jxghya17Q76c9Ov9wvnv
92
- dxxQKWGOQy0m4fBrkyjAyH9Djjn81RbQrqYgPuhd5nD0HjN3VUQLhQbIJrk9TVs0
93
- EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
- 9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
95
- -----END CERTIFICATE-----
96
- date: 2023-10-04 00:00:00.000000000 Z
37
+ date: 2024-09-20 00:00:00.000000000 Z
97
38
  dependencies:
98
39
  - !ruby/object:Gem::Dependency
99
40
  name: rake
@@ -179,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
120
  - !ruby/object:Gem::Version
180
121
  version: '0'
181
122
  requirements: []
182
- rubygems_version: 3.1.4
123
+ rubygems_version: 3.4.17
183
124
  signing_key:
184
125
  specification_version: 4
185
126
  summary: Ruby Exploitation Library - rex-arch
metadata.gz.sig CHANGED
Binary file