Path: blob/master/lib/msf/util/exe/linux/riscv32le.rb
36043 views
module Msf::Util::EXE::Linux::Riscv32le1include Msf::Util::EXE::Common2include Msf::Util::EXE::Linux::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods9# Create a RISC-V 32-bit LE Linux ELF containing the payload provided in +code+10# to_linux_riscv32le_elf11#12# @param framework [Msf::Framework]13# @param code [String]14# @param opts [Hash]15# @option [String] :template16# @return [String] Returns an elf17def to_linux_riscv32le_elf(framework, code, opts = {})18to_exe_elf(framework, opts, "template_riscv32le_linux.bin", code)19end2021# Create a RISC-V 32-bit LE Linux ELF_DYN containing the payload provided in +code+22# to_linux_riscv32le_elf_dll23#24# @param framework [Msf::Framework]25# @param code [String]26# @param opts [Hash]27# @option [String] :template28# @return [String] Returns an elf29def to_linux_riscv32le_elf_dll(framework, code, opts = {})30to_exe_elf(framework, opts, "template_riscv32le_linux_dll.bin", code)31end32end3334class << self35include ClassMethods36end3738end394041