Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/util/exe/osx/armle.rb
57477 views
1
# -*- coding: binary -*-
2
module Msf::Util::EXE::OSX::Armle
3
include Msf::Util::EXE::Common
4
include Msf::Util::EXE::OSX::Common
5
6
def self.included(base)
7
base.extend(ClassMethods)
8
end
9
10
module ClassMethods
11
# Create an ARM Little Endian OSX Mach-O containing the payload provided in +code+
12
# self.to_osx_arm_macho
13
#
14
# @param framework [Msf::Framework] The framework of you want to use
15
# @param code [String]
16
# @param opts [Hash]
17
# @option [String] :template
18
# @return [String]
19
def to_osx_arm_macho(framework, code, opts = {})
20
to_executable_with_template("template_armle_darwin.bin", framework, code, opts)
21
end
22
end
23
class << self
24
include ClassMethods
25
end
26
end
27
28