From 09591400985cd82b80b99c28811c772ddcce8345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric?= Date: Mon, 20 Jan 2025 15:41:49 +0100 Subject: [PATCH] Update grid.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rediction to https://opwngrid.xyz in the plugins' page Signed-off-by: Frédéric --- pwnagotchi/plugins/default/grid.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/grid.py b/pwnagotchi/plugins/default/grid.py index 55f90b21..25a273da 100644 --- a/pwnagotchi/plugins/default/grid.py +++ b/pwnagotchi/plugins/default/grid.py @@ -44,7 +44,7 @@ def parse_pcap(filename): class Grid(plugins.Plugin): __author__ = 'evilsocket@gmail.com' - __version__ = '1.0.1' + __version__ = '1.1.0' __license__ = 'GPL3' __description__ = 'This plugin signals the unit cryptographic identity and list of pwned networks and list of pwned ' \ 'networks to opwngrid.xyz ' @@ -69,6 +69,11 @@ class Grid(plugins.Plugin): def on_loaded(self): logging.info("grid plugin loaded.") + def on_webhook(self, path, request): + from flask import make_response, redirect + response = make_response(redirect("https://opwngrid.xyz", code=302)) + return response + def set_reported(self, reported, net_id): if net_id not in reported: reported.append(net_id)