Path: blob/master/lib/msf/util/exe/linux/riscv64le.rb
36043 views
module Msf::Util::EXE::Linux::Riscv64le1include Msf::Util::EXE::Common2include Msf::Util::EXE::Linux::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods910# Create a RISC-V 64-bit LE Linux ELF containing the payload provided in +code+11# to_linux_riscv64le_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_riscv64le_elf(framework, code, opts = {})19to_exe_elf(framework, opts, "template_riscv64le_linux.bin", code)20end2122# Create a RISC-V 64-bit LE Linux ELF_DYN containing the payload provided in +code+23# to_linux_riscv64le_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_riscv64le_elf_dll(framework, code, opts = {})31to_exe_elf(framework, opts, "template_riscv64le_linux_dll.bin", code)32end33end3435class << self36include ClassMethods37end3839end404142