Don't kill+restart aircrack after 30s, wait 60s for target,

Also detect enabled/disabled interfaces when putting in/out of monitor mode.
This commit is contained in:
derv82
2018-04-19 12:59:11 -04:00
parent 1bbc7fefaf
commit adc7d37318
5 changed files with 23 additions and 8 deletions

View File

@@ -10,11 +10,12 @@ class Ifconfig(object):
'''Put interface up'''
from ..util.process import Process
command = ['ifconfig', interface, 'up']
command = ['ifconfig', interface]
if type(args) is list:
command.extend(args)
elif type(args) is 'str':
command.append(args)
command.append('up')
pid = Process(command)
pid.wait()