Path: blob/master/lib/msf/util/exe/linux/riscv64le.rb
57477 views
# -*- coding: binary -*-1module Msf::Util::EXE::Linux::Riscv64le2include Msf::Util::EXE::Common3include Msf::Util::EXE::Linux::Common45def self.included(base)6base.extend(ClassMethods)7end89module ClassMethods1011# Create a RISC-V 64-bit LE Linux ELF containing the payload provided in +code+12# to_linux_riscv64le_elf13#14# @param framework [Msf::Framework]15# @param code [String]16# @param opts [Hash]17# @option [String] :template18# @return [String] Returns an elf19def to_linux_riscv64le_elf(framework, code, opts = {})20to_exe_elf(framework, opts, "template_riscv64le_linux.bin", code)21end2223# Create a RISC-V 64-bit LE Linux ELF_DYN containing the payload provided in +code+24# to_linux_riscv64le_elf_dll25#26# @param framework [Msf::Framework]27# @param code [String]28# @param opts [Hash]29# @option [String] :template30# @return [String] Returns an elf31def to_linux_riscv64le_elf_dll(framework, code, opts = {})32to_exe_elf(framework, opts, "template_riscv64le_linux_dll.bin", code)33end34end3536class << self37include ClassMethods38end3940end414243