Skip to content

Commit 9a60caf

Browse files
committed
added comment with explanation
1 parent dde6bdc commit 9a60caf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/encoders/cmd/base64.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def initialize
3333

3434
#
3535
# Encodes the payload
36+
# All unnecessary spaces from your payload inside the () are removed to avoid shell POSIX command lauguage conflicts
37+
# The only things allowed after compound commands are redirections, shell keywords, and the various command separators
38+
# such as (;, &, |, &&, ||)
3639
#
3740
def encode_block(state, buf)
3841
return buf if (buf.bytes & state.badchars.bytes).empty?

0 commit comments

Comments
 (0)