Skip to content

Commit a27d491

Browse files
Land rapid7#19491, Fix a crash in lib/msf/core/payload/php.rb
2 parents 73a6f09 + 1647d3a commit a27d491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/php.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def php_system_block(options = {})
135135
"
136136

137137
exec_methods = [passthru, shell_exec, system, exec, proc_open, popen];
138-
shuffle(exec_methods);
138+
exec_methods = exec_methods.shuffle
139139
buf = setup + exec_methods.join("") + fail_block
140140

141141
return buf

0 commit comments

Comments
 (0)