From 9c3f29df37eec4401a08f4b220672dc171534bea Mon Sep 17 00:00:00 2001 From: bst04 Date: Mon, 4 Nov 2024 14:58:00 +0100 Subject: [PATCH 1/4] Adding RickRoll-Contact-iOS --- .../prank/RickRoll-Contact-iOS/README.md | 66 +++++++++ .../prank/RickRoll-Contact-iOS/payload.txt | 135 ++++++++++++++++++ 2 files changed, 201 insertions(+) create mode 100644 payloads/library/prank/RickRoll-Contact-iOS/README.md create mode 100644 payloads/library/prank/RickRoll-Contact-iOS/payload.txt diff --git a/payloads/library/prank/RickRoll-Contact-iOS/README.md b/payloads/library/prank/RickRoll-Contact-iOS/README.md new file mode 100644 index 0000000..50bdfe7 --- /dev/null +++ b/payloads/library/prank/RickRoll-Contact-iOS/README.md @@ -0,0 +1,66 @@ +# Create RickRoll Contact - iOS + +This payload is a prank script designed to create a contact named "Ricky Astley" (a nod to the "RickRoll" meme) on an iOS device. It utilizes a dynamic delay mechanism to ensure the system is ready before executing commands. The automated process opens the Contacts app, creates a new contact, and fills in various fields with predefined information: name, last name, phone number, email, website, and other optional details. The fake contact serves as a lighthearted prank, silently inserting a “RickRoll” in the form of a contact entry. + +### Details + +- **Title**: Create RickRoll Contact +- **Author**: bst04 - Aleff +- **Version**: 1.0 +- **Category**: Prank +- **Target**: iOS devices + +### Dependencies + +- We believe that these 4 pieces of information are critical to making contact, even if it is for fun. + + ``` + DEFINE #CONTACTS-APP-NAME Contacts + DEFINE #CONTACT-NAME Ricky + DEFINE #CONTACT-LAST-NAME Astley + DEFINE #CONTACT-PHONE-NUMBER +1(111)111-1111 + ``` + +- Other optional DEFINEs + + ``` + DEFINE #CONTACT-COMPANY example + DEFINE #CONTACT-E-MAIL example + DEFINE #CONTACT-WEBSITE-URL example + DEFINE #CONTACT-BIRTHDAY example + DEFINE #CONTACT-STREET example + DEFINE #CONTACT-CITY example + DEFINE #CONTACT-STATE example + DEFINE #CONTACT-ZIP example + DEFINE #CONTACT-COUNTRY example + ``` + +- Note that if you don't want to set some settings you have to remove the piece of code that sets it as well, for istance... + + If you want to remove the zip contact info, you should change this one piece of code from this... + + ``` + REM zip + DELAY 250 + STRING #CONTACT-ZIP + TAB + ``` + + ... to this... + + ``` + REM zip + DELAY 250 + REM STRING #CONTACT-ZIP + TAB + ``` + + In this way you are going to ignore this step but without altering the proper flow of available information. + +### How It Works + +1. Sets a user-defined options. +2. Uses an extension (`EXTENSION DETECT_READY`) to detect when the device is ready with just a littebit more delay... +3. After readiness is confirmed, the script: + - Runs commands to open **Contacts**. + - Executes some commands to sets the new contact information diff --git a/payloads/library/prank/RickRoll-Contact-iOS/payload.txt b/payloads/library/prank/RickRoll-Contact-iOS/payload.txt new file mode 100644 index 0000000..d26f805 --- /dev/null +++ b/payloads/library/prank/RickRoll-Contact-iOS/payload.txt @@ -0,0 +1,135 @@ +REM_BLOCK +############################################ +# # +# Title : Create RickRoll Contact # +# Author : bst04 - Aleff # +# Version : 1.0 # +# Category : Prank # +# Target : iOS # +# # +############################################ +END_REM + +REM @@@ START MANDATORY DEFINEs @@@ +REM We believe that these 4 pieces of information are critical to making contact, even if it is for fun. + +DEFINE #CONTACTS-APP-NAME Contacts +DEFINE #CONTACT-NAME Ricky +DEFINE #CONTACT-LAST-NAME Astley +DEFINE #CONTACT-PHONE-NUMBER +1(111)111-1111 + +REM @@@ START OPTIONAL DEFINEs @@@ + +DEFINE #CONTACT-COMPANY example +DEFINE #CONTACT-E-MAIL example +DEFINE #CONTACT-WEBSITE-URL example +DEFINE #CONTACT-BIRTHDAY example +DEFINE #CONTACT-STREET example +DEFINE #CONTACT-CITY example +DEFINE #CONTACT-STATE example +DEFINE #CONTACT-ZIP example +DEFINE #CONTACT-COUNTRY example + +REM @@@ START PAYLOAD @@@ + +EXTENSION DETECT_READY + REM VERSION 1.1 + REM AUTHOR: Korben + + REM_BLOCK DOCUMENTATION + USAGE: + Extension runs inline (here) + Place at beginning of payload (besides ATTACKMODE) to act as dynamic + boot delay + + TARGETS: + Any system that reflects CAPSLOCK will detect minimum required delay + Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms + END_REM + + REM CONFIGURATION: + DEFINE #RESPONSE_DELAY 25 + DEFINE #ITERATION_LIMIT 120 + + VAR $C = 0 + WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT)) + CAPSLOCK + DELAY #RESPONSE_DELAY + $C = ($C + 1) + END_WHILE + CAPSLOCK +END_EXTENSION + +REM Another pinch of delay in accordance with https://shop.hak5.org/blogs/usb-rubber-ducky/detect-ready +DELAY 200 + +GUI SPACE +DELAY 250 +STRINGLN #CONTACTS-APP-NAME +DELAY 500 +GUI n + +REM name +DELAY 250 +STRING #CONTACT-NAME +TAB + +REM last name +DELAY 250 +STRING #CONTACT-LAST-NAME +TAB + +REM company +DELAY 250 +STRING #CONTACT-COMPANY +TAB + +REM phone number +DELAY 250 +STRING #CONTACT-PHONE-NUMBER +TAB +TAB + +REM mail +DELAY 250 +STRING #CONTACT-E-MAIL +TAB +TAB + +REM url +DELAY 250 +STRING #CONTACT-WEBSITE-URL +TAB +TAB + +REM birthday +DELAY 250 +STRING #CONTACT-BIRTHDAY +TAB +TAB + +REM street +DELAY 250 +STRING #CONTACT-STREET +TAB + +REM city +DELAY 250 +STRING #CONTACT-CITY +TAB + +REM state +DELAY 250 +STRING #CONTACT-STATE +TAB + +REM zip +DELAY 250 +STRING #CONTACT-ZIP +TAB + +REM country/region +DELAY 250 +STRING #CONTACT-COUNTRY +TAB +GUI q From bad6fb604063c10ec92ef70329f29b75982d96fc Mon Sep 17 00:00:00 2001 From: bst04 Date: Mon, 4 Nov 2024 15:02:21 +0100 Subject: [PATCH 2/4] Adding Send-WhatsApp-Messages-MacOS to prank category --- .../Send-WhatsApp-Messages-MacOS/README.md | 30 ++++++++ .../Send-WhatsApp-Messages-MacOS/payload.txt | 69 +++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md create mode 100644 payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt diff --git a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md b/payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md new file mode 100644 index 0000000..990e735 --- /dev/null +++ b/payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md @@ -0,0 +1,30 @@ +# Send WhatsApp Messages - MacOS + +This script is written in **DuckyScript 3.0** and enables automatic sending of a message via **WhatsApp** on an **MacOS** device. The script waits until the system is ready (using **Caps Lock** detection as an indicator), then launches WhatsApp, types a predefined message, and sends it. + +### Details + +- **Title**: Send WhatsApp Messages - MacOS +- **Author**: bst04 - Aleff +- **Version**: 1.0 +- **Category**: Prank +- **Target**: MacOS devices + +### Dependencies + +- Enter the phone number to which you want to send the message via Whatsapp + + `DEFINE #PHONE-NUMBER example` + +- Set the text message that you want to send + + `DEFINE #TEXT-MESSAGE example` + +### How It Works + +1. Sets a user-defined text message (`#TEXT-MESSAGE`) to be sent via WhatsApp to the number defined too (`#PHONE-NUMBER`). +2. Uses an extension (`EXTENSION DETECT_READY`) to detect when the device is ready with just a littebit more delay... +3. After readiness is confirmed, the script: + - Runs commands to open **WhatsApp**. + - Types the specified phone number to open the chat + - Types the message and sends it. diff --git a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt b/payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt new file mode 100644 index 0000000..c90056e --- /dev/null +++ b/payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt @@ -0,0 +1,69 @@ +REM_BLOCK +################################################# +# # +# Title : Send WhatsApp Messages - MacOS # +# Author : bst04 - Aleff # +# Version : 1.0 # +# Category : Prank # +# Target : MacOS # +# # +################################################# +END_REM + + +REM Enter the phone number to which you want to send the message via Whatsapp +DEFINE #PHONE-NUMBER example + +REM Write the message you wish to send +DEFINE #TEXT-MESSAGE example + +EXTENSION DETECT_READY + REM VERSION 1.1 + REM AUTHOR: Korben + + REM_BLOCK DOCUMENTATION + USAGE: + Extension runs inline (here) + Place at beginning of payload (besides ATTACKMODE) to act as dynamic + boot delay + + TARGETS: + Any system that reflects CAPSLOCK will detect minimum required delay + Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms + END_REM + + REM CONFIGURATION: + DEFINE #RESPONSE_DELAY 25 + DEFINE #ITERATION_LIMIT 120 + + VAR $C = 0 + WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT)) + CAPSLOCK + DELAY #RESPONSE_DELAY + $C = ($C + 1) + END_WHILE + CAPSLOCK +END_EXTENSION + +REM Another pinch of delay in accordance with https://shop.hak5.org/blogs/usb-rubber-ducky/detect-ready +DELAY 200 + +GUI h +DELAY 150 +GUI SPACE +DELAY 150 +BACKSPACE +DELAY 500 +STRINGLN WhatsApp +DELAY 1500 +GUI f +DELAY 500 +STRINGLN #PHONE-NUMBER +DELAY 250 +DOWNARROW +DELAY 250 +DOWNARROW +DELAY 250 +SPACE +DELAY 250 +STRINGLN #TEXT-MESSAGE From 8cd44e511c9edfef9d5f3194fd0608d6666e926f Mon Sep 17 00:00:00 2001 From: bst04 Date: Mon, 4 Nov 2024 15:03:31 +0100 Subject: [PATCH 3/4] eliminate other payload --- .../Send-WhatsApp-Messages-MacOS/README.md | 30 -------- .../Send-WhatsApp-Messages-MacOS/payload.txt | 69 ------------------- 2 files changed, 99 deletions(-) delete mode 100644 payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md delete mode 100644 payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt diff --git a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md b/payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md deleted file mode 100644 index 990e735..0000000 --- a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# Send WhatsApp Messages - MacOS - -This script is written in **DuckyScript 3.0** and enables automatic sending of a message via **WhatsApp** on an **MacOS** device. The script waits until the system is ready (using **Caps Lock** detection as an indicator), then launches WhatsApp, types a predefined message, and sends it. - -### Details - -- **Title**: Send WhatsApp Messages - MacOS -- **Author**: bst04 - Aleff -- **Version**: 1.0 -- **Category**: Prank -- **Target**: MacOS devices - -### Dependencies - -- Enter the phone number to which you want to send the message via Whatsapp - - `DEFINE #PHONE-NUMBER example` - -- Set the text message that you want to send - - `DEFINE #TEXT-MESSAGE example` - -### How It Works - -1. Sets a user-defined text message (`#TEXT-MESSAGE`) to be sent via WhatsApp to the number defined too (`#PHONE-NUMBER`). -2. Uses an extension (`EXTENSION DETECT_READY`) to detect when the device is ready with just a littebit more delay... -3. After readiness is confirmed, the script: - - Runs commands to open **WhatsApp**. - - Types the specified phone number to open the chat - - Types the message and sends it. diff --git a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt b/payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt deleted file mode 100644 index c90056e..0000000 --- a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt +++ /dev/null @@ -1,69 +0,0 @@ -REM_BLOCK -################################################# -# # -# Title : Send WhatsApp Messages - MacOS # -# Author : bst04 - Aleff # -# Version : 1.0 # -# Category : Prank # -# Target : MacOS # -# # -################################################# -END_REM - - -REM Enter the phone number to which you want to send the message via Whatsapp -DEFINE #PHONE-NUMBER example - -REM Write the message you wish to send -DEFINE #TEXT-MESSAGE example - -EXTENSION DETECT_READY - REM VERSION 1.1 - REM AUTHOR: Korben - - REM_BLOCK DOCUMENTATION - USAGE: - Extension runs inline (here) - Place at beginning of payload (besides ATTACKMODE) to act as dynamic - boot delay - - TARGETS: - Any system that reflects CAPSLOCK will detect minimum required delay - Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms - END_REM - - REM CONFIGURATION: - DEFINE #RESPONSE_DELAY 25 - DEFINE #ITERATION_LIMIT 120 - - VAR $C = 0 - WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT)) - CAPSLOCK - DELAY #RESPONSE_DELAY - $C = ($C + 1) - END_WHILE - CAPSLOCK -END_EXTENSION - -REM Another pinch of delay in accordance with https://shop.hak5.org/blogs/usb-rubber-ducky/detect-ready -DELAY 200 - -GUI h -DELAY 150 -GUI SPACE -DELAY 150 -BACKSPACE -DELAY 500 -STRINGLN WhatsApp -DELAY 1500 -GUI f -DELAY 500 -STRINGLN #PHONE-NUMBER -DELAY 250 -DOWNARROW -DELAY 250 -DOWNARROW -DELAY 250 -SPACE -DELAY 250 -STRINGLN #TEXT-MESSAGE From b2b8cf8b2ed2d74d9c912e3e10a74f546b6cf31a Mon Sep 17 00:00:00 2001 From: bst04 Date: Wed, 6 Nov 2024 11:48:33 +0100 Subject: [PATCH 4/4] changing category --- .../library/{prank => mobile/iOS}/RickRoll-Contact-iOS/README.md | 0 .../{prank => mobile/iOS}/RickRoll-Contact-iOS/payload.txt | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename payloads/library/{prank => mobile/iOS}/RickRoll-Contact-iOS/README.md (100%) rename payloads/library/{prank => mobile/iOS}/RickRoll-Contact-iOS/payload.txt (100%) diff --git a/payloads/library/prank/RickRoll-Contact-iOS/README.md b/payloads/library/mobile/iOS/RickRoll-Contact-iOS/README.md similarity index 100% rename from payloads/library/prank/RickRoll-Contact-iOS/README.md rename to payloads/library/mobile/iOS/RickRoll-Contact-iOS/README.md diff --git a/payloads/library/prank/RickRoll-Contact-iOS/payload.txt b/payloads/library/mobile/iOS/RickRoll-Contact-iOS/payload.txt similarity index 100% rename from payloads/library/prank/RickRoll-Contact-iOS/payload.txt rename to payloads/library/mobile/iOS/RickRoll-Contact-iOS/payload.txt