parse add cable better
parent
02966d31e1
commit
8d5c4a3282
|
@ -186,7 +186,7 @@ class Plugin::Aggregator < Msf::Plugin
|
||||||
host, port = args[0].split(':', 2)
|
host, port = args[0].split(':', 2)
|
||||||
when 2
|
when 2
|
||||||
host, port = args[0].split(':', 2)
|
host, port = args[0].split(':', 2)
|
||||||
if host.nil?
|
if port.nil?
|
||||||
port = args[1]
|
port = args[1]
|
||||||
else
|
else
|
||||||
certificate = args[1]
|
certificate = args[1]
|
||||||
|
@ -197,7 +197,7 @@ class Plugin::Aggregator < Msf::Plugin
|
||||||
usage_cable_add
|
usage_cable_add
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if host.nil?
|
if port.nil? || port.to_i <= 0
|
||||||
usage_cable_add
|
usage_cable_add
|
||||||
end
|
end
|
||||||
if certificate && File.exists?(certificate)
|
if certificate && File.exists?(certificate)
|
||||||
|
|
Loading…
Reference in New Issue