diff --git a/webapp.py b/webapp.py index c24aec4..6ebb051 100644 --- a/webapp.py +++ b/webapp.py @@ -15,65 +15,76 @@ from duckyinpython import * payload_html = """ - - Pico W Ducky + + + Pico W Ducky + + +

Pico W Ducky

- {}
PayloadActions
+ + {} +
PAYLOADACTIONS

- New Script + New Script """ edit_html = """ - + Script Editor +

- +

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

Script Name

+ +

Script content

+
- +

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

Pico W Ducky

- {} -
- Home +

{}

+ Home """ -newrow_html = "{}Edit / Delete / Run" +newrow_html = "{}Edit Delete Run" def setPayload(payload_number): if(payload_number == 1): @@ -90,12 +101,13 @@ def ducky_main(request): payloads = [] rows = "" files = os.listdir() - #print(files) + print(files) for f in files: if ('.dd' in f) == True: payloads.append(f) + print(payloads) newrow = newrow_html.format(f,f,f,f) - #print(newrow) + print(newrow) rows = rows + newrow response = payload_html.format(rows)