Module: Msf::Util::EXE::Linux::Armle::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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

Create a ARM Little Endian Linux ELF containing the payload provided in code to_linux_armle_elf

Parameters:

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

    a customizable set of options

Returns:

  • (String)

    Returns an elf



19
20
21
# File 'lib/msf/util/exe/linux/armle.rb', line 19

def to_linux_armle_elf(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_armle_linux.bin", code)
end

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

Create a ARM Little Endian Linux ELF_DYN containing the payload provided in code to_linux_armle_elf_dll

Parameters:

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

    a customizable set of options

Returns:

  • (String)

    Returns an elf-so



31
32
33
# File 'lib/msf/util/exe/linux/armle.rb', line 31

def to_linux_armle_elf_dll(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_armle_linux_dll.bin", code)
end