Giter VIP home page Giter VIP logo

duckyscr's Introduction

Ducky Scripts

Tutorial: Ducky Scripts

It not just bubble bath play toy, but really a keyboard in disguise. It looks like a thumb drive that has the registration of a keyboard. This allows you to connect the usb thumb drive into a target computer, and it will act like a keyboard. As you know you pretty much can do anything on a computer without lifting your hand to use the mouse. Rubber ducky allows just that, interacting with computer with just the keyboard.

In order to run ducky scripts you need a ducky device. The device is ~$45, and in my opinion, they are kind of expensive. The reason why I say that is that you can find alternatives that are much cheaper. There are a couple of tutorials where you can use an old usb thumb drive or a raspberry pi zero for a very low price.

Step 1

Download ducky encoder. This is a jar file so we will be using this in step 4 when compiling our script.

Step 2

Insert microsd card in computer to put scripts on.

Step 3

Create Ducky Scripts!
Its not too hards since the command list can be found here.
The more used commands are:

  • REM (add comments)
  • STRING (type line exactly as is into target)
  • ENTER / SPACE ("enter", "space" key)
  • DELAY (delays instruction for a bit)
  • GUI (cmd key on mac)

Hello World

DELAY 3000
GUI r
DELAY 500
STRING notepad
DELAY 500
ENTER
DELAY 750
STRING Hello World!
ENTER

This gets saved in a plain text file!
OR you can view and use the many ducky scripts from here

Step 4

Its time to compile your ducky script. Here you would transfer the text file to your microsd card that will be used inside of your ducky.

Note we are running the jar on the textfile then we save it to the sd card which is Volumes but could be different for you. Then we ouput it with inject.bin.

To run the jar file:

  • java -jar ~/path/to/jar/duckencoder.jar -i ~/path/to/duckyscript/yourscript.txt -o /Volumes/NO\ NAME/inject.bin

Step 5

Go test it! Insert sd in rubber ducky. Try try putting it in your computer usb and see if it works!

duckyscr's People

Contributors

jaldujaili avatar

Watchers

James Cloos avatar  avatar

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.