Skip to content

Commit 3329aa6

Browse files
committed
Fix baffling comment
See 9d75914
1 parent e9f341f commit 3329aa6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/msf/core/encoded_payload.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def encode
111111
if reqs['BadChars'] or reqs['Encoder'] or reqs['ForceEncode']
112112
encoders = pinst.compatible_encoders
113113

114-
# Fix encoding issue
114+
# Make sure the encoder name from the user has the same String#encoding
115+
# as the framework's list of encoder names so we can compare them later.
116+
# This is important for when we get input from RPC.
115117
if reqs['Encoder']
116118
reqs['Encoder'] = reqs['Encoder'].encode(framework.encoders.keys[0].encoding)
117119
end

0 commit comments

Comments
 (0)