Fix a logic check in EncodedPayload, which unbreaks stageless testing

bug/bundler_fix
HD Moore 2015-03-29 19:08:35 -05:00
parent d3d920b810
commit e65ac57d1b
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class EncodedPayload
def encode
# If the exploit has bad characters, we need to run the list of encoders
# in ranked precedence and try to encode without them.
if reqs['BadChars'] or reqs['Encoder'] or reqs['ForceEncode']
if reqs['BadChars'].to_s.length > 0 or reqs['Encoder'] or reqs['ForceEncode']
encoders = pinst.compatible_encoders
# Make sure the encoder name from the user has the same String#encoding