-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (62 loc) · 2.53 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>WebFG++</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<h1>Web Fusée Launcher++</h1>
<p>Fusee Launcher ported to JavaScript using WebUSB.</p>
<p>
Source can be found on <a href="https://github.com/atlas44/web-fusee-launcher">GitHub</a> (or by hitting view source, there is no backend!).
Ported from <a href="https://github.com/reswitched/fusee-launcher">fusee-launcher</a>.
Thanks to ktemkin and ReSwitched for Fusée Gelée and a ton of other things!
</p>
<p>
<h4>Instructions:</h4>
<ol>
<li>Put the Switch in RCM, and connect it to your device.</li>
<li>Select either the example payload, or upload one.</li>
<li>Press 'Do the thing!'</li>
<li>On the consent screen that appears, select 'APX' and hit confirm.</li>
<li>If all goes well, the payload will launch!</li>
</ol>
</p>
<p>
<h4>Random stuff:</h4>
<ul>
<li>This is pretty poorly tested. I just kind wrote it and whatever. I'm not responsible if anything goes wrong!</li>
<li>This does NOT work on Windows due to a limitation in the Chrome implementation of WebUSB (and probably other reasons!)</li>
<li>This does NOT currently work on any browser but Chrome, because they don't implement WebUSB.</li>
<li>On Linux, you might get an access denied error!
If you do, you can try creating a file at <code>/etc/udev/rules.d/50-switch.rules</code> With the following contents:<br>
<code>SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"</code>
</li>
<li>This has been tested and appears to work on Linux, OSX, Android (unrooted) and Chromebooks. Your mileage may vary.</li>
</ul>
</p>
</div>
<div>
<h3>Payload:</h3>
<form id="mainForm">
<p>
<input type="radio" name="payload" id="fusee.bin" value="fusee.bin" checked>
<label for="fusee.bin">Example payload (fusee.bin)</label>
</p>
<p>
<input type="radio" name="payload" id="uploaded" value="uploaded">
<label for="uploaded">Upload payload:</label>
<input type="file" id="payloadUpload">
</p>
</form>
<button id="goButton">Inject Payload!</button>
<h3>Result:</h3>
<textarea cols="50" rows="10" id="output"></textarea>
</div>
<script src="./fusee.bin.js"></script>
<script src="./main.js"></script>
</body>
</html>