Path: blob/master/lib/msf/util/exe/osx/aarch64.rb
36043 views
module Msf::Util::EXE::OSX::Aarch641include Msf::Util::EXE::Common2include Msf::Util::EXE::OSX::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods910# Create an AARCH64 OSX Mach-O containing the payload provided in +code+11# to_osx_aarch64_macho12#13# @param framework [Msf::Framework] The framework of you want to use14# @param code [String]15# @param opts [Hash]16# @option [String] :template17# @return [String]18def to_osx_aarch64_macho(framework, code, opts = {})19mo = to_executable_with_template("template_aarch64_darwin.bin", framework, code, opts)20Msf::Payload::MachO.new(mo).sign21mo22end23end2425class << self26include ClassMethods27end28end293031