Confirmed WEP replay attack works & cracks.

Still a long ways to go!
This commit is contained in:
derv82
2015-05-31 10:58:09 -07:00
parent 35de5ea8a6
commit 5528fbfbac
6 changed files with 120 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/python
from subprocess import Popen, call, PIPE
import time
class Process(object):
''' Represents a running/ran process '''
@@ -51,6 +52,9 @@ class Process(object):
else:
sout = PIPE
serr = PIPE
self.start_time = time.time()
self.pid = Popen(command, stdout=sout, stderr=serr)
def __del__(self):
@@ -82,6 +86,10 @@ class Process(object):
''' Returns exit code if process is dead, otherwise "None" '''
return self.pid.poll()
def time_running(self):
''' Returns number of seconds since process was started '''
return int(time.time() - self.start_time)
def interrupt(self):
'''
Send interrupt to current process.