Skip to content

Commit e90e6c4

Browse files
author
forzoni
committed
Use format check instead of length.
1 parent d6fd2a4 commit e90e6c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/payload_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ def generate_payload
333333
gen_payload = format_payload(encoded_payload)
334334
end
335335

336-
if encoded_payload.length != gen_payload.length
337-
cli_print "Final size of #{format}: #{gen_payload.length} bytes"
336+
if format.to_s != 'raw'
337+
cli_print "Final size of #{format} file: #{gen_payload.length} bytes"
338338
end
339339

340340
if gen_payload.nil?

0 commit comments

Comments
 (0)