Skip to content

Commit

Permalink
Land #8729, Fix a php warning about undefined constants
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'upstream/pr/8729' into upstream-master
  • Loading branch information
Brent Cook committed Jul 17, 2017
2 parents 806c68c + 6261529 commit 535dfdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/payload/php.rb
Expand Up @@ -103,7 +103,7 @@ def php_system_block(options = {})
}else"
proc_open = "
if(#{is_callable}('proc_open')and!#{in_array}('proc_open',#{dis})){
$handle=proc_open(#{cmd},array(array(pipe,'r'),array(pipe,'w'),array(pipe,'w')),$pipes);
$handle=proc_open(#{cmd},array(array('pipe','r'),array('pipe','w'),array('pipe','w')),$pipes);
#{output}=NULL;
while(!feof($pipes[1])){
#{output}.=fread($pipes[1],1024);
Expand Down

0 comments on commit 535dfdf

Please sign in to comment.