We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f341f commit 3329aa6Copy full SHA for 3329aa6
lib/msf/core/encoded_payload.rb
@@ -111,7 +111,9 @@ def encode
111
if reqs['BadChars'] or reqs['Encoder'] or reqs['ForceEncode']
112
encoders = pinst.compatible_encoders
113
114
- # Fix encoding issue
+ # 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.
117
if reqs['Encoder']
118
reqs['Encoder'] = reqs['Encoder'].encode(framework.encoders.keys[0].encoding)
119
end
0 commit comments