def __start(self, args):
# build aireplay flags
flags = args
if self.DEAUTH_BSSID_FLAG not in flags:
flags.extend([self.DEAUTH_BSSID_FLAG, self._bssid])
if '--ignore-negative-one' not in flags:
flags.extend(["--ignore-negative-one"])
# build Popen command as list
cmd = [self.AIREPLAY] + flags + [self._miff]
print("\t" + " ".join(cmd))
self._proc = Popen(cmd,env={'PATH': os.environ['PATH']}, \
stderr=DEVNULL, stdin=DEVNULL, stdout=DEVNULL)
return True
评论列表
文章目录