Fix option parsing

bug/bundler_fix
jvazquez-r7 2014-12-06 21:50:54 -06:00
parent 19effa7eb9
commit 54705eee48
1 changed files with 2 additions and 1 deletions

View File

@ -126,8 +126,9 @@ class Metasploit3 < Msf::Auxiliary
case action.name
when 'Deploy'
unless File.exist?(datastore['WARFILE'])
unless datastore['WARFILE'] && File.exist?(datastore['WARFILE'])
print_error("WAR file not found")
return
end
war_data = File.read(datastore['WARFILE'])
deploy_action(app_base, war_data)