Module: Msf::Util::EXE::Bsd::X64::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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

Create a 64-bit 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



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

def to_bsd_x64_elf(framework, code, opts = {})
  to_exe_elf(framework, opts, "template_x64_bsd.bin", code)
end