From 0140a1fc97845237ccec15e10282a89d72bd287b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric?= Date: Mon, 20 Jan 2025 15:27:54 +0100 Subject: [PATCH] Update wigle.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add a redirection to wiggle.net Signed-off-by: Frédéric --- pwnagotchi/plugins/default/wigle.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pwnagotchi/plugins/default/wigle.py b/pwnagotchi/plugins/default/wigle.py index 3f387795..fedca863 100644 --- a/pwnagotchi/plugins/default/wigle.py +++ b/pwnagotchi/plugins/default/wigle.py @@ -127,6 +127,12 @@ class Wigle(plugins.Plugin): self.ready = True logging.info("WIGLE: ready") + + def on_webhook(self, path, request): + from flask import make_response, redirect + response = make_response(redirect("https://www.wigle.net/", code=302)) + return response + def on_internet_available(self, agent): """