web-cfw-loader/index.html

88 lines
3.2 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 19:06:27 +00:00
<link rel="stylesheet" type="text/css" href="style.css" />
2018-05-17 21:38:07 +00:00
<link href="favicon.png" rel="icon" type="image/x-icon" />
2018-05-17 19:20:32 +00:00
<title>Switch Payload Loader v1.1</title>
2018-04-27 22:54:46 +00:00
</head>
<body>
2018-05-17 19:11:43 +00:00
<div id="title">
2018-05-17 18:50:06 +00:00
<h1>Web Fusée Payload Launcher</h1>
<p>Fusee Launcher ported to JavaScript using WebUSB.</p>
</div>
2018-05-17 19:11:43 +00:00
<div id="disclaimer">
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>
2018-05-17 19:11:43 +00:00
</div>
2018-04-27 22:54:46 +00:00
2018-05-17 21:25:52 +00:00
<div>
2018-04-27 22:54:46 +00:00
<h4>Instructions:</h4>
2018-05-17 21:25:52 +00:00
<p>Put the Switch in RCM, and connect it to your device.</p>
<p>Select either the example payload, or upload one.</p>
<p>Press 'Run Payload!'</p>
<p>On the consent screen that appears, select 'APX' and hit confirm.</p>
<p>If all goes well, the payload will launch!</p>
</div>
2018-04-27 22:54:46 +00:00
2018-05-17 21:25:52 +00:00
<div>
2018-05-17 22:03:19 +00:00
<h4>Info:</h4>
2018-05-17 21:25:52 +00:00
<p>This is moderately tested. I just kind wrote it and whatever. I'm not responsible if anything goes wrong!</p>
<p>This does NOT work on Windows due to a limitation in the Chrome implementation of WebUSB (and probably other reasons!)</p>
<p>This does NOT currently work on any browser but Chrome, because they don't implement WebUSB.</p>
<p>On Linux, you might get an access denied error!
2018-04-27 22:54:46 +00:00
If you do, you can try creating a file at <code>/etc/udev/rules.d/50-switch.rules</code>
2018-05-17 21:25:52 +00:00
With the following contents:<br>
<code>SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"</code>
</p>
<p>This has been tested and appears to work on Linux, OSX, Android (unrooted) and Chromebooks. Your mileage may vary.</p>
</div>
2018-04-27 22:54:46 +00:00
<h3>Payload:</h3>
<div>
<form id="mainForm">
<p>
2018-05-17 21:12:07 +00:00
<input type="radio" name="payload" id="hekate v5" value="hekate v5" checked>
<label for="hekate v5">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>
2018-05-17 21:12:07 +00:00
<input type="radio" name="payload" id="hekate v4" value="hekate v4">
<label for="hekate v4">Hekate for 4.x Switches</label>
2018-05-17 18:13:12 +00:00
</p>
2018-05-17 21:29:17 +00:00
<p>
<input type="radio" name="payload" id="fusee" value="fusee">
<label for="fusee">(Re)Switched test payload (fusee)</label>
</p>
2018-04-27 22:54:46 +00:00
<p>
<input type="radio" name="payload" id="uploaded" value="uploaded">
2018-05-17 21:31:28 +00:00
<label for="uploaded">Upload payload:<br></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-05-17 22:03:19 +00:00
<button id="clearlogsbutton" onclick="clearLog();">Clear Logs</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>