Skip to content

Commit d7cb1c5

Browse files
author
HD Moore
committed
Lands rapid7#4617, fixes msfvenom output with no encoder.
2 parents 94fda6e + 4cc027c commit d7cb1c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ def choose_platform(mod)
176176
def encode_payload(shellcode)
177177
shellcode = shellcode.dup
178178
encoder_list = get_encoders
179-
cli_print "Found #{encoder_list.count} compatible encoders"
180179
if encoder_list.empty?
181180
shellcode
182181
else
182+
cli_print "Found #{encoder_list.count} compatible encoders"
183183
encoder_list.each do |encoder_mod|
184184
cli_print "Attempting to encode payload with #{iterations} iterations of #{encoder_mod.refname}"
185185
begin

0 commit comments

Comments
 (0)