Move php_preamble before $ipaddr and $port
php_preamble contains a <?php tag now, so we need to move it to the top.bug/bundler_fix
parent
9d57197736
commit
5f74da9023
|
@ -63,9 +63,9 @@ module MetasploitModule
|
|||
end
|
||||
|
||||
shell=<<-END_OF_PHP_CODE
|
||||
#{php_preamble(disabled_varname: "$dis")}
|
||||
$ipaddr='#{ipaddr}';
|
||||
$port=#{port};
|
||||
#{php_preamble(disabled_varname: "$dis")}
|
||||
|
||||
if(!function_exists('#{exec_funcname}')){
|
||||
function #{exec_funcname}($c){
|
||||
|
|
Loading…
Reference in New Issue