Skip to content

Commit e65ac57

Browse files
author
HD Moore
committed
Fix a logic check in EncodedPayload, which unbreaks stageless testing
1 parent d3d920b commit e65ac57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/encoded_payload.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def generate_raw
110110
def encode
111111
# If the exploit has bad characters, we need to run the list of encoders
112112
# in ranked precedence and try to encode without them.
113-
if reqs['BadChars'] or reqs['Encoder'] or reqs['ForceEncode']
113+
if reqs['BadChars'].to_s.length > 0 or reqs['Encoder'] or reqs['ForceEncode']
114114
encoders = pinst.compatible_encoders
115115

116116
# Make sure the encoder name from the user has the same String#encoding

0 commit comments

Comments
 (0)