Skip to content

Commit 699578a

Browse files
committed
Allow spaces in target selection (e.g. 3, 4, 7-8)
1 parent 57ad097 commit 699578a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wifite/util/scanner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ def select_targets(self):
199199
chosen_targets = []
200200

201201
for choice in raw_input(Color.s(input_str)).split(','):
202-
if choice == 'all':
202+
choice = choice.strip()
203+
if choice.lower() == 'all':
203204
chosen_targets = self.targets
204205
break
205206
if '-' in choice:

0 commit comments

Comments
 (0)