mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user