Path: blob/master/lib/msf/util/exe/osx/x86.rb
36043 views
module Msf::Util::EXE::OSX::X861include Msf::Util::EXE::Common2include Msf::Util::EXE::OSX::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods9# Create an x86 OSX Mach-O containing the payload provided in +code+10# to_osx_x86_macho11#12# @param framework [Msf::Framework] The framework of you want to use13# @param code [String]14# @param opts [Hash]15# @option [String] :template16# @return [String]17def to_osx_x86_macho(framework, code, opts = {})18mo = to_executable_with_template("template_x86_darwin.bin", framework, code, opts)19Msf::Payload::MachO.new(mo).sign20mo21end22end2324class << self25include ClassMethods26end2728end293031