[SeeRM #8815] Dont try to exploit when generate_payload_exe fails

This commit is contained in:
jvazquez-r7
2014-06-20 14:07:49 -05:00
parent 4203e75777
commit 191c871e9b
@@ -120,6 +120,9 @@ class Metasploit3 < Msf::Exploit::Remote
#Set up generic values.
payload_exe = rand_text_alphanumeric(4 + rand(4))
pl_exe = generate_payload_exe
if pl_exe.nil?
fail_with(Failure::BadConfig, "#{peer} - Failed to generate an EXE payload, please select a correct payload")
end
append = false
#Now arch specific...
case target['Platform']