Module: Msf::Util::EXE::OSX::Common::ClassMethods
- Included in:
- Msf::Util::EXE::OSX::Common
- Defined in:
- lib/msf/util/exe/osx/common.rb
Instance Method Summary collapse
Instance Method Details
#to_executable_with_template(template_name, framework, code, opts = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/msf/util/exe/osx/common.rb', line 8 def to_executable_with_template(template_name, framework, code, opts = {}) # Allow the user to specify their own template set_template_default(opts, template_name) mo = self.get_file_contents(opts[:template]) bo = self.find_payload_tag(mo, "Invalid OSX ArmLE Mach-O template: missing \"PAYLOAD:\" tag") mo[bo, code.length] = code mo end |