Path: blob/master/lib/msf/util/exe/linux/riscv32le.rb
57477 views
# -*- coding: binary -*-1module Msf::Util::EXE::Linux::Riscv32le2include Msf::Util::EXE::Common3include Msf::Util::EXE::Linux::Common45def self.included(base)6base.extend(ClassMethods)7end89module ClassMethods10# Create a RISC-V 32-bit LE Linux ELF containing the payload provided in +code+11# to_linux_riscv32le_elf12#13# @param framework [Msf::Framework]14# @param code [String]15# @param opts [Hash]16# @option [String] :template17# @return [String] Returns an elf18def to_linux_riscv32le_elf(framework, code, opts = {})19to_exe_elf(framework, opts, "template_riscv32le_linux.bin", code)20end2122# Create a RISC-V 32-bit LE Linux ELF_DYN containing the payload provided in +code+23# to_linux_riscv32le_elf_dll24#25# @param framework [Msf::Framework]26# @param code [String]27# @param opts [Hash]28# @option [String] :template29# @return [String] Returns an elf30def to_linux_riscv32le_elf_dll(framework, code, opts = {})31to_exe_elf(framework, opts, "template_riscv32le_linux_dll.bin", code)32end33end3435class << self36include ClassMethods37end3839end404142