Skip to content

Commit bd3fc8f

Browse files
committed
Minor changes PR derv82#181
1 parent 88a32e2 commit bd3fc8f

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

wifite/attack/all.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def user_wants_to_continue(cls, targets_remaining, attacks_remaining=0):
114114
'''
115115
Asks user if attacks should continue onto other targets
116116
Returns:
117-
True if user wants to continue, False otherwise.
117+
None if the user wants to skip the current target
118+
True if the user wants to continue to the next attack on the current target
119+
False if the user wants to stop the remaining attacks
118120
'''
119121
if attacks_remaining == 0 and targets_remaining == 0:
120122
return # No targets or attacksleft, drop out
@@ -142,7 +144,8 @@ def user_wants_to_continue(cls, targets_remaining, attacks_remaining=0):
142144
prompt += ' or {R}exit{W} %s? {C}' % options
143145

144146
from ..util.input import raw_input
145-
answer = raw_input(Color.s(prompt)).lower()
147+
Color.p(prompt)
148+
answer = raw_input().lower()
146149

147150
if answer.startswith('s'):
148151
return None # Skip

wifite/attack/wep.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ def user_wants_to_stop(self, current_attack, attacks_remaining, target):
288288
attack_index += 1
289289
Color.pl(' {G}%d{W}: {R}Stop attacking, {O}Move onto next target{W}' % attack_index)
290290
while True:
291-
answer = raw_input(Color.s('{?} Select an option ({G}1-%d{W}): ' % attack_index))
291+
Color.p('{?} Select an option ({G}1-%d{W}): ' % attack_index)
292+
answer = raw_input()
292293
if not answer.isdigit() or int(answer) < 1 or int(answer) > attack_index:
293294
Color.pl('{!} {R}Invalid input: {O}Must enter a number between {G}1-%d{W}' % attack_index)
294295
continue

wifite/attack/wps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ def run(self):
3434
return False
3535

3636
if not Configuration.wps_pixie and self.pixie_dust:
37-
Color.pl('\r{!} {O}--no-pixie{R} was given, ignoring WPS PIN Attack on ' +
38-
'{O}%s{W}' % self.target.essid)
37+
Color.pl('\r{!} {O}--no-pixie{R} was given, ignoring WPS Pixie-Dust Attack ' +
38+
'on {O}%s{W}' % self.target.essid)
3939
self.success = False
4040
return False
4141

4242
if not Configuration.wps_pin and not self.pixie_dust:
43-
Color.pl('\r{!} {O}--no-pin{R} was given, ignoring WPS Pixie-Dust Attack ' +
44-
'on {O}%s{W}' % self.target.essid)
43+
Color.pl('\r{!} {O}--pixie{R} was given, ignoring WPS PIN Attack on ' +
44+
'{O}%s{W}' % self.target.essid)
4545
self.success = False
4646
return False
4747

wifite/tools/airmon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def ask():
308308
choice = 1
309309
else:
310310
# Multiple interfaces found
311-
question = Color.s('{+} Select wireless interface ({G}1-%d{W}): ' % (count))
312-
choice = raw_input(question)
311+
Color.p('{+} Select wireless interface ({G}1-%d{W}): ' % (count))
312+
choice = raw_input()
313313

314314
iface = a.get(choice)
315315

wifite/util/scanner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def select_targets(self):
219219

220220
chosen_targets = []
221221

222-
for choice in raw_input(Color.s(input_str)).split(','):
222+
Color.p(input_str)
223+
for choice in raw_input().split(','):
223224
choice = choice.strip()
224225
if choice.lower() == 'all':
225226
chosen_targets = self.targets

0 commit comments

Comments
 (0)