We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e90e6c4 commit b58931fCopy full SHA for b58931f
lib/msf/core/payload_generator.rb
@@ -333,15 +333,15 @@ def generate_payload
333
gen_payload = format_payload(encoded_payload)
334
end
335
336
- if format.to_s != 'raw'
337
- cli_print "Final size of #{format} file: #{gen_payload.length} bytes"
338
- end
339
-
340
if gen_payload.nil?
341
raise PayloadGeneratorError, 'The payload could not be generated, check options'
342
elsif gen_payload.length > @space and not @smallest
343
raise PayloadSpaceViolation, 'The payload exceeds the specified space'
344
else
+ if format.to_s != 'raw'
+ cli_print "Final size of #{format} file: #{gen_payload.length} bytes"
+ end
+
345
gen_payload
346
347
0 commit comments