Land #9588, Fix silent fail on missing argument to wmap_sites -d idx

4.x
Brent Cook 2018-02-20 07:13:32 -06:00 committed by Jeffrey Martin
parent af8736cad6
commit 3635a92f5a
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 2 additions and 2 deletions

View File

@ -140,11 +140,11 @@ class Plugin::Wmap < Msf::Plugin
end
when '-d'
del_idx = args
if del_idx
if !del_idx.empty?
delete_sites(del_idx.select {|d| d =~ /^[0-9]*$/}.map(&:to_i).uniq)
return
else
print_error("Provide index of site to delete")
print_error("No index provided.")
end
when '-l'
view_sites