Various UI improvements, definitely works now
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from Color import Color
|
||||
|
||||
import time
|
||||
|
||||
class CrackResultWEP(object):
|
||||
@@ -10,3 +12,16 @@ class CrackResultWEP(object):
|
||||
self.ascii_key = ascii_key
|
||||
self.time = time.time()
|
||||
|
||||
def dump(self):
|
||||
if self.essid:
|
||||
Color.pl('{+} ESSID: {C}%s{W}' % self.essid)
|
||||
Color.pl('{+} BSSID: {C}%s{W}' % self.bssid)
|
||||
Color.pl('{+} Encryption: {C}WEP{W}')
|
||||
Color.pl('{+} Hex Key: {G}%s{W}' % self.hex_key)
|
||||
if self.ascii_key:
|
||||
Color.pl('{+} Ascii Key: {G}%s{W}' % self.ascii_key)
|
||||
|
||||
if __name__ == '__main__':
|
||||
crw = CrackResultWEP('AA:BB:CC:DD:EE:FF', 'Test Router', '00:01:02:03:04', 'abcde')
|
||||
crw.dump()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user