Module: Msf::Util::EXE::OSX::Ppc::ClassMethods
- Included in:
- Msf::Util::EXE::OSX::Ppc
- Defined in:
- lib/msf/util/exe/osx/ppc.rb
Instance Method Summary collapse
-
#to_osx_ppc_macho(framework, code, opts = {}) ⇒ String
Create a PPC OSX Mach-O containing the payload provided in
codeto_osx_ppc_macho.
Instance Method Details
#to_osx_ppc_macho(framework, code, opts = {}) ⇒ String
Create a PPC OSX Mach-O containing the payload provided in code to_osx_ppc_macho
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/msf/util/exe/osx/ppc.rb', line 18 def to_osx_ppc_macho(framework, code, opts = {}) # Allow the user to specify their own template set_template_default(opts, "template_ppc_darwin.bin") mo = get_file_contents(opts[:template]) bo = find_payload_tag(mo, "Invalid OSX PPC Mach-O template: missing \"PAYLOAD:\" tag") mo[bo, code.length] = code mo end |