parse add cable better

bug/bundler_fix
Jeffrey Martin 2016-12-20 14:12:54 -06:00
parent 02966d31e1
commit 8d5c4a3282
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ class Plugin::Aggregator < Msf::Plugin
host, port = args[0].split(':', 2)
when 2
host, port = args[0].split(':', 2)
if host.nil?
if port.nil?
port = args[1]
else
certificate = args[1]
@ -197,7 +197,7 @@ class Plugin::Aggregator < Msf::Plugin
usage_cable_add
return
end
if host.nil?
if port.nil? || port.to_i <= 0
usage_cable_add
end
if certificate && File.exists?(certificate)