Jump to content

Triple Key Combination


Uninspired

Recommended Posts

  • 3 weeks later...

Adding any key combination is possible by editing the language file. Here's a quick how-to on adding CTRL-SHIFT-ENTER, as an example.


1. Download the official Hak5 JS Ducky Script encoder from https://downloads.hak5.org/ducky
2. Download a keymap json file from the Hak5 github at https://github.com/hak5/bashbunny-payloads/tree/master/languages
3. Edit the keyboard layout file downloaded in step 2 with a text editor and add the desired key map.

For example:
"CTRL-SHIFT-ENTER": "03,00,28",

4. Save the modified keymap file
5. Open the jsencoder.html file downloaded in step 1 from a browser
6. Click Change Keyboard Layout
7. Click Choose file, then select the file saved in step 4
8. Write your payload as normal, now using the newly created keyboard combo.

For example:

DELAY 3000
GUI r
DELAY 500
STRING powershell
CTRL-SHIFT-ENTER
DELAY 1000
ALT y
DELAY 1000
STRING echo hello world
ENTER

Use this technique to add any valid keyboard combination. This works similarly on the Bash Bunny by using the command QUACK KEYCODE 03,00,28

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