Fix monitor interface consistency issue
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
from Interface import Interface
|
||||
from Process import Process
|
||||
from Color import Color
|
||||
from Configuration import Configuration
|
||||
|
||||
class Airmon(object):
|
||||
''' Wrapper around the 'airmon-ng' program '''
|
||||
@@ -99,6 +100,9 @@ class Airmon(object):
|
||||
|
||||
# No errors found; the device 'mon_iface' was put into MM.
|
||||
Color.pl("{G}enabled {C}%s{W}" % mon_iface)
|
||||
|
||||
Configuration.interface = mon_iface
|
||||
|
||||
return mon_iface
|
||||
|
||||
|
||||
@@ -159,7 +163,7 @@ class Airmon(object):
|
||||
if a.get(choice).name in mon_ifaces:
|
||||
Color.pl('{+} {G}%s{W} is already in monitor mode' % iface.name)
|
||||
else:
|
||||
Airmon.start(iface)
|
||||
iface.name = Airmon.start(iface)
|
||||
return iface.name
|
||||
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ class Scanner(object):
|
||||
[len(t.clients)
|
||||
for t in self.targets])
|
||||
Color.p(
|
||||
"\r{+} scanning, " +
|
||||
"found {G}%d{W} target(s)," % target_count +
|
||||
" {G}%d{W} clients" % client_count +
|
||||
". {O}Ctrl+C{W} when ready")
|
||||
'\r{+} scanning, found' +
|
||||
' {G}%d{W} target(s),' % target_count +
|
||||
' {G}%d{W} clients.' % client_count +
|
||||
' {O}Ctrl+C{W} when ready')
|
||||
sleep(1)
|
||||
self.targets = airodump.get_targets()
|
||||
self.print_targets()
|
||||
|
||||
Reference in New Issue
Block a user