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.
2 parents d3d920b + e65ac57 commit ae86f23Copy full SHA for ae86f23
lib/msf/core/encoded_payload.rb
@@ -110,7 +110,7 @@ def generate_raw
110
def encode
111
# If the exploit has bad characters, we need to run the list of encoders
112
# in ranked precedence and try to encode without them.
113
- if reqs['BadChars'] or reqs['Encoder'] or reqs['ForceEncode']
+ if reqs['BadChars'].to_s.length > 0 or reqs['Encoder'] or reqs['ForceEncode']
114
encoders = pinst.compatible_encoders
115
116
# Make sure the encoder name from the user has the same String#encoding
0 commit comments