Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/mobile/iOS/RickRoll-Contact-iOS/payload.txt
2971 views
1
REM_BLOCK
2
############################################
3
# #
4
# Title : Create RickRoll Contact #
5
# Author : bst04 - Aleff #
6
# Version : 1.0 #
7
# Category : Prank #
8
# Target : iOS #
9
# #
10
############################################
11
END_REM
12
13
REM @@@ START MANDATORY DEFINEs @@@
14
REM We believe that these 4 pieces of information are critical to making contact, even if it is for fun.
15
16
DEFINE #CONTACTS-APP-NAME Contacts
17
DEFINE #CONTACT-NAME Ricky
18
DEFINE #CONTACT-LAST-NAME Astley
19
DEFINE #CONTACT-PHONE-NUMBER +1(111)111-1111
20
21
REM @@@ START OPTIONAL DEFINEs @@@
22
23
DEFINE #CONTACT-COMPANY example
24
DEFINE #CONTACT-E-MAIL example
25
DEFINE #CONTACT-WEBSITE-URL example
26
DEFINE #CONTACT-BIRTHDAY example
27
DEFINE #CONTACT-STREET example
28
DEFINE #CONTACT-CITY example
29
DEFINE #CONTACT-STATE example
30
DEFINE #CONTACT-ZIP example
31
DEFINE #CONTACT-COUNTRY example
32
33
REM @@@ START PAYLOAD @@@
34
35
EXTENSION DETECT_READY
36
REM VERSION 1.1
37
REM AUTHOR: Korben
38
39
REM_BLOCK DOCUMENTATION
40
USAGE:
41
Extension runs inline (here)
42
Place at beginning of payload (besides ATTACKMODE) to act as dynamic
43
boot delay
44
45
TARGETS:
46
Any system that reflects CAPSLOCK will detect minimum required delay
47
Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms
48
END_REM
49
50
REM CONFIGURATION:
51
DEFINE #RESPONSE_DELAY 25
52
DEFINE #ITERATION_LIMIT 120
53
54
VAR $C = 0
55
WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT))
56
CAPSLOCK
57
DELAY #RESPONSE_DELAY
58
$C = ($C + 1)
59
END_WHILE
60
CAPSLOCK
61
END_EXTENSION
62
63
REM Another pinch of delay in accordance with https://shop.hak5.org/blogs/usb-rubber-ducky/detect-ready
64
DELAY 200
65
66
GUI SPACE
67
DELAY 250
68
STRINGLN #CONTACTS-APP-NAME
69
DELAY 500
70
GUI n
71
72
REM name
73
DELAY 250
74
STRING #CONTACT-NAME
75
TAB
76
77
REM last name
78
DELAY 250
79
STRING #CONTACT-LAST-NAME
80
TAB
81
82
REM company
83
DELAY 250
84
STRING #CONTACT-COMPANY
85
TAB
86
87
REM phone number
88
DELAY 250
89
STRING #CONTACT-PHONE-NUMBER
90
TAB
91
TAB
92
93
REM mail
94
DELAY 250
95
STRING #CONTACT-E-MAIL
96
TAB
97
TAB
98
99
REM url
100
DELAY 250
101
STRING #CONTACT-WEBSITE-URL
102
TAB
103
TAB
104
105
REM birthday
106
DELAY 250
107
STRING #CONTACT-BIRTHDAY
108
TAB
109
TAB
110
111
REM street
112
DELAY 250
113
STRING #CONTACT-STREET
114
TAB
115
116
REM city
117
DELAY 250
118
STRING #CONTACT-CITY
119
TAB
120
121
REM state
122
DELAY 250
123
STRING #CONTACT-STATE
124
TAB
125
126
REM zip
127
DELAY 250
128
STRING #CONTACT-ZIP
129
TAB
130
131
REM country/region
132
DELAY 250
133
STRING #CONTACT-COUNTRY
134
TAB
135
GUI q
136
137