Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
aleff-github committed Nov 15, 2024
1 parent 26ff896 commit 1833a56
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 11 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# 🦆 DuckyScript Cookbook

Welcome to the **DuckyScript Cookbook** your quacktastic assistant for whipping up DuckyScript magic in no time! 🚀
Welcome to the **DuckyScript Cookbook** - your quacktastic assistant for whipping up DuckyScript magic in no time! 🚀

<a href="https://open-vsx.org/extension/Aleff/duckyscriptcookbook"><img src="https://vscodium.com/img/codium_cnl.svg" width="50" /></a> <a href="https://marketplace.visualstudio.com/items?itemName=Aleff.duckyscriptcookbook"><img src="https://code.visualstudio.com/assets/images/code-stable.png" width="50" /></a>
## Available On

🌟 <a href="https://open-vsx.org/extension/Aleff/duckyscriptcookbook"> <img src="https://vscodium.com/img/codium_cnl.svg" width="60" alt="VSCodium logo" style="vertical-align: middle; margin-right: 8px;"/> **VSCodium** </a> 🌟 <a href="https://marketplace.visualstudio.com/items?itemName=Aleff.duckyscriptcookbook"> <img src="https://code.visualstudio.com/assets/images/code-stable.png" width="60" alt="VSCode logo" style="vertical-align: middle; margin-right: 8px;"/> **VSCode** </a> 🌟

_This is not an official extension of Hak5 or Flipper Zero but was developed by a third party._

Expand Down
31 changes: 31 additions & 0 deletions syntaxes/duckyscript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
{
"include": "#code_blocks"
},
{
"include": "#usb_army_knife"
}
],
"repository": {
Expand Down Expand Up @@ -49,6 +52,34 @@
"match": "(?<=\\s|\\t|^)(STRING|STRING_POWERSHELL|STRING_BATCH|STRING_BASH|STRING_JAVASCRIPT|STRING_PYTHON|STRING_RUBY|STRING_HTML|END_STRING|STRINGLN|STRINGLN_POWERSHELL|STRINGLN_BATCH|STRINGLN_BASH|STRINGLN_JAVASCRIPT|STRINGLN_PYTHON|STRINGLN_RUBY|STRINGLN_HTML|END_STRINGLN|DELAY|ATTACKMODE|ENTER|ESCAPE|SHIFT|ALT|CTRL|GUI|DOWNARROW|DOWN|UPARROW|UP|LEFTARROW|LEFT|RIGHTARROW|RIGHT|TAB|CAPSLOCK|DELETE|DEL|END|ESC|HOME|INSERT|PAGEUP|PAGEDOWN|PRINTSCREEN|SPACE|BACKSPACE|BREAK|PAUSE|MENU|APP|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|NUMLOCK|SCROLLLOCK|WINDOWS|CONTROL|COMMAND|OPTION|INJECT_MOD|WAIT_FOR_BUTTON_PRESS|LED_OFF|LED_R|LED_G|HID|STORAGE|OFF|ATTACKMODE|RANDOM_LOWERCASE_LETTER|RANDOM_UPPERCASE_LETTER|RANDOM_LETTER|RANDOM_NUMBER|RANDOM_SPECIAL|RANDOM_CHAR|VID_RANDOM|PID_RANDOM|MAN_RANDOM|PROD_RANDOM|SERIAL_RANDOM|HOLD|RESET|RESTART_PAYLOAD|STOP_PAYLOAD|HIDE_PAYLOAD|RESTORE_PAYLOAD|WAIT_FOR_CAPS_ON|WAIT_FOR_CAPS_OFF|WAIT_FOR_CAPS_CHANGE|WAIT_FOR_NUM_ON|WAIT_FOR_NUM_OFF|WAIT_FOR_NUM_CHANGE|WAIT_FOR_SCROLL_ON|WAIT_FOR_SCROLL_OFF|WAIT_FOR_SCROLL_CHANGE|SAVE_HOST_KEYBOARD_LOCK_STATE|RESTORE_HOST_KEYBOARD_LOCK_STATE|EXFIL)(?=\\s|\\t|$)"
}
]
},
"usb_army_knife": {
"patterns": [
{
"name": "usb_army_knife.userinterface.duckyscript",
"match": "(?<=\\s|\\t|^)(TFT_OFF|TFT_ON|DISPLAY_PNG|DISPLAY_TEXT|DISPLAY_CLEAR|LED|LED_B)(?=\\s|\\t|$)"
},
{
"name": "usb_army_knife.hardware.duckyscript",
"match": "(?<=\\s|\\t|^)(WEB_OFF|WEB_ON|WIFI_OFF|WIFI_ON|SERIAL|BUTTON_LONG_PRESS|BUTTON_SHORT_PRESS)(?=\\s|\\t|$)"
},
{
"name": "usb_army_knife.usbfunctionality.duckyscript",
"match": "(?<=\\s|\\t|^)(USB_MOUNT_DISK_READ_ONLY|USB_NCM_PCAP_ON|USB_NCM_PCAP_OFF|WAIT_FOR_USB_STORAGE_ACTIVITY|WAIT_FOR_USB_STORAGE_ACTIVITY_TO_STOP|RAW_HID)(?=\\s|\\t|$)"
},
{
"name": "usb_army_knife.hostagent.duckyscript",
"match": "(?<=\\s|\\t|^)(AGENT_RUN|WAIT_FOR_AGENT_RUN_RESULT|AGENT_CONNECTED)(?=\\s|\\t|$)"
},
{
"name": "usb_army_knife.filehandling.duckyscript",
"match": "(?<=\\s|\\t|^)(FILE_EXISTS|CREATE_FILE|DELETE_FILE|LOAD_FILES_FROM_SD|FILE_INDEX_VALID)(?=\\s|\\t|$)"
},
{
"name": "usb_army_knife.other.duckyscript",
"match": "(?<=\\s|\\t|^)(CALC|ESP32M|RUN_PAYLOAD|KEYBOARD_LAYOUT)(?=\\s|\\t|$)"
}
]
}
}
}
24 changes: 21 additions & 3 deletions themes/DarkDuckyScript-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1831,14 +1831,16 @@
"name": "DuckyScript Declaration Keywords",
"scope": "keywords.declaration.duckyscript",
"settings": {
"foreground": "#56B6C2"
"fontStyle": "bold",
"foreground": "#3B82F6"
}
},
{
"name": "DuckyScript Operator Keywords",
"scope": "keywords.operator.duckyscript",
"settings": {
"foreground": "#E06C75"
"fontStyle": "bold",
"foreground": "#b82b58"
}
},
{
Expand All @@ -1853,12 +1855,28 @@
"name": "DuckyScript True Condition Keywords",
"scope": "keywords.truecondition.duckyscript",
"settings": {
"foreground": "#C678DD"
"fontStyle": "bold",
"foreground": "#bdda68"
}
},
{
"name": "DuckyScript Command Keywords",
"scope": "keywords.command.duckyscript",
"settings": {
"fontStyle": "bold",
"foreground": "#af63d5"
}
},
{
"name": "USB Army Knife Commands",
"scope": [
"usb_army_knife.userinterface.duckyscript",
"usb_army_knife.hardware.duckyscript",
"usb_army_knife.usbfunctionality.duckyscript",
"usb_army_knife.hostagent.duckyscript",
"usb_army_knife.filehandling.duckyscript",
"usb_army_knife.other.duckyscript"
],
"settings": {
"fontStyle": "bold",
"foreground": "#61AFEF"
Expand Down
30 changes: 24 additions & 6 deletions themes/LightDuckyScript-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1841,21 +1841,23 @@
],
"settings": {
"fontStyle": "italic",
"foreground": "#6B8E23"
"foreground": "#68B030"
}
},
{
"name": "DuckyScript Declaration Keywords",
"scope": "keywords.declaration.duckyscript",
"settings": {
"foreground": "#1E90FF"
"fontStyle": "bold",
"foreground": "#2563EB"
}
},
{
"name": "DuckyScript Operator Keywords",
"scope": "keywords.operator.duckyscript",
"settings": {
"foreground": "#D2691E"
"fontStyle": "bold",
"foreground": "#9e264c"
}
},
{
Expand All @@ -1870,16 +1872,32 @@
"name": "DuckyScript True Condition Keywords",
"scope": "keywords.truecondition.duckyscript",
"settings": {
"foreground": "#8A2BE2"
"fontStyle": "bold",
"foreground": "#8ea34e"
}
},
{
"name": "DuckyScript Command Keywords",
"scope": "keywords.command.duckyscript",
"settings": {
"fontStyle": "bold",
"foreground": "#D14D4D"
}
"foreground": "#7D4698"
}
},
{
"name": "USB Army Knife Commands",
"scope": [
"usb_army_knife.userinterface.duckyscript",
"usb_army_knife.hardware.duckyscript",
"usb_army_knife.usbfunctionality.duckyscript",
"usb_army_knife.hostagent.duckyscript",
"usb_army_knife.filehandling.duckyscript",
"usb_army_knife.other.duckyscript"
],
"settings": {
"fontStyle": "bold",
"foreground": "#4175a0"
}
}
]
}

0 comments on commit 1833a56

Please sign in to comment.