Skip to content

Commit 95b6cda

Browse files
committed
Land rapid7#9146, add e500v2 and reduce size of x86_64
2 parents c4dcd79 + 56eb828 commit 95b6cda

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+288
-89
lines changed

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PATH
1919
metasploit-model
2020
metasploit-payloads (= 1.3.13)
2121
metasploit_data_models
22-
metasploit_payloads-mettle (= 0.2.2)
22+
metasploit_payloads-mettle (= 0.2.5)
2323
msgpack
2424
nessus_rest
2525
net-ssh
@@ -189,7 +189,7 @@ GEM
189189
postgres_ext
190190
railties (~> 4.2.6)
191191
recog (~> 2.0)
192-
metasploit_payloads-mettle (0.2.2)
192+
metasploit_payloads-mettle (0.2.5)
193193
method_source (0.9.0)
194194
mini_portile2 (2.3.0)
195195
minitest (5.10.3)
@@ -252,7 +252,7 @@ GEM
252252
recog (2.1.16)
253253
nokogiri
254254
redcarpet (3.4.0)
255-
rex-arch (0.1.11)
255+
rex-arch (0.1.13)
256256
rex-text
257257
rex-bin_tools (0.1.4)
258258
metasm
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# -*- coding: binary -*-
2+
3+
require 'msf/base/sessions/meterpreter'
4+
5+
module Msf
6+
module Sessions
7+
8+
###
9+
#
10+
# This class creates a platform-specific meterpreter session type
11+
#
12+
###
13+
class Meterpreter_ppce500v2_Linux < Msf::Sessions::Meterpreter
14+
def supports_ssl?
15+
false
16+
end
17+
def supports_zlib?
18+
false
19+
end
20+
def initialize(rstream, opts={})
21+
super
22+
self.base_platform = 'linux'
23+
self.base_arch = ARCH_PPCE500V2
24+
end
25+
end
26+
27+
end
28+
end
29+

lib/msf/core/payload/uuid.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class Msf::Payload::UUID
4343
24 => ARCH_AARCH64,
4444
25 => ARCH_MIPS64,
4545
26 => ARCH_PPC64LE,
46-
27 => ARCH_R
46+
27 => ARCH_R,
47+
28 => ARCH_PPCE500V2
4748
}
4849

4950
Platforms = {

metasploit-framework.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Gem::Specification.new do |spec|
7272
# Needed for Meterpreter
7373
spec.add_runtime_dependency 'metasploit-payloads', '1.3.13'
7474
# Needed for the next-generation POSIX Meterpreter
75-
spec.add_runtime_dependency 'metasploit_payloads-mettle', '0.2.2'
75+
spec.add_runtime_dependency 'metasploit_payloads-mettle', '0.2.5'
7676
# Needed by msfgui and other rpc components
7777
spec.add_runtime_dependency 'msgpack'
7878
# get list of network interfaces, like eth* from OS.

modules/payloads/singles/linux/aarch64/meterpreter_reverse_http.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 675112
13+
CachedSize = 692384
1414

1515
include Msf::Payload::Single
1616
include Msf::Sessions::MeterpreterOptions
@@ -24,7 +24,8 @@ def initialize(info = {})
2424
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
2525
'Author' => [
2626
'Adam Cammack <adam_cammack[at]rapid7.com>',
27-
'Brent Cook <brent_cook[at]rapid7.com>'
27+
'Brent Cook <brent_cook[at]rapid7.com>',
28+
'timwr'
2829
],
2930
'Platform' => 'linux',
3031
'Arch' => ARCH_AARCH64,

modules/payloads/singles/linux/aarch64/meterpreter_reverse_https.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 675112
13+
CachedSize = 692384
1414

1515
include Msf::Payload::Single
1616
include Msf::Sessions::MeterpreterOptions
@@ -24,7 +24,8 @@ def initialize(info = {})
2424
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
2525
'Author' => [
2626
'Adam Cammack <adam_cammack[at]rapid7.com>',
27-
'Brent Cook <brent_cook[at]rapid7.com>'
27+
'Brent Cook <brent_cook[at]rapid7.com>',
28+
'timwr'
2829
],
2930
'Platform' => 'linux',
3031
'Arch' => ARCH_AARCH64,

modules/payloads/singles/linux/aarch64/meterpreter_reverse_tcp.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 675112
13+
CachedSize = 692384
1414

1515
include Msf::Payload::Single
1616
include Msf::Sessions::MeterpreterOptions
@@ -24,7 +24,8 @@ def initialize(info = {})
2424
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
2525
'Author' => [
2626
'Adam Cammack <adam_cammack[at]rapid7.com>',
27-
'Brent Cook <brent_cook[at]rapid7.com>'
27+
'Brent Cook <brent_cook[at]rapid7.com>',
28+
'timwr'
2829
],
2930
'Platform' => 'linux',
3031
'Arch' => ARCH_AARCH64,

modules/payloads/singles/linux/armbe/meterpreter_reverse_http.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 668392
13+
CachedSize = 678568
1414

1515
include Msf::Payload::Single
1616
include Msf::Sessions::MeterpreterOptions
@@ -24,7 +24,8 @@ def initialize(info = {})
2424
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
2525
'Author' => [
2626
'Adam Cammack <adam_cammack[at]rapid7.com>',
27-
'Brent Cook <brent_cook[at]rapid7.com>'
27+
'Brent Cook <brent_cook[at]rapid7.com>',
28+
'timwr'
2829
],
2930
'Platform' => 'linux',
3031
'Arch' => ARCH_ARMBE,

modules/payloads/singles/linux/armbe/meterpreter_reverse_https.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 668392
13+
CachedSize = 678568
1414

1515
include Msf::Payload::Single
1616
include Msf::Sessions::MeterpreterOptions
@@ -24,7 +24,8 @@ def initialize(info = {})
2424
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
2525
'Author' => [
2626
'Adam Cammack <adam_cammack[at]rapid7.com>',
27-
'Brent Cook <brent_cook[at]rapid7.com>'
27+
'Brent Cook <brent_cook[at]rapid7.com>',
28+
'timwr'
2829
],
2930
'Platform' => 'linux',
3031
'Arch' => ARCH_ARMBE,

modules/payloads/singles/linux/armbe/meterpreter_reverse_tcp.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 668392
13+
CachedSize = 678568
1414

1515
include Msf::Payload::Single
1616
include Msf::Sessions::MeterpreterOptions
@@ -24,7 +24,8 @@ def initialize(info = {})
2424
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
2525
'Author' => [
2626
'Adam Cammack <adam_cammack[at]rapid7.com>',
27-
'Brent Cook <brent_cook[at]rapid7.com>'
27+
'Brent Cook <brent_cook[at]rapid7.com>',
28+
'timwr'
2829
],
2930
'Platform' => 'linux',
3031
'Arch' => ARCH_ARMBE,

0 commit comments

Comments
 (0)