Closed iamSkev closed 2 months ago
Loops are part of Ducky Script 3.0, which isn't currently supported by this project yet. It is on the to-do list, though no timeline yet on when I'll get it done.
Loops are part of Ducky Script 3.0, which isn't currently supported by this project yet. It is on the to-do list, though no timeline yet on when I'll get it done.
Ah i see, i just wanted to check if it was supported and didn't just miss something while looking for it in the source code. I guess i'll just copy it multiple times to get the same effect.
Will more advanced features of ducky script 3.0 such as extensions and exfiltration be included in the future as well?
I'm not sure yet. Hak5 recently released a whitepaper on how some of those functions work. I have not evaluated yet how hard they will be to implement in this codebase.
a quick walkaround if you want a script to run loop or forever then you can modify the code on the code.py
if(progStatus == False):
# not in setup mode, inject the payload
payload = selectPayload()
print("Running ", payload)
while True:
runScript(payload)
time.sleep(xxxx)
print("Done")
else:
print("Update your payload")
change xxxx
to total seconds time which exceeds the total delays in the payload.dd
you can also change the while
condition to fit the repetition counts you desire.
Support for while loops was just merged into main.
I've just got a pico and wanted to try writing my own duckyscripts and wanted to say Hello World 10 times in notepad. It never wrote anything when it got to notepad