Skip to content

Commit 7f0197e

Browse files
committed
Rewording some printed text.
1 parent 2e671e0 commit 7f0197e

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

wifite/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def entry_point():
9696
Color.pl('\n{!} {R}Exiting{W}\n')
9797

9898
except KeyboardInterrupt:
99-
Color.pl('\n{!} {O}interrupted, shutting down...{W}')
99+
Color.pl('\n{!} {O}Interrupted, Shutting down...{W}')
100100

101101
Configuration.exit_gracefully(0)
102102

wifite/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,9 @@ def exit_gracefully(cls, code=0):
446446
Macchanger.reset_if_changed()
447447
from .tools.airmon import Airmon
448448
if cls.interface is not None and Airmon.base_interface is not None:
449-
Color.pl('{!} Leaving interface {C}%s{W} in Monitor Mode.' % cls.interface)
450-
Color.pl('{!} You can disable Monitor Mode when finished ({C}airmon-ng stop %s{W})' % cls.interface)
449+
Color.pl('{!} {O}Note:{W} Leaving interface in Monitor Mode!')
450+
Color.pl('{!} To disable Monitor Mode when finished: ' +
451+
'{C}airmon-ng stop %s{W}' % cls.interface)
451452

452453
# Stop monitor mode
453454
#Airmon.stop(cls.interface)

wifite/tools/airmon.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -277,27 +277,28 @@ def ask():
277277

278278
Airmon.terminate_conflicting_processes()
279279

280-
Color.pl('\n{+} looking for {C}wireless interfaces{W}')
280+
Color.p('\n{+} Looking for {C}wireless interfaces{W}...')
281281
monitor_interfaces = Iwconfig.get_interfaces(mode='Monitor')
282282
if len(monitor_interfaces) == 1:
283283
# Assume we're using the device already in montior mode
284284
iface = monitor_interfaces[0]
285-
Color.pl(' using interface {G}%s{W} (already in monitor mode)' % iface);
286-
Color.pl(' you can specify the wireless interface using {C}-i wlan0{W}')
285+
Color.clear_entire_line()
286+
Color.pl('{+} Using {G}%s{W} already in monitor mode' % iface);
287287
Airmon.base_interface = None
288288
return iface
289289

290+
Color.clear_entire_line()
291+
Color.p('{+} Checking {C}airmon-ng{W}...')
290292
a = Airmon()
291293
count = len(a.interfaces)
292294
if count == 0:
293295
# No interfaces found
294296
Color.pl('\n{!} {O}airmon-ng did not find {R}any{O} wireless interfaces')
295-
Color.pl('{!} {O}make sure your wireless device is connected')
296-
Color.pl('{!} {O}see {C}http://www.aircrack-ng.org/doku.php?id=airmon-ng{O} for more info{W}')
297+
Color.pl('{!} {O}Make sure your wireless device is connected')
298+
Color.pl('{!} {O}See {C}http://www.aircrack-ng.org/doku.php?id=airmon-ng{O} for more info{W}')
297299
raise Exception('airmon-ng did not find any wireless interfaces')
298300

299-
Color.pl('')
300-
301+
Color.clear_entire_line()
301302
a.print_menu()
302303

303304
Color.pl('')
@@ -307,7 +308,7 @@ def ask():
307308
choice = 1
308309
else:
309310
# Multiple interfaces found
310-
question = Color.s('{+} select interface ({G}1-%d{W}): ' % (count))
311+
question = Color.s('{+} Select wireless interface ({G}1-%d{W}): ' % (count))
311312
choice = raw_input(question)
312313

313314
iface = a.get(choice)
@@ -347,19 +348,19 @@ def terminate_conflicting_processes():
347348
'{R}%s{O} (PID {R}%s{O})' % (pname, pid)
348349
for pid, pname in pid_pnames
349350
])
350-
Color.pl('{!} {O}conflicting processes: %s' % names_and_pids)
351-
Color.pl('{!} {O}if you have problems: {R}kill -9 PID{O} or re-run wifite with {R}--kill{O}){W}')
351+
Color.pl('{!} {O}Conflicting processes: %s' % names_and_pids)
352+
Color.pl('{!} {O}If you have problems: {R}kill -9 PID{O} or re-run wifite with {R}--kill{O}){W}')
352353
return
353354

354-
Color.pl('{!} {O}killing {R}%d {O}conflicting processes' % len(pid_pnames))
355+
Color.pl('{!} {O}Killing {R}%d {O}conflicting processes' % len(pid_pnames))
355356
for pid, pname in pid_pnames:
356357
if pname == 'NetworkManager' and Process.exists('service'):
357358
Color.pl('{!} {O}stopping network-manager ({R}service network-manager stop{O})')
358359
# Can't just pkill network manager; it's a service
359360
Process(['service', 'network-manager', 'stop']).wait()
360361
Airmon.killed_network_manager = True
361362
else:
362-
Color.pl('{!} {R}terminating {O}conflicting process {R}%s{O} (PID {R}%s{O})' % (pname, pid))
363+
Color.pl('{!} {R}Terminating {O}conflicting process {R}%s{O} (PID {R}%s{O})' % (pname, pid))
363364
try:
364365
os.kill(int(pid), signal.SIGTERM)
365366
except:

wifite/util/scanner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def print_targets(self):
131131
self.previous_target_count = len(self.targets)
132132

133133
# Overwrite the current line
134-
Color.p('\r')
134+
Color.p('\r{W}{D}')
135135

136136
# First row: columns
137137
Color.p(' NUM')
@@ -145,7 +145,7 @@ def print_targets(self):
145145
Color.p(' -------------------------')
146146
if Configuration.show_bssids:
147147
Color.p(' -----------------')
148-
Color.pl(' --- ---- ----- ---- ------')
148+
Color.pl(' --- ---- ----- ---- ------{W}')
149149

150150
# Remaining rows: targets
151151
for idx, target in enumerate(self.targets, start=1):

0 commit comments

Comments
 (0)