-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
404 lines (358 loc) · 17.8 KB
/
index.html
File metadata and controls
404 lines (358 loc) · 17.8 KB
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>INTERCEPTOR | OPT-OUT</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;700&display=swap');
:root {
--bg: #ffffff;
--fg: #000000;
--code-bg: #f4f4f4;
--border-color: #000000;
}
body.dark-mode {
--bg: #000000;
--fg: #ffffff;
--code-bg: #1a1a1a;
--border-color: #ffffff;
}
body {
background-color: var(--bg);
color: var(--fg);
font-family: 'Inter', sans-serif;
line-height: 1.5;
transition: background-color 0.3s, color 0.3s;
}
pre,
code {
font-family: 'JetBrains Mono', monospace;
border-radius: 0 !important;
}
pre {
background-color: var(--code-bg);
color: var(--fg);
padding: 1.5rem;
border: 1px solid var(--border-color);
overflow-x: auto;
transition: background-color 0.3s, border-color 0.3s;
}
.border-sharp {
border: 1px solid var(--border-color);
transition: border-color 0.3s;
}
/* Sidebar Links */
.sidebar-link {
display: block;
padding: 0.5rem 0;
text-decoration: none;
color: var(--fg);
border-bottom: 1px solid transparent;
transition: border-color 0.3s;
}
.sidebar-link:hover {
border-bottom: 1px solid var(--fg);
}
/* Tables */
table {
border-collapse: collapse;
width: 100%;
}
th,
td {
border: 1px solid var(--border-color);
padding: 0.75rem;
text-align: left;
transition: border-color 0.3s;
}
th {
background-color: var(--fg);
color: var(--bg);
transition: background-color 0.3s, color 0.3s;
}
/* Headers & Footer Border */
h1,
h2,
h3,
h4,
footer {
border-color: var(--border-color);
transition: border-color 0.3s;
}
h1,
h2,
h3,
h4 {
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Theme Toggling Logic */
#logo-dark,
#sun-icon {
display: none;
}
#logo-light,
#moon-icon {
display: block;
}
body.dark-mode #logo-dark {
display: block;
}
body.dark-mode #logo-light {
display: none;
}
body.dark-mode #sun-icon {
display: block;
}
body.dark-mode #moon-icon {
display: none;
}
/* Invert the black tag in dark mode */
body.dark-mode .bg-black {
background-color: #ffffff;
color: #000000;
}
</style>
</head>
<body class="p-6 md:p-12">
<header class="mb-16 border-b-4 pb-8 border-[var(--border-color)]">
<div class="flex justify-between items-center mb-8 flex-wrap gap-8">
<div class="flex items-center gap-8">
<div class="w-24 h-24 relative flex-shrink-0">
<img src="images/LOGO_LIGHT.png" id="logo-light"
class="absolute inset-0 w-full h-full object-contain" alt="Light Logo">
<img src="images/LOGO_DARK.png" id="logo-dark"
class="absolute inset-0 w-full h-full object-contain" alt="Dark Logo">
</div>
<h1 class="text-6xl md:text-8xl leading-none">INTERCEPTOR</h1>
</div>
<div class="text-right flex flex-col items-end gap-6">
<button id="theme-toggle"
class="focus:outline-none p-2 border-sharp hover:bg-[var(--fg)] hover:text-[var(--bg)] transition-colors cursor-pointer">
<svg id="sun-icon" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="square" stroke-linejoin="miter" stroke-width="2"
d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M12 8a4 4 0 100 8 4 4 0 000-8z" />
</svg>
<svg id="moon-icon" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="square" stroke-linejoin="miter" stroke-width="2"
d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
</svg>
</button>
<div>
<p class="font-bold text-xl uppercase tracking-tighter">OPT-OUT</p>
<p class="text-xs uppercase tracking-widest opacity-60">Brussels 2026</p>
</div>
</div>
</div>
<p class="text-xl uppercase tracking-widest">ESP-NOW to OSC Smart Router</p>
<div class="mt-8 flex flex-wrap gap-4 text-sm font-bold uppercase">
<span class="border-sharp px-4 py-1">Build v1.0.0</span>
<span class="border-sharp px-4 py-1">Python 3</span>
<span class="border-sharp px-4 py-1 bg-black text-white transition-colors">OSC Bridging</span>
</div>
</header>
<div class="grid grid-cols-1 md:grid-cols-4 gap-12">
<aside class="md:col-span-1">
<nav class="sticky top-12 space-y-4 uppercase text-xs font-bold tracking-tighter">
<a href="#download" class="sidebar-link">00. Download - Install</a>
<a href="#logic" class="sidebar-link">01. Architecture</a>
<a href="#arguments" class="sidebar-link">02. CLI Arguments</a>
<a href="#gatekeeping" class="sidebar-link">03. Payload Gatekeeping</a>
<a href="#quickstart" class="sidebar-link">04. Execution Workflows</a>
</nav>
</aside>
<main class="md:col-span-3 space-y-24">
<section id="download">
<h2 class="text-3xl mb-6">00. Download - Install</h2>
<div class="border-sharp p-8 bg-[var(--code-bg)]">
<p class="mb-4 text-sm font-bold uppercase tracking-widest">ESP32 Hardware Compatibility:</p>
<ul class="list-disc list-inside mb-8 text-sm opacity-90 space-y-2">
<li><strong>Zero-Hardware Receiver:</strong> INTERCEPTOR is a pure Python script that utilizes
your computer's native Wi-Fi card in Monitor Mode to sniff ESP-NOW traffic directly from the
air. It requires <strong>no ESP32 hardware</strong> to function as a receiver, and is
universally compatible with reading packets originating from any Espressif chip (ESP32,
ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6).</li>
</ul>
<p class="mb-4 text-sm font-bold uppercase tracking-widest">Prerequisites & Libraries:</p>
<pre><code>pip install scapy mac-vendor-lookup customtkinter</code></pre>
<p class="mt-6 text-sm opacity-70">Requires Python 3. Because this script interacts directly with
raw network hardware, it *must* be executed using <code>sudo</code>. If using the GUI version on
Linux, `sudo -E` may be required to preserve display server variables.</p>
</div>
</section>
<section id="logic">
<h2 class="text-3xl mb-6">01. Architecture</h2>
<p class="mb-6 max-w-2xl">
A lightweight, zero-hardware bridge that turns your computer's native Wi-Fi card into a direct
ESP-NOW receiver.
</p>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-0 border-sharp">
<div class="p-8 border-b sm:border-b-0 sm:border-r border-[var(--border-color)]">
<h3 class="text-lg mb-2">OSC Sniffing</h3>
<p class="text-sm">Instead of requiring a dedicated "Receiver ESP32" plugged into your computer
via USB, this script sniffs raw radio waves, identifies packets coming from Espressif chips,
perfectly slices out <b>OSC (Open Sound Control)</b> payloads, and forwards them instantly
over UDP.</p>
</div>
<div class="p-8">
<h3 class="text-lg mb-2">Live Hardware Discovery</h3>
<p class="text-sm">Maintains an active memory bank of all ESP32s in the room, printing a clean
Session Summary of unique MAC addresses when you kill the script via <code>Ctrl+C</code>.
Works in fully offline environments after running the internal `update` command.</p>
</div>
</div>
</section>
<section id="arguments">
<h2 class="text-3xl mb-6">02. Command Line Arguments</h2>
<table>
<thead>
<tr>
<th>POS</th>
<th>Argument</th>
<th>Examples</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td class="font-bold">OS</td>
<td class="font-mono">mac, linux</td>
<td>Your current operating system variant to load specific sniffers.</td>
</tr>
<tr>
<td>2</td>
<td class="font-bold">TARGET</td>
<td class="font-mono">ALL, 24:0A:C4...</td>
<td>The specific MAC address to track, or <code>ALL</code> for all traffic.</td>
</tr>
<tr>
<td>3</td>
<td class="font-bold">INTERFACE</td>
<td class="font-mono">en0, wlan1</td>
<td>The physical Wi-Fi hardware interface name.</td>
</tr>
<tr>
<td>4</td>
<td class="font-bold">CHANNEL</td>
<td class="font-mono">1, 6, 11, 0</td>
<td>The 2.4GHz Wi-Fi channel. Use <code>0</code> on Linux for background scanning.</td>
</tr>
<tr>
<td>5</td>
<td class="font-bold">DESTINATION</td>
<td class="font-mono">127.0.0.1, pro-mac</td>
<td>Local IP or smart-handled Hostname of the target art machine.</td>
</tr>
<tr>
<td>6</td>
<td class="font-bold">PORT</td>
<td class="font-mono">8000, 9000</td>
<td>The UDP port the visual/audio software is listening to.</td>
</tr>
<tr>
<td>-</td>
<td class="font-bold">[LOG_FILE]</td>
<td class="font-mono opacity-60">session.csv</td>
<td>(Optional) Save a full timestamped packet history.</td>
</tr>
<tr>
<td>-</td>
<td class="font-bold">[--wrap-raw]</td>
<td class="font-mono opacity-60">--wrap-raw</td>
<td>(Optional) Non-OSC plain text payloads are pushed back in.</td>
</tr>
</tbody>
</table>
</section>
<section id="gatekeeping">
<h2 class="text-3xl mb-6">03. Payload Gatekeeping</h2>
<div class="space-y-6">
<div class="border-sharp p-6">
<code class="block text-lg font-bold">Valid OSC (Pass-Through)</code>
<p class="text-sm mt-2 opacity-70">If a packet contains a standard OSC address (`/`) or bundle
(`#bundle`) paired with a valid null-terminated type tag, the script strips the radio header
and forwards the raw bytes immediately.</p>
</div>
<div class="border-sharp p-6 bg-[var(--code-bg)]">
<code class="block text-lg font-bold">Raw Text Wrappers (--wrap-raw)</code>
<p class="text-sm mt-2 opacity-70">If an ESP32 sends normal text (e.g.
<code>"temp: 24.5"</code>) and the <code>--wrap-raw</code> flag is enabled, the router
intercepts it, mathematically pads it into 4-byte boundaries, and encapsulates the string
inside a valid <code>/rawdata</code> OSC message so it won't crash your target audio
software.
</p>
</div>
</div>
</section>
<section id="quickstart">
<h2 class="text-3xl mb-6">04. Execution Workflows</h2>
<div class="grid grid-cols-1 gap-12">
<div>
<h3 class="text-lg mb-4 font-bold border-l-4 border-[var(--border-color)] pl-4">The Graphical
Interface (GUI)</h3>
<p class="text-sm mb-4 opacity-70">A dark-themed tracking dashboard built with CustomTkinter.
All commands below are wrapped securely within this interface with real-time log scrolling.
</p>
<pre><code>sudo python3 INTERCEPTOR_GUI.py</code></pre>
</div>
<div>
<h3 class="text-lg mb-4 font-bold border-l-4 border-[var(--border-color)] pl-4">CLI Mode: macOS
Run
Example</h3>
<p class="text-sm mb-4 opacity-70">Because Apple heavily restricts background hardware control,
the script uses <code>libpcap</code> to read the raw radio waves, but you must manually lock
the frequency.<br><b>Hold Option(⌥) > Click Wi-Fi > Wireless Diagnostics > Window > Sniffer
> Lock to Channel</b></p>
<pre><code>sudo python3 INTERCEPTOR.py mac ALL en0 1 visuals-macpro 8000</code></pre>
</div>
<div>
<h3 class="text-lg mb-4 font-bold border-l-4 border-[var(--border-color)] pl-4">Linux
Environment Runner</h3>
<p class="text-sm mb-4 opacity-70">Linux allows Python to fully control the hardware. The script
will automatically tear down your managed Wi-Fi, force the adapter into Monitor Mode, lock
the channel, and restore everything to normal the moment you press <code>Ctrl+C</code>.</p>
<pre><code>sudo python3 INTERCEPTOR.py linux ALL wlan1 1 127.0.0.1 8000 session.csv --wrap-raw</code></pre>
</div>
<div>
<h3 class="text-lg mb-4 font-bold border-l-4 border-[var(--border-color)] pl-4">Linux Scan Mode
Background Sweep</h3>
<p class="text-sm mb-4 opacity-70">If you don't know what channel your devices are on, pass
<code>0</code> as the channel argument. The script will launch a background thread that
continuously sweeps channels 1, 6, and 11 to discover lost devices.
</p>
<pre><code>sudo python3 INTERCEPTOR.py linux ALL wlan1 0 visuals-macpro 8000</code></pre>
</div>
</div>
</section>
</main>
</div>
<footer
class="mt-32 pt-12 border-t border-[var(--border-color)] text-xs uppercase font-bold tracking-widest flex justify-between">
<span>INTERCEPTOR UDP BRIDGE</span>
<span>OPT-OUT / BRUSSELS 2026</span>
</footer>
<script>
// Theme Toggling Logic
const themeToggleBtn = document.getElementById('theme-toggle');
const bodyElement = document.body;
const currentTheme = localStorage.getItem('theme');
if (currentTheme === 'dark') {
bodyElement.classList.add('dark-mode');
}
themeToggleBtn.addEventListener('click', () => {
bodyElement.classList.toggle('dark-mode');
if (bodyElement.classList.contains('dark-mode')) {
localStorage.setItem('theme', 'dark');
} else {
localStorage.setItem('theme', 'light');
}
});
</script>
</body>
</html>