save the encoded version before breaking out of the loop
git-svn-id: file:///home/svn/framework3/trunk@12739 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
ef7a7adc1e
commit
33135af296
4
msfvenom
4
msfvenom
|
@ -320,12 +320,12 @@ if opts[:encode]
|
|||
end
|
||||
|
||||
print_status("#{enc.refname} succeeded with size #{raw.length} (iteration=#{iteration})\n")
|
||||
eout = raw
|
||||
payload_raw = raw
|
||||
if iteration == opts[:iterations]
|
||||
done = true
|
||||
break
|
||||
end
|
||||
eout = raw
|
||||
payload_raw = raw
|
||||
rescue
|
||||
if iteration != opts[:iteration]
|
||||
print_error("#{enc.refname} failed: #{$!} (iteration=#{iteration})\n")
|
||||
|
|
Loading…
Reference in New Issue