Path: blob/master/lib/msf/util/exe/osx/aarch64.rb
57477 views
# -*- coding: binary -*-1module Msf::Util::EXE::OSX::Aarch642include Msf::Util::EXE::Common3include Msf::Util::EXE::OSX::Common45def self.included(base)6base.extend(ClassMethods)7end89module ClassMethods1011# Create an AARCH64 OSX Mach-O containing the payload provided in +code+12# to_osx_aarch64_macho13#14# @param framework [Msf::Framework] The framework of you want to use15# @param code [String]16# @param opts [Hash]17# @option [String] :template18# @return [String]19def to_osx_aarch64_macho(framework, code, opts = {})20mo = to_executable_with_template("template_aarch64_darwin.bin", framework, code, opts)21Msf::Payload::MachO.new(mo).sign22mo23end24end2526class << self27include ClassMethods28end29end303132