From d4d8c39205202f0864af38f22200b1ad3a5bdfc7 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Wed, 9 Oct 2019 12:04:28 +0200 Subject: [PATCH] fix: creating handshakes folder if it doesn't exist on startup (fixes #227) --- pwnagotchi/agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwnagotchi/agent.py b/pwnagotchi/agent.py index b29e164..6430ae6 100644 --- a/pwnagotchi/agent.py +++ b/pwnagotchi/agent.py @@ -38,6 +38,9 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer): self._handshakes = {} self.last_session = LastSession(self._config) + if not os.path.exists(config['bettercap']['handshakes']): + os.makedirs(config['bettercap']['handshakes']) + @staticmethod def is_connected(): try: