Related to #885 , allow Prepend* for osx/x86/exec payload

unstable
jvazquez-r7 2012-10-16 16:26:18 +02:00
parent 20d1dc3b1d
commit 6f227dddff
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ require 'msf/core'
module Metasploit3
include Msf::Payload::Single
include Msf::Payload::Osx
def initialize(info = {})
super(merge_info(info,
@ -45,7 +46,7 @@ module Metasploit3
#
# Dynamically builds the exec payload based on the user's options.
#
def generate
def generate_stage
cmd = datastore['CMD'] || ''
len = cmd.length + 1
payload =