Fix wmap_sites -a exception on missing url

This commit is contained in:
klayklogg 2018-02-19 00:21:58 +13:00
parent eaca91cad7
commit ca6c55047e
1 changed files with 8 additions and 5 deletions

View File

@ -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