Skip to content

Commit 8f61e95

Browse files
committed
Improve modules/nops/php/generic.rb
```irb irb(main):001> length = 10 => 10 irb(main):002> Array.new(length) { ["\t", " ", "\n", "\r"].sample }.join => " \r\t\n\t\t\n\t\r" irb(main):003> ```
1 parent 85f344a commit 8f61e95

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)