Browse Source

Use format check instead of length.

forzoni 3 years ago
parent
commit
e90e6c4885
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/msf/core/payload_generator.rb

+ 2
- 2
lib/msf/core/payload_generator.rb View File

@@ -333,8 +333,8 @@ module Msf
333 333
         gen_payload = format_payload(encoded_payload)
334 334
       end
335 335
 
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"
338 338
       end
339 339
 
340 340
       if gen_payload.nil?

Loading…
Cancel
Save