Giter Club home page Giter Club logo

digiduck's Introduction

digiduck

This program compiles Ducky Script into something usable for the Digispark ATTiny 85 chip. Get yourself a $1 USB Rubber Ducky.

Available on pip: pip install digiduck

There is a great deal of functionality beyond standard Ducky Script planned for the future.

The REPEAT command can either work as usual, or it can be used with two arguments: REPEAT 4 10 means "repeat the previous four instructions 10 times". REPEATS can also now be nested.

You can now trigger the light on your digispark within the ducky script via the commands "LIGHT ON" or "LIGHT OFF". This may be useful for feedback during execution.

Additionally, there is now a keyword, RTRIGGER, which allows certain code to be run randomly at specified intervals. RTRIGGER takes one or two arguments, the first being the percentage of successes desired and the second being the time interval between attempts. This time interval is formatted as 10s for 10 seconds, 10m for 10 minutes, 10h and 10d for hours and days, respectively. All RTRIGGER blocks must be terminated with the ENDR keyword, but can be placed anywhere in code. Errors will occur if you place one inside of a repeat block though. If a time duration is not specified, it defaults to one second. Also, the initial frequency parameter is capable of accepting floating point values.

Please note that the program discards leading whitespace between your opening keywords and their arguments in the Ducky Script. This negatively affects ASCII art.

digiduck's People

Contributors

jtrieb1 avatar uslurper2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

digiduck's Issues

ModuleNotFoundError: No module named 'ducklex'

Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Python310\Scripts\digiduck.exe_main
.py", line 4, in
File "C:\Python310\lib\site-packages\digiduck_init
.py", line 2, in
from ducklex import splitpass, lexpass
ModuleNotFoundError: No module named 'ducklex'

Getting this error not sure why

How to use on windows

I'm having trouble figuring out how to use this tool with windows. Would you mind writing some instructions? Thanks!

'KEY_MENU' was not declared in this scope

The result of this files gives KEY_MENU was not declared in this scope.

GUI d
DELAY 500
PRINTSCREEN
DELAY 100
MENU
DELAY 300
STRING V
DELAY 40
STRING D
DELAY 300
GUI r
DELAY 700
STRING mspaint
ENTER
DELAY 1200
CTRL v
DELAY 500
CTRL s
DELAY 1000
STRING %userprofile%\a.bmp
ENTER
DELAY 500
ALT f
DELAY 400
STRING K
DELAY 100
STRING F
DELAY 1000
ALT F4
DELAY 300
GUI d

Error when trying to compile Duckyscript

C:\Users\USER\Documents\Hacking\Digispark>digiduck DNSPoison.txt DnsPoisonDigi
Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\Scripts\digiduck.exe_main
.py", line 9, in
File "c:\python27\lib\site-packages\digiduck_init
.py", line 26, in main
x = parseseq(tokens)
File "c:\python27\lib\site-packages\digiduck\dparser.py", line 137, in parseseq
for j in range(lcount):
UnboundLocalError: local variable 'lcount' referenced before assignment

Error using Windows

I installed it using pip, but when attempting to use the command,
digiduck C:\Users\Sam\Desktop\source.txt C:\Users\Sam\Desktop\dest.txt
I'm getting this error

Traceback (most recent call last):
File "c:\users\sam\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\sam\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python37-32\Scripts\digiduck.exe_main
.py", line 5, in
File "c:\users\sam\appdata\local\programs\python\python37-32\lib\site-packages\digiduck_init
.py", line 11
print "DIGIDUCK: Ducky Script to Digispark compiler"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("DIGIDUCK: Ducky Script to Digispark compiler")?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.