rex-arch 0.1.14 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/cortex.yaml +16 -0
- data/lib/rex/arch/version.rb +1 -1
- data/lib/rex/arch.rb +55 -30
- data.tar.gz.sig +0 -0
- metadata +27 -86
- 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: 352f71eefa447d4682ea349e1ac6c60c231dc6e0d909bada19475899c29dbae5
|
4
|
+
data.tar.gz: fa17ec6ee67cdd0c5510dfbd0910687c949d7207312139b7d74a5692fc87b7c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e622637e1aa0ccf6727faa46b4ce7b6a89b8e23ea58fc7cae349dcbc2367067361416e11d17af5e66b8f8b413642e03584cfc460e2da2961ffd99f9f48bb7d6
|
7
|
+
data.tar.gz: 352fd6da2adbba7af244f5828357cd49906019fd2d0a266cc5ce4c8d10bab2813b6cb0694f3d3dd788284a0d58d9e627059462d0620bc5a5ae2f3f19440080f9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/cortex.yaml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
info:
|
3
|
+
title: Rex Arch
|
4
|
+
description: Rex Library which contains architecture specific information such as
|
5
|
+
registers, opcodes, and stack manipulation routines.
|
6
|
+
x-cortex-git:
|
7
|
+
github:
|
8
|
+
alias: r7org
|
9
|
+
repository: rapid7/rex-arch
|
10
|
+
x-cortex-tag: rex-arch
|
11
|
+
x-cortex-type: service
|
12
|
+
x-cortex-domain-parents:
|
13
|
+
- tag: metasploit
|
14
|
+
openapi: 3.0.1
|
15
|
+
servers:
|
16
|
+
- url: "/"
|
data/lib/rex/arch/version.rb
CHANGED
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
|
30
|
-
ARCH_X86_64
|
31
|
-
ARCH_X64
|
32
|
-
ARCH_MIPS
|
33
|
-
ARCH_MIPSLE
|
34
|
-
ARCH_MIPSBE
|
35
|
-
ARCH_MIPS64
|
36
|
-
ARCH_MIPS64LE
|
37
|
-
ARCH_PPC
|
38
|
-
ARCH_PPCE500V2
|
39
|
-
ARCH_PPC64
|
40
|
-
ARCH_PPC64LE
|
41
|
-
ARCH_CBEA
|
42
|
-
ARCH_CBEA64
|
43
|
-
ARCH_SPARC
|
44
|
-
ARCH_SPARC64
|
45
|
-
ARCH_ARMLE
|
46
|
-
ARCH_ARMBE
|
47
|
-
ARCH_AARCH64
|
48
|
-
ARCH_CMD
|
49
|
-
ARCH_PHP
|
50
|
-
ARCH_TTY
|
51
|
-
ARCH_JAVA
|
52
|
-
ARCH_RUBY
|
53
|
-
ARCH_DALVIK
|
54
|
-
ARCH_PYTHON
|
55
|
-
ARCH_NODEJS
|
56
|
-
ARCH_FIREFOX
|
57
|
-
ARCH_ZARCH
|
58
|
-
ARCH_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
Binary file
|
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.
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
+
|
13
|
+
MIIERDCCAqygAwIBAgIBATANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDDBttc2Zk
|
14
|
+
ZXYvREM9bWV0YXNwbG9pdC9EQz1jb20wHhcNMjMxMDMwMTYwNDI1WhcNMjUxMDI5
|
15
|
+
MTYwNDI1WjAmMSQwIgYDVQQDDBttc2ZkZXYvREM9bWV0YXNwbG9pdC9EQz1jb20w
|
16
|
+
ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDZN/EKv+yVjwiKWvjAVhjF
|
17
|
+
aWNYI0E9bJ5d1qKd29omRYX9a+OOKBCu5+394fyF5RjwU4mYGr2iopX9ixRJrWXH
|
18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17Q76c9Ov9wvnv
|
92
|
-
dxxQKWGOQy0m4fBrkyjAyH9Djjn81RbQrqYgPuhd5nD0HjN3VUQLhQbIJrk9TVs0
|
93
|
-
EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
|
94
|
-
9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
|
95
|
-
-----END CERTIFICATE-----
|
96
|
-
date: 2020-11-30 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
|
@@ -153,6 +94,7 @@ files:
|
|
153
94
|
- LICENSE
|
154
95
|
- README.md
|
155
96
|
- Rakefile
|
97
|
+
- cortex.yaml
|
156
98
|
- lib/rex/arch.rb
|
157
99
|
- lib/rex/arch/sparc.rb
|
158
100
|
- lib/rex/arch/version.rb
|
@@ -178,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
120
|
- !ruby/object:Gem::Version
|
179
121
|
version: '0'
|
180
122
|
requirements: []
|
181
|
-
|
182
|
-
rubygems_version: 2.7.10
|
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
|