Merge pull request #221 from dadav/fix/gps_plugin2

Add OPTIONS
This commit is contained in:
evilsocket
2019-10-08 23:15:21 +02:00
committed by GitHub

View File

@ -13,14 +13,14 @@ OPTIONS = dict()
def on_loaded():
logging.info("gps plugin loaded for %s" % device)
logging.info("gps plugin loaded for %s" % OPTIONS['device'])
def on_ready(agent):
global running
if os.path.exists(device):
logging.info("enabling gps bettercap's module for %s" % device)
if os.path.exists(OPTIONS['device']):
logging.info("enabling gps bettercap's module for %s" % OPTIONS['device'])
try:
agent.run('gps off')
except: