From b22a0d10ea83d834bf95df136b0f79e6c474e280 Mon Sep 17 00:00:00 2001 From: Linusx <57060126+linuzzx@users.noreply.github.com> Date: Mon, 20 Feb 2023 15:28:14 +0100 Subject: [PATCH 1/2] Update webapp.py PS: Font will work on most devices (preinstalled), else it doesn't really matter --- webapp.py | 87 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 39 deletions(-) diff --git a/webapp.py b/webapp.py index 88e6fb1..801ee0a 100644 --- a/webapp.py +++ b/webapp.py @@ -14,66 +14,75 @@ from duckyinpython import * -payload_html = """ - - Pico W Ducky -

Pico W Ducky

- {}
PayloadActions
-
- New Script +payload_html = """ + + Pico W Ducky + + + + +

Pico W Ducky

+ {}
PayloadActions

+ """ edit_html = """ - - Script Editor - - -
- -
- -
-
- Home - + + Script Editor + + + + +
+
+ +
+
+ + """ new_html = """ - - New Script - - -
- Script Name
- - Script
- -
- -
-
- Home - + + New Script + + + + +
+
+

New Script:

+
+ +
+
+ +
+ """ response_html = """ - Pico W Ducky -

Pico W Ducky

+ + Pico W Ducky + + + + +

Pico W Ducky

{} -
- Home +
""" -newrow_html = "{}Edit / Run" +newrow_html = "{}" def setPayload(payload_number): if(payload_number == 1): From 5777ee911b37f307c421f54b20b8ea4809951e05 Mon Sep 17 00:00:00 2001 From: Linusx <57060126+linuzzx@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:50:45 +0200 Subject: [PATCH 2/2] Update webapp.py --- webapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp.py b/webapp.py index 243315a..848932d 100644 --- a/webapp.py +++ b/webapp.py @@ -38,7 +38,7 @@

- +

@@ -249,4 +249,4 @@ async def startWebService(): wsgiServer.start() while True: wsgiServer.update_poll() - await asyncio.sleep(0) \ No newline at end of file + await asyncio.sleep(0)