Module: Msf::Util::EXE::OSX::X86::ClassMethods
- Included in:
- Msf::Util::EXE::OSX::X86
- Defined in:
- lib/msf/util/exe/osx/x86.rb
Instance Method Summary collapse
-
#to_osx_x86_macho(framework, code, opts = {}) ⇒ String
Create an x86 OSX Mach-O containing the payload provided in
codeto_osx_x86_macho.
Instance Method Details
#to_osx_x86_macho(framework, code, opts = {}) ⇒ String
Create an x86 OSX Mach-O containing the payload provided in code to_osx_x86_macho
18 19 20 21 22 |
# File 'lib/msf/util/exe/osx/x86.rb', line 18 def to_osx_x86_macho(framework, code, opts = {}) mo = to_executable_with_template("template_x86_darwin.bin", framework, code, opts) Msf::Payload::MachO.new(mo).sign mo end |