Skip to content

Commit 1647d3a

Browse files
committed
Fix a crash in lib/msf/core/payload/php.rb
As it seems that shuffle is a method (https://ruby-doc.org/core-2.7.0/Array.html#method-i-shuffle) and not a function. As spotted by @Chocapikk in rapid7#19445 (review)
1 parent 73a6f09 commit 1647d3a

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)