Update ohcapi.py

add a web hook to redirect to onlinehashcrack

Signed-off-by: Frédéric <fmatray@users.noreply.github.com>
This commit is contained in:
Frédéric
2025-01-20 15:30:00 +01:00
committed by GitHub
parent e179165850
commit 7c4764bff8

View File

@ -45,6 +45,11 @@ class ohcapi(plugins.Plugin):
self.ready = True self.ready = True
logging.info("OHC NewAPI: Plugin loaded and ready.") 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): def on_internet_available(self, agent):
""" """
Called once when the internet becomes available. Called once when the internet becomes available.