web-cfw-loader/index.html

82 lines
2.8 KiB
HTML
Raw Normal View History

2018-04-27 22:54:46 +00:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
2018-05-17 17:00:13 +00:00
<title>Switch Payload Loader v1.0</title>
2018-04-27 22:54:46 +00:00
</head>
<body>
2018-05-17 18:50:06 +00:00
<div id=title>
<h1>Web Fusée Payload Launcher</h1>
<p>Fusee Launcher ported to JavaScript using WebUSB.</p>
</div>
2018-04-27 22:54:46 +00:00
<p>
2018-05-17 16:14:24 +00:00
Source can be found on <a href="https://github.com/ElijahZAwesome/web-cfw-loader/">GitHub</a> (or by hitting view source, there is no backend!).
2018-04-27 22:54:46 +00:00
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>
2018-05-17 16:14:24 +00:00
<li>Press 'Run Payload!'</li>
2018-04-27 22:54:46 +00:00
<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>
2018-05-17 18:36:28 +00:00
<li>This is moderately tested. I just kind wrote it and whatever. I'm not responsible if anything goes wrong!</li>
2018-04-27 22:54:46 +00:00
<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>
<div>With the following contents:</div>
<div><code>SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"</code></div>
</li>
<li>This has been tested and appears to work on Linux, OSX, Android (unrooted) and Chromebooks. Your mileage may vary.</li>
</ul>
</p>
<h3>Payload:</h3>
<div>
<form id="mainForm">
<p>
<input type="radio" name="payload" id="fusee.bin" value="fusee.bin" checked>
2018-05-17 17:19:15 +00:00
<label for="fusee.bin">Hekate for 5.0.x Switches</label>
2018-04-27 22:54:46 +00:00
</p>
2018-05-17 18:13:12 +00:00
<p>
<input type="radio" name="payload" id="hekate4" value="hekate4">
<label for="hekate4">Hekate for 4.x Switches</label>
</p>
2018-04-27 22:54:46 +00:00
<p>
<input type="radio" name="payload" id="uploaded" value="uploaded">
<label for="uploaded">Upload payload:</label>
2018-05-17 15:03:49 +00:00
<input type="file" id="payloadUpload" accept=".bin">
2018-04-27 22:54:46 +00:00
</p>
2018-05-17 13:26:02 +00:00
<p>
2018-05-17 13:43:43 +00:00
<input type="checkbox" name="shouldDebug" id="shouldDebug">
2018-05-17 15:01:51 +00:00
<label for="shouldDebug">Just output payload byte array</label>
2018-05-17 13:26:02 +00:00
</p>
2018-04-27 22:54:46 +00:00
</form>
2018-05-17 16:14:24 +00:00
<button id="goButton">Run Payload!</button>
2018-04-27 22:54:46 +00:00
</div>
2018-05-17 18:36:28 +00:00
<h3>Logs:</h3>
2018-04-27 22:54:46 +00:00
<textarea cols="80" rows="12" id="output"></textarea>
<script src="./fusee.bin.js"></script>
<script src="./main.js"></script>
</body>
</html>