From a2ac679499e0765465239d98e6e2d611c51f0784 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 10 Nov 2019 13:24:56 +0100 Subject: [PATCH] new: pwnfile link in the web ui (closes #557) --- pwnagotchi/ui/web/handler.py | 6 ++++-- pwnagotchi/ui/web/templates/index.html | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/web/handler.py b/pwnagotchi/ui/web/handler.py index 97fa259a..8db7585f 100644 --- a/pwnagotchi/ui/web/handler.py +++ b/pwnagotchi/ui/web/handler.py @@ -32,8 +32,10 @@ class Handler: self._app.add_url_rule('/plugins//', 'plugins', self.plugins, methods=['GET', 'POST']) def index(self): - return render_template('index.html', title=pwnagotchi.name(), - other_mode='AUTO' if self._agent.mode == 'manual' else 'MANU') + return render_template('index.html', + title=pwnagotchi.name(), + other_mode='AUTO' if self._agent.mode == 'manual' else 'MANU', + fingerprint=self._agent.fingerprint()) def plugins(self, name, subpath): if name is None: diff --git a/pwnagotchi/ui/web/templates/index.html b/pwnagotchi/ui/web/templates/index.html index cc4d87a9..a5475429 100644 --- a/pwnagotchi/ui/web/templates/index.html +++ b/pwnagotchi/ui/web/templates/index.html @@ -21,6 +21,10 @@ + +
+ +