Jump to content

Recommended Posts

Posted

I have been trying to create a Hello world payload for MAC OSX

Here is what I have

DELAY 3000
GUI R
DELAY 500
STRING textedit
DELAY 500
ENTER
DELAY 750
STRING Hello World!!!
ENTER

I can't get it to work. :(

Posted (edited)

Try:

DELAY 3000
COMMAND SPACE
DELAY 500
STRING textedit
DELAY 500
ENTER
DELAY 750
STRING Hello World!!!
ENTER
Edited by midnitesnake
Posted (edited)

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
Posted

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

Posted (edited)

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
Posted

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!

  • 3 weeks later...
Posted

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

  • 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...