From 7c4764bff8308b98ae7ed88aa72f6a7cf8711ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric?= Date: Mon, 20 Jan 2025 15:30:00 +0100 Subject: [PATCH] Update ohcapi.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add a web hook to redirect to onlinehashcrack Signed-off-by: Frédéric --- pwnagotchi/plugins/default/ohcapi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pwnagotchi/plugins/default/ohcapi.py b/pwnagotchi/plugins/default/ohcapi.py index 97c00e2b..2aa9f5da 100644 --- a/pwnagotchi/plugins/default/ohcapi.py +++ b/pwnagotchi/plugins/default/ohcapi.py @@ -45,6 +45,11 @@ class ohcapi(plugins.Plugin): self.ready = True logging.info("OHC NewAPI: Plugin loaded and ready.") + def on_webhook(self, path, request): + from flask import make_response, redirect + response = make_response(redirect("https://www.onlinehashcrack.com", code=302)) + return response + def on_internet_available(self, agent): """ Called once when the internet becomes available.