Fix option parsing
parent
19effa7eb9
commit
54705eee48
|
@ -126,8 +126,9 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
case action.name
|
case action.name
|
||||||
when 'Deploy'
|
when 'Deploy'
|
||||||
unless File.exist?(datastore['WARFILE'])
|
unless datastore['WARFILE'] && File.exist?(datastore['WARFILE'])
|
||||||
print_error("WAR file not found")
|
print_error("WAR file not found")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
war_data = File.read(datastore['WARFILE'])
|
war_data = File.read(datastore['WARFILE'])
|
||||||
deploy_action(app_base, war_data)
|
deploy_action(app_base, war_data)
|
||||||
|
|
Loading…
Reference in New Issue