Skip to content

Commit

Permalink
Related to #885 , allow Prepend* for osx/x86/exec payload
Browse files Browse the repository at this point in the history
  • Loading branch information
jvazquez-r7 committed Oct 16, 2012
1 parent 20d1dc3 commit 6f227dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/payloads/singles/osx/x86/exec.rb
Expand Up @@ -24,6 +24,7 @@
module Metasploit3

include Msf::Payload::Single
include Msf::Payload::Osx

def initialize(info = {})
super(merge_info(info,
Expand All @@ -45,7 +46,7 @@ def initialize(info = {})
#
# Dynamically builds the exec payload based on the user's options.
#
def generate
def generate_stage
cmd = datastore['CMD'] || ''
len = cmd.length + 1
payload =
Expand Down

0 comments on commit 6f227dd

Please sign in to comment.