From a7379d18e6ec68111c6488a2fbff433b6b926423 Mon Sep 17 00:00:00 2001 From: jayofelony Date: Sun, 17 Nov 2024 20:42:34 +0100 Subject: [PATCH] Update build Signed-off-by: jayofelony --- .idea/misc.xml | 2 +- .idea/pwnagotchi.iml | 2 +- pwnagotchi/agent.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 0ad2804b..bf5a9fa2 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,7 +3,7 @@ - + diff --git a/.idea/pwnagotchi.iml b/.idea/pwnagotchi.iml index ad51e808..67a8fbf3 100644 --- a/.idea/pwnagotchi.iml +++ b/.idea/pwnagotchi.iml @@ -4,7 +4,7 @@ - + diff --git a/pwnagotchi/agent.py b/pwnagotchi/agent.py index 33384923..73121843 100644 --- a/pwnagotchi/agent.py +++ b/pwnagotchi/agent.py @@ -6,6 +6,7 @@ import logging import asyncio #import _thread import threading +import subprocess import pwnagotchi import pwnagotchi.utils as utils @@ -99,7 +100,8 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer): if has_mon is False: if mon_start_cmd is not None and mon_start_cmd != '': logging.info("starting monitor interface ...") - self.run('!%s' % mon_start_cmd) + # self.run('!%s' % mon_start_cmd) + subprocess.Popen([mon_start_cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE) else: logging.info("waiting for monitor interface %s ...", mon_iface) time.sleep(1)