Added --nodeauths command, try to fix WEP replay attacks.

Aireplay can optionally NOT store the process output (via `devnull=False`).
By-default, Aireplay attacks will not capture aireplay-ng output, to
avoid deadlock when overloading the OS buffer (see #21).
This commit is contained in:
derv82
2017-05-15 20:36:04 -04:00
parent a8d16d1b69
commit a226cdb9a1
8 changed files with 39 additions and 22 deletions

View File

@@ -53,7 +53,7 @@ class WEPAttackType(object):
class Aireplay(object):
def __init__(self, target, attack_type, client_mac=None, replay_file=None):
def __init__(self, target, attack_type, client_mac=None, replay_file=None, devnull=False):
'''
Starts aireplay process.
Args:
@@ -77,7 +77,7 @@ class Aireplay(object):
'''
self.pid = Process(cmd,
devnull=False,
devnull=devnull,
cwd=Configuration.temp())
def is_running(self):
@@ -85,7 +85,7 @@ class Aireplay(object):
def stop(self):
''' Stops aireplay process '''
if self.pid and self.pid.poll() != None:
if self.pid and self.pid.poll() == None:
self.pid.interrupt()
def get_output(self):