Module: Msf::Util::EXE::Solaris::X86::ClassMethods

Included in:
Msf::Util::EXE::Solaris::X86
Defined in:
lib/msf/util/exe/solaris/x86.rb

Instance Method Summary collapse

Instance Method Details

#to_executable(framework, code, fmt = 'elf', opts = {}) ⇒ Object



9
10
11
# File 'lib/msf/util/exe/solaris/x86.rb', line 9

def to_executable(framework, code, fmt='elf', opts = {})
  return to_solaris_x86_elf(framework, code, opts) if fmt == 'elf'
end

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

Create a 32-bit Solaris 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



19
20
21
# File 'lib/msf/util/exe/solaris/x86.rb', line 19

def to_solaris_x86_elf(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_x86_solaris.bin", code)
end