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.
2 parents d1f65b2 + b58931f commit 8ad38aeCopy full SHA for 8ad38ae
lib/msf/core/payload_generator.rb
@@ -332,11 +332,16 @@ def generate_payload
332
cli_print "Payload size: #{encoded_payload.length} bytes"
333
gen_payload = format_payload(encoded_payload)
334
end
335
+
336
if gen_payload.nil?
337
raise PayloadGeneratorError, 'The payload could not be generated, check options'
338
elsif gen_payload.length > @space and not @smallest
339
raise PayloadSpaceViolation, 'The payload exceeds the specified space'
340
else
341
+ if format.to_s != 'raw'
342
+ cli_print "Final size of #{format} file: #{gen_payload.length} bytes"
343
+ end
344
345
gen_payload
346
347
0 commit comments