Module: Msf::Util::EXE::Linux::Zarch::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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

Create a ZARCH Linux ELF containing the payload provided in code

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/zarch.rb', line 18

def to_linux_zarch_elf(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_zarch_linux.bin", code)
end

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

Create a ZARCH Linux ELF_DYN containing the payload provided in code

Parameters:

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

    a customizable set of options

Returns:

  • (String)

    Returns an elf



29
30
31
# File 'lib/msf/util/exe/linux/zarch.rb', line 29

def to_linux_zarch_elf_dll(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_zarch_linux_dll.bin", code)
end