Skip to content

Commit e31e3fc

Browse files
author
Brent Cook
committed
add additional architectures and targets
1 parent 66f06cd commit e31e3fc

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ PATH
5858
rb-readline
5959
recog
6060
redcarpet
61-
rex-arch (= 0.1.4)
61+
rex-arch
6262
rex-bin_tools
6363
rex-core
6464
rex-encoder
@@ -281,7 +281,7 @@ GEM
281281
recog (2.1.7)
282282
nokogiri
283283
redcarpet (3.4.0)
284-
rex-arch (0.1.4)
284+
rex-arch (0.1.8)
285285
rex-text
286286
rex-bin_tools (0.1.3)
287287
metasm

metasploit-framework.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Gem::Specification.new do |spec|
135135
spec.add_runtime_dependency 'rex-struct2'
136136
# Library which contains architecture specific information such as registers, opcodes,
137137
# and stack manipulation routines.
138-
spec.add_runtime_dependency 'rex-arch', '0.1.4'
138+
spec.add_runtime_dependency 'rex-arch'
139139
# Library for working with OLE.
140140
spec.add_runtime_dependency 'rex-ole'
141141
# Library for creating and/or parsing MIME messages.

modules/exploits/linux/samba/is_known_pipename.rb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@ def initialize(info = {})
6060
[ 'Linux MIPS', { 'Arch' => ARCH_MIPS } ],
6161
[ 'Linux MIPSLE', { 'Arch' => ARCH_MIPSLE } ],
6262
[ 'Linux MIPS64', { 'Arch' => ARCH_MIPS64 } ],
63+
[ 'Linux MIPS64LE', { 'Arch' => ARCH_MIPS64LE } ],
6364
[ 'Linux PPC', { 'Arch' => ARCH_PPC } ],
6465
[ 'Linux PPC64', { 'Arch' => ARCH_PPC64 } ],
6566
[ 'Linux PPC64 (LE)', { 'Arch' => ARCH_PPC64LE } ],
6667
[ 'Linux SPARC', { 'Arch' => ARCH_SPARC } ],
68+
[ 'Linux SPARC64', { 'Arch' => ARCH_SPARC64 } ],
69+
[ 'Linux s390x', { 'Arch' => ARCH_ZARCH } ],
6770
],
6871
'DefaultOptions' =>
6972
{
@@ -85,24 +88,21 @@ def initialize(info = {})
8588
def setup
8689
super
8790
@@payload_arch_mappings = {
88-
ARCH_X86 => [ 'x86' ],
89-
ARCH_X64 => [ 'x86_64' ],
90-
ARCH_MIPS => [ 'mips' ],
91-
ARCH_MIPSLE => [ 'mipsel' ],
92-
ARCH_MIPSBE => [ 'mips' ],
93-
ARCH_MIPS64 => [ 'mips64' ],
94-
ARCH_PPC => [ 'powerpc' ],
95-
ARCH_PPC64 => [ 'powerpc64' ],
96-
ARCH_PPC64LE => [ 'powerpc64le' ],
97-
ARCH_SPARC => [ 'sparc' ],
98-
ARCH_ARMLE => [ 'armel', 'armhf' ],
99-
ARCH_AARCH64 => [ 'aarch64' ],
100-
#
101-
# Missing from Rex::Arch
102-
# ARCH_MIPS64LE = 'mips64el',
103-
# ARCH_SPARC64 = 'sparc64',
104-
# ARCH_S390X = 's390x',
105-
#
91+
ARCH_X86 => [ 'x86' ],
92+
ARCH_X64 => [ 'x86_64' ],
93+
ARCH_MIPS => [ 'mips' ],
94+
ARCH_MIPSLE => [ 'mipsel' ],
95+
ARCH_MIPSBE => [ 'mips' ],
96+
ARCH_MIPS64 => [ 'mips64' ],
97+
ARCH_MIPS64LE => [ 'mips64el' ],
98+
ARCH_PPC => [ 'powerpc' ],
99+
ARCH_PPC64 => [ 'powerpc64' ],
100+
ARCH_PPC64LE => [ 'powerpc64le' ],
101+
ARCH_SPARC => [ 'sparc' ],
102+
ARCH_SPARC64 => [ 'sparc64' ],
103+
ARCH_ARMLE => [ 'armel', 'armhf' ],
104+
ARCH_AARCH64 => [ 'aarch64' ],
105+
ARCH_ZARCH => [ 's390x' ],
106106
}
107107

108108
# Architectures we don't offically support but can shell anyways with interact

0 commit comments

Comments
 (0)