Browse Source

Fix silent fail on missing argument to wmap_sites -d idx

klayklogg 1 year ago
parent
commit
74021d9570
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      plugins/wmap.rb

+ 2
- 2
plugins/wmap.rb View File

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

Loading…
Cancel
Save