Skip to content

Commit 8cbcdd1

Browse files
committed
Add PPC64LE Fetch payloads
1 parent 87ec9ee commit 8cbcdd1

File tree

4 files changed

+99
-0
lines changed

4 files changed

+99
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
##
2+
# This module requires Metasploit: https://metasploit.com/download
3+
# Current source: https://github.com/rapid7/metasploit-framework
4+
##
5+
6+
module MetasploitModule
7+
include Msf::Payload::Adapter::Fetch::HTTP
8+
include Msf::Payload::Adapter::Fetch::LinuxOptions
9+
10+
def initialize(info = {})
11+
super(
12+
update_info(
13+
info,
14+
'Name' => 'HTTP Fetch',
15+
'Description' => 'Fetch and execute a PPC64LE payload from an HTTP server.',
16+
'Author' => ['Brendan Watters', 'Spencer McIntyre'],
17+
'Platform' => 'linux',
18+
'Arch' => ARCH_CMD,
19+
'License' => MSF_LICENSE,
20+
'AdaptedArch' => ARCH_PPC64LE,
21+
'AdaptedPlatform' => 'linux'
22+
)
23+
)
24+
end
25+
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
##
2+
# This module requires Metasploit: https://metasploit.com/download
3+
# Current source: https://github.com/rapid7/metasploit-framework
4+
##
5+
6+
module MetasploitModule
7+
include Msf::Payload::Adapter::Fetch::Https
8+
include Msf::Payload::Adapter::Fetch::LinuxOptions
9+
10+
def initialize(info = {})
11+
super(
12+
update_info(
13+
info,
14+
'Name' => 'HTTPS Fetch',
15+
'Description' => 'Fetch and execute a PPC64LE payload from an HTTPS server.',
16+
'Author' => ['Brendan Watters', 'Spencer McIntyre'],
17+
'Platform' => 'linux',
18+
'Arch' => ARCH_CMD,
19+
'License' => MSF_LICENSE,
20+
'AdaptedArch' => ARCH_PPC64LE,
21+
'AdaptedPlatform' => 'linux'
22+
)
23+
)
24+
end
25+
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
##
2+
# This module requires Metasploit: https://metasploit.com/download
3+
# Current source: https://github.com/rapid7/metasploit-framework
4+
##
5+
6+
module MetasploitModule
7+
include Msf::Payload::Adapter::Fetch::TFTP
8+
include Msf::Payload::Adapter::Fetch::LinuxOptions
9+
10+
def initialize(info = {})
11+
super(
12+
update_info(
13+
info,
14+
'Name' => 'TFTP Fetch',
15+
'Description' => 'Fetch and execute a PPC64LE payload from a TFTP server.',
16+
'Author' => ['Brendan Watters', 'Spencer McIntyre'],
17+
'Platform' => 'linux',
18+
'Arch' => ARCH_CMD,
19+
'License' => MSF_LICENSE,
20+
'AdaptedArch' => ARCH_PPC64LE,
21+
'AdaptedPlatform' => 'linux'
22+
)
23+
)
24+
end
25+
end

spec/modules/payloads_spec.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,30 @@
724724
],
725725
reference_name: 'cmd/linux/tftp/ppc64'
726726
end
727+
728+
context 'cmd/linux/http/ppc64le' do
729+
it_should_behave_like 'payload is not cached',
730+
ancestor_reference_names: [
731+
'adapters/cmd/linux/http/ppc64le'
732+
],
733+
reference_name: 'cmd/linux/http/ppc64le'
734+
end
735+
736+
context 'cmd/linux/https/ppc64le' do
737+
it_should_behave_like 'payload is not cached',
738+
ancestor_reference_names: [
739+
'adapters/cmd/linux/https/ppc64le'
740+
],
741+
reference_name: 'cmd/linux/https/ppc64le'
742+
end
743+
744+
context 'cmd/linux/tftp/ppc64le' do
745+
it_should_behave_like 'payload is not cached',
746+
ancestor_reference_names: [
747+
'adapters/cmd/linux/tftp/ppc64le'
748+
],
749+
reference_name: 'cmd/linux/tftp/ppc64le'
750+
end
727751

728752
context 'cmd/linux/http/x86' do
729753
it_should_behave_like 'payload is not cached',

0 commit comments

Comments
 (0)