Module: Msf::Util::EXE::Linux::Riscv32le::ClassMethods

Included in:
Msf::Util::EXE::Linux::Riscv32le
Defined in:
lib/msf/util/exe/linux/riscv32le.rb

Instance Method Summary collapse

Instance Method Details

#to_linux_riscv32le_elf(framework, code, opts = {}) ⇒ String

Create a RISC-V 32-bit LE Linux ELF containing the payload provided in code to_linux_riscv32le_elf

Parameters:

  • framework (Msf::Framework)
  • code (String)
  • opts (Hash) (defaults to: {})
  • [String] (Hash)

    a customizable set of options

Returns:

  • (String)

    Returns an elf



18
19
20
# File 'lib/msf/util/exe/linux/riscv32le.rb', line 18

def to_linux_riscv32le_elf(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_riscv32le_linux.bin", code)
end

#to_linux_riscv32le_elf_dll(framework, code, opts = {}) ⇒ String

Create a RISC-V 32-bit LE Linux ELF_DYN containing the payload provided in code to_linux_riscv32le_elf_dll

Parameters:

  • framework (Msf::Framework)
  • code (String)
  • opts (Hash) (defaults to: {})
  • [String] (Hash)

    a customizable set of options

Returns:

  • (String)

    Returns an elf



30
31
32
# File 'lib/msf/util/exe/linux/riscv32le.rb', line 30

def to_linux_riscv32le_elf_dll(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_riscv32le_linux_dll.bin", code)
end