Path: blob/master/lib/msf/util/exe/osx/x86.rb
57477 views
# -*- coding: binary -*-1module Msf::Util::EXE::OSX::X862include Msf::Util::EXE::Common3include Msf::Util::EXE::OSX::Common45def self.included(base)6base.extend(ClassMethods)7end89module ClassMethods10# Create an x86 OSX Mach-O containing the payload provided in +code+11# to_osx_x86_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_x86_macho(framework, code, opts = {})19mo = to_executable_with_template("template_x86_darwin.bin", framework, code, opts)20Msf::Payload::MachO.new(mo).sign21mo22end23end2425class << self26include ClassMethods27end2829end303132