No point to save if there's no payload
parent
c2bc182db5
commit
cd444ed2db
3
msfvenom
3
msfvenom
|
@ -312,6 +312,9 @@ if __FILE__ == $0
|
||||||
$stderr.puts e.message
|
$stderr.puts e.message
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# No payload generated, no point to go on
|
||||||
|
exit(0) unless payload
|
||||||
|
|
||||||
if generator_opts[:out]
|
if generator_opts[:out]
|
||||||
begin
|
begin
|
||||||
::File.open(generator_opts[:out], 'wb') do |f|
|
::File.open(generator_opts[:out], 'wb') do |f|
|
||||||
|
|
Loading…
Reference in New Issue