Skip to content

Commit 256fd9c

Browse files
authored
Merge pull request rapid7#19451 from jvoisin/phpnop
Improve modules/nops/php/generic.rb
2 parents 7b47050 + 8f61e95 commit 256fd9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/nops/php/generic.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def initialize
2222

2323
# Generate valid PHP code up to the requested length
2424
def generate_sled(length, opts = {})
25-
# Default to just spaces for now
26-
" " * length
25+
Array.new(length) { ["\t", " ", "\n", "\r", ";"].sample }.join
2726
end
2827
end

0 commit comments

Comments
 (0)