Compare commits
4 Commits
f3053273a4
...
b495fcf019
Author | SHA1 | Date |
---|---|---|
Peaks | b495fcf019 | |
bst04 | 2bb2878554 | |
bst04 | f5a2ceec62 | |
bst04 | 97be872ded |
|
@ -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.
|
|
@ -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
|
Loading…
Reference in New Issue