From ca6c55047e6b787e7b61f124da3bfe20cd085494 Mon Sep 17 00:00:00 2001 From: klayklogg Date: Mon, 19 Feb 2018 00:21:58 +1300 Subject: [PATCH] Fix wmap_sites -a exception on missing url --- plugins/wmap.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/wmap.rb b/plugins/wmap.rb index ad3c64e0ea..d2517a364b 100644 --- a/plugins/wmap.rb +++ b/plugins/wmap.rb @@ -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