Jump to content

Recommended Posts

No luck.

I even made a small change to it:

DELAY 3000
COMMAND-SPACE
DELAY 500
STRING textedit
DELAY 500
ENTER
DELAY 750
COMMAND-N // this is so that it will open a new document
DELAY 750
STRING Hello World!!!
ENTER
Note: I am using Sublime Text editor to create the script and replace the .bin file. I don't think this effects anything does it?
Edited by CodeA2
Link to post
Share on other sites

Here ya go. I just got the Duck a couple days ago and have been messing with OSX scripts

DELAY 3000

GUI SPACE
DELAY 500
STRING TextEdit
ENTER
DELAY 750
GUI N
DELAY 750
STRING Hello World!!!
ENTER

by the way im using the Ducky Toolkit online to make the .bin files.
Edited by Amylase
Link to post
Share on other sites

Here is another Hello World, but this one writes a little Hello World bash script then removes after running.

DELAY 2000

GUI SPACE
DELAY 500
STRING Terminal
ENTER
DELAY 300
STRING nano helloWorld.sh
ENTER
DELAY 300
STRING #!/bin/bash
ENTER
STRING STR="Hello World!!"
ENTER
STRING echo $STR
ENTER
CONTROL X
DELAY 300
ENTER
STRING Y
ENTER
DELAY 300
STRING chmod +x helloWorld.sh
ENTER
DELAY 300
STRING ./helloWorld.sh
ENTER
DELAY 300
STRING rm helloWorld.sh
ENTER

Link to post
Share on other sites

Question: for some of the windows payloads do you need to keep the USB connected for it to work? for example: You can select screenshots and other info be sent to a gmail account. Does it work only if the USB is connected or will it continue to run that script after the usb is disconnected?

Second question is how do you stop it?

Edited by CodeA2
Link to post
Share on other sites

It will only run the script while connected.

Unless your ducky script creates a batch file (*.bat), in which case you should be able to unplug the duck - once the batch-file is executed!

Link to post
Share on other sites
  • 3 weeks later...

I have a little question : on some version of Mac OS X (Mavericks for example) there is no keyboard shortcut activated by default for Spotlight search ...

so COMMAND + SPACE does not work.

How can I do this on a computer with no keyboard shortcut for spotlight : I need to launch the terminal app

Link to post
Share on other sites
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...