Merge pull request #20734 from bcoles/linux-riscv-command-payload-adapters

Add Linux RISC-V command payload adapters
This commit is contained in:
Diego Ledda
2026-01-05 05:06:21 -05:00
committed by GitHub
7 changed files with 198 additions and 0 deletions
@@ -0,0 +1,25 @@
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
module MetasploitModule
include Msf::Payload::Adapter::Fetch::Https
include Msf::Payload::Adapter::Fetch::LinuxOptions
def initialize(info = {})
super(
update_info(
info,
'Name' => 'HTTPS Fetch',
'Description' => 'Fetch and execute an RISC-V 32-bit payload from an HTTPS server.',
'Author' => ['Brendan Watters', 'Spencer McIntyre', 'bcoles'],
'Platform' => 'linux',
'Arch' => ARCH_CMD,
'License' => MSF_LICENSE,
'AdaptedArch' => ARCH_RISCV32LE,
'AdaptedPlatform' => 'linux'
)
)
end
end
@@ -0,0 +1,25 @@
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
module MetasploitModule
include Msf::Payload::Adapter::Fetch::Https
include Msf::Payload::Adapter::Fetch::LinuxOptions
def initialize(info = {})
super(
update_info(
info,
'Name' => 'HTTPS Fetch',
'Description' => 'Fetch and execute an RISC-V 64-bit payload from an HTTPS server.',
'Author' => ['Brendan Watters', 'Spencer McIntyre', 'bcoles'],
'Platform' => 'linux',
'Arch' => ARCH_CMD,
'License' => MSF_LICENSE,
'AdaptedArch' => ARCH_RISCV64LE,
'AdaptedPlatform' => 'linux'
)
)
end
end