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
-
#to_osx_aarch64_macho(framework, code, opts = {}) ⇒ String
Create an AARCH64 OSX Mach-O containing the payload provided in
codeto_osx_aarch64_macho.
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
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 |