File tree Expand file tree Collapse file tree 4 files changed +99
-0
lines changed
modules/payloads/adapters/cmd/linux Expand file tree Collapse file tree 4 files changed +99
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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' ,
You can’t perform that action at this time.
0 commit comments