Module: Msf::Util::EXE::Bsd::X86::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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

Create a 32-bit BSD (test on FreeBSD) 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



16
17
18
# File 'lib/msf/util/exe/bsd/x86.rb', line 16

def to_bsd_x86_elf(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_x86_bsd.bin", code)
end