Skip to content

Commit 4cc027c

Browse files
committed
Move "found" message to a saner location
Thanks to Peleus for the idea.
1 parent 94fda6e commit 4cc027c

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)