Jump to content

n00b, encode for mac works, but some keys are not pressed ENTER


Recommended Posts

So I have tried the following:

- online encoder

- default duckyencode

- duckyencoder from midnitesnake

All with this payload to begin with: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Payload---osx-youtube-blaster

Sometimes the spotlight is not opened correctly, but always ENTER presses are not set right. If it opens terminal, string for volume is put in, but no enter pressed. Then string open youtube is put in, and then ENTER is pressed but of course it can't open it since the command is wrong (two commands in one line).

Who can help me get over this noobishness?

Link to comment
Share on other sites

So I have tried the following:

- online encoder

- default duckyencode

- duckyencoder from midnitesnake

All with this payload to begin with: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Payload---osx-youtube-blaster

Sometimes the spotlight is not opened correctly, but always ENTER presses are not set right. If it opens terminal, string for volume is put in, but no enter pressed. Then string open youtube is put in, and then ENTER is pressed but of course it can't open it since the command is wrong (two commands in one line).

Who can help me get over this noobishness?

I think this might be a delay issue... Try adding more delay at the beginning of the script (something like "DELAY 5000" should be fine), and also increasing the delays between each command.

I hope this helps you !

V3sth4cks153.

Edited by V3sth4cks153
Link to comment
Share on other sites

  • 3 weeks later...

I've managed to solve this by adding a few delays, but the main fix was adding a space after setting the volume since in some languages or settings, the apostrof isn't automatically set, only when a character or space is followed by it.

So here is my adaptation, probably smaller delays would still work:

DELAY 1000

GUI SPACE
DELAY 2000
STRING terminal
DELAY 500
ENTER
DELAY 1000
STRING osascript -e 'set volume 7'
DELAY 500
SPACE
DELAY 500
ENTER
DELAY 500
STRING open
DELAY 500
ENTER
Link to comment
Share on other sites

I've managed to solve this by adding a few delays, but the main fix was adding a space after setting the volume since in some languages or settings, the apostrof isn't automatically set, only when a character or space is followed by it.

So here is my adaptation, probably smaller delays would still work:

DELAY 1000
GUI SPACE
DELAY 2000
STRING terminal
DELAY 500
ENTER
DELAY 1000
STRING osascript -e 'set volume 7'
DELAY 500
SPACE
DELAY 500
ENTER
DELAY 500
STRING open 
DELAY 500 ENTER
Link to comment
Share on other sites

I've managed to solve this by adding a few delays, but the main fix was adding a space after setting the volume since in some languages or settings, the apostrof isn't automatically set, only when a character or space is followed by it.

So here is my adaptation, probably smaller delays would still work:

DELAY 1000
GUI SPACE
DELAY 2000
STRING terminal
DELAY 500
ENTER
DELAY 1000
STRING osascript -e 'set volume 7'
DELAY 500
SPACE
DELAY 500
ENTER
DELAY 500
STRING open 
DELAY 500 ENTER

Great ! I'm glad you found a solution to your problem !

Link to comment
Share on other sites

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