Module: Msf::Util::EXE::OSX::Aarch64::ClassMethods

Included in:
Msf::Util::EXE::OSX::Aarch64
Defined in:
lib/msf/util/exe/osx/aarch64.rb

Instance Method Summary collapse

Instance Method Details

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

Create an AARCH64 OSX Mach-O containing the payload provided in code to_osx_aarch64_macho

Parameters:

  • framework (Msf::Framework)

    The framework of you want to use

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

    a customizable set of options

Returns:

  • (String)


19
20
21
22
23
# File 'lib/msf/util/exe/osx/aarch64.rb', line 19

def to_osx_aarch64_macho(framework, code, opts = {})
  mo = to_executable_with_template("template_aarch64_darwin.bin", framework, code, opts)
  Msf::Payload::MachO.new(mo).sign
  mo
end