"Scanner" allow selection of targets

Made Configuration static so it can be called from anywhere.
Thing's awesome, yo.
This commit is contained in:
derv82
2015-05-28 19:36:58 -07:00
parent b22de11df7
commit 03509d436e
5 changed files with 125 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ class Target(object):
self.essid = '(%s)' % self.bssid
self.essid_known = False
self.wps = False
self.wps = None
self.clients = []
@@ -100,9 +100,11 @@ class Target(object):
color = 'R'
power = Color.s('{%s}%s' % (color, power))
wps = Color.s('{R} no')
wps = Color.s('{O} n/a')
if self.wps:
wps = Color.s('{G} yes')
else:
wps = Color.s('{R} no')
clients = ' '
if len(self.clients) == 1: