Land #3467 - failure message for nil payload

bug/bundler_fix
sinn3r 2014-06-26 11:12:37 -05:00
commit 6075c795e9
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 3 additions and 0 deletions

View File

@ -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']