forked from wasdwasd0105/SuperWiFiDuck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
309 lines (307 loc) · 13.1 KB
/
index.html
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<!--
This software is licensed under the MIT License. See the license file for details.
Source: https://github.com/spacehuhntech/WiFiDuck
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.8, minimal-ui">
<meta name="theme-color" content="#36393E">
<meta name="description" content="WiFi Duck">
<title>WiFi Duck</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="script.js"></script>
<script src="index.js"></script>
</head>
<body>
<nav>
<ul class="menu">
<li><a href="index.html">WiFi Duck</a></li>
<li><a href="settings.html">Settings</a></li>
<li><a href="terminal.html">Terminal</a></li>
<li><a href="credits.html">About</a></li>
</ul>
</nav>
<div id="status"></div>
<main>
<section>
<h1>Status</h1>
<div class="row">
<p><b>Storage: </b><span id="freeMemory">-</span></p>
<button class="danger" id="format">format</button>
<button class="warn" id="stop">stop</button>
<button class="white" id="reconnect">reconnect</button>
</div>
</section>
<section>
<h1>Scripts <a class="reload" id="scriptsReload">↻</a></h1>
<table class="table" id="scriptTable"></table>
<div class="row">
<input placeholder="Filename /<name>" type="text" class="smooth" value="/" id="newFile"/>
<button class="success" onclick="create(get_new_filename())">create</button>
</div>
</section>
<section>
<h1>Editor <a class="reload" id="editorReload">↻</a></h1>
<div class="row">
<input placeholder="Filename /<name>" type="text" class="smooth" value="/" id="editorFile">
<button class="danger" id="editorDelete">delete</button>
<button class="primary" id="editorDownload">download</button>
<button class="primary" id="editorAutorun">Enable autorun</button>
</div>
<div class="row">
<textarea class="smooth" id="editor"></textarea>
</div>
<div class="row">
<div class="debugger">
Output: <span id="editorinfo">saved</span>
</div>
</div>
<div class="row">
<div id="editor-primary-buttons">
<button class="success" id="editorSave">save</button>
<button class="warn" id="editorRun">run</button>
<button class="danger" id="editorStop">stop</button>
</div>
</div>
</section>
<section>
<!--<h1>Documentation</h1>-->
<h2>Scripting</h2>
<h3>Basics</h3>
<p>
Keys are separated by a single space.<br>
Everything written in a single line gets pressed and released at the same time.<br>
To write text, use the STRING function.
</p>
<table>
<thead>
<tr>
<th>Example</th>
<th>Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td>WINDOWS
<br> r
</td>
<td>Type the Windows key and then the r key</td>
</tr>
<tr>
<td>WINDOWS r</td>
<td>Press the Windows key and the r key simultaneously</td>
</tr>
<tr>
<td>STRING WINDOWS r</td>
<td>Write WINDOWS r</td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table id="ducky-functions-table">
<thead>
<tr>
<th>Command</th>
<th>Example</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>REM</code></td>
<td><code>REM Hello World!</code></td>
<td>Comment</td>
</tr>
<tr>
<td><code>DEFAULTDELAY</code> or <code>DEFAULT_DELAY</code></td>
<td><code>DEFAULTDELAY 200</code></td>
<td>Time in ms between every command</td>
</tr>
<tr>
<td><code>DELAY</code></td>
<td><code>DELAY 1000</code></td>
<td>Delay in ms</td>
</tr>
<tr>
<td><code>STRING</code></td>
<td><code>STRING Hello World!</code></td>
<td>Types the following string</td>
</tr>
<tr>
<td><code>REPEAT</code> or <code>REPLAY</code></td>
<td><code>REPEAT 3</code></td>
<td>Repeats the last command n times</td>
</tr>
<tr>
<td><code>LOCALE</code></td>
<td><code>LOCALE DE</code></td>
<td>Sets the keyboard layout. Available: <code>DE</code>, <code>GB</code>, <code>US</code>, <code>ES</code>, <code>FR</code>, <code>DK</code>, <code>RU</code>, <code>BE</code>, <code>PT</code>, <code>IT</code>, <code>SK</code>, <code>CZ</code>, <code>SI</code>, <code>BG</code>, <code>CA-FR</code>, <code>CH-DE</code>, <code>CH-FR</code>, <code>HU</code>
</td>
</tr>
<tr>
<td><code>KEYCODE</code></td>
<td><code>KEYCODE 0x02 0x04</code></td>
<td>Types a specific key code (modifier, key1[, ..., key6]) in decimal or hexadecimal</td>
</tr>
<tr>
<td><code>LED</code></td>
<td><code>LED 40 20 10</code></td>
<td>Changes the color of the LED in decimal RGB values (0-255)</td>
</tr>
</tbody>
</table>
<h3>Standard Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>a</code> - <code>z</code></td>
</tr>
<tr>
<td><code>A</code> - <code>Z</code></td>
</tr>
<tr>
<td><code>0</code> - <code>9</code></td>
</tr>
<tr>
<td><code>F1</code> - <code>F12</code></td>
</tr>
</tbody>
</table>
<h3>Modifier Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>CTRL</code> or <code>CONTROL</code></td>
</tr>
<tr>
<td><code>SHIFT</code></td>
</tr>
<tr>
<td><code>ALT</code></td>
</tr>
<tr>
<td><code>WINDOWS</code> or <code>GUI</code></td>
</tr>
</tbody>
</table>
<h3>Other Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ENTER</code></td>
</tr>
<tr>
<td><code>MENU</code> or <code>APP</code></td>
</tr>
<tr>
<td><code>DELETE</code></td>
</tr>
<tr>
<td><code>HOME</code></td>
</tr>
<tr>
<td><code>INSERT</code></td>
</tr>
<tr>
<td><code>PAGEUP</code></td>
</tr>
<tr>
<td><code>PAGEDOWN</code></td>
</tr>
<tr>
<td><code>UP</code> or <code>UPARROW</code></td>
</tr>
<tr>
<td><code>DOWN</code> or <code>DOWNARROW</code></td>
</tr>
<tr>
<td><code>LEFT</code> or <code>LEFTARROW</code></td>
</tr>
<tr>
<td><code>RIGHT</code> or <code>RIGHTARROW</code></td>
</tr>
<tr>
<td><code>TAB</code></td>
</tr>
<tr>
<td><code>END</code></td>
</tr>
<tr>
<td><code>ESC</code> or <code>ESCAPE</code></td>
</tr>
<tr>
<td><code>SPACE</code></td>
</tr>
<tr>
<td><code>PAUSE or BREAK</code></td>
</tr>
<tr>
<td><code>CAPSLOCK</code></td>
</tr>
<tr>
<td><code>NUMLOCK</code></td>
</tr>
<tr>
<td><code>PRINTSCREEN</code></td>
</tr>
<tr>
<td><code>SCROLLLOCK</code></td>
</tr>
</tbody>
</table>
<h3>Numpad Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>NUM_0</code> - <code>NUM_9</code></td>
</tr>
<tr>
<td><code>NUM_ASTERIX</code></td>
</tr>
<tr>
<td><code>NUM_ENTER</code></td>
</tr>
<tr>
<td><code>NUM_MINUS</code></td>
</tr>
<tr>
<td><code>NUM_DOT</code></td>
</tr>
<tr>
<td><code>NUM_PLUS</code></td>
</tr>
</tbody>
</table>
</section>
</main>
<footer>
<a href="https://github.com/spacehuhntech/WiFiDuck" target="_blank">Source</a>
<br><br>
<span id="version"></span><br>
Copyright (c) 2021 Spacehuhn Technologies<br>
<a href="https://spacehuhn.com" target="_blank">spacehuhn.com</a>
</footer>
</body>
</html>