From a92916d2b02fd2439e05f5efade566a0a7c0fba2 Mon Sep 17 00:00:00 2001 From: scifijunkie Date: Mon, 22 Apr 2024 04:50:16 +0000 Subject: [PATCH] Changed the directory Changed the directory where it looks for handshakes to /home/pi. --- handshakes-dl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handshakes-dl.py b/handshakes-dl.py index 0e37bd5..09324d4 100644 --- a/handshakes-dl.py +++ b/handshakes-dl.py @@ -86,14 +86,14 @@ class HandshakesDL(plugins.Plugin): return "Plugin not ready" if path == "/" or not path: - handshakes = glob.glob(os.path.join(self.config['bettercap']['handshakes'], "*.pcap")) + handshakes = glob.glob(os.path.join("/home/pi", "*.pcap")) handshakes = [os.path.basename(path)[:-5] for path in handshakes] return render_template_string(TEMPLATE, title="Handshakes | " + pwnagotchi.name(), handshakes=handshakes) else: - dir = self.config['bettercap']['handshakes'] + dir = "/home/pi" try: logging.info(f"[HandshakesDL] serving {dir}/{path}.pcap") return send_from_directory(directory=dir, filename=path+'.pcap', as_attachment=True)