Merge pull request from dadav/fix/name_conflict

Fix name conflict
This commit is contained in:
evilsocket 2019-10-04 14:30:22 +02:00 committed by GitHub
commit e56a6396a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -129,11 +129,11 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer):
wifi_running = self.is_module_running('wifi')
if wifi_running and restart:
logging.debug("restarting wifi module ...")
self.restart('wifi.recon')
self.restart_module('wifi.recon')
self.run('wifi.clear')
elif not wifi_running:
logging.debug("starting wifi module ...")
self.start('wifi.recon')
self.start_module('wifi.recon')
self.start_advertising()
@ -388,10 +388,10 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer):
return m['running']
return False
def start(self, module):
def start_module(self, module):
self.run('%s on' % module)
def restart(self, module):
def restart_module(self, module):
self.run('%s off; %s on' % (module, module))
def _has_handshake(self, bssid):