Fix wmap_sites -a exception on missing url
parent
eaca91cad7
commit
ca6c55047e
|
@ -127,11 +127,14 @@ class Plugin::Wmap < Msf::Plugin
|
|||
while (arg = args.shift)
|
||||
case arg
|
||||
when '-a'
|
||||
s = add_web_site(args.shift)
|
||||
if s
|
||||
print_status("Site created.")
|
||||
else
|
||||
print_error("Unable to create site")
|
||||
site = args.shift
|
||||
if site
|
||||
s = add_web_site(site)
|
||||
if s
|
||||
print_status("Site created.")
|
||||
else
|
||||
print_error("Unable to create site")
|
||||
end
|
||||
end
|
||||
when '-d'
|
||||
del_idx = args
|
||||
|
|
Loading…
Reference in New Issue