forked from lordfriky/web-cfw-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
176 lines (148 loc) · 9.57 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="favicon.png" rel="icon" type="image/x-icon" />
<title>Switch Payload Loader v1.5</title>
<script src="./i18n/en-US.js"></script>
<script src="./i18n/it-IT.js"></script>
<script src="./i18n/pt-BR.js"></script>
<script src="./i18n/de-DE.js"></script>
<script src="./i18n/es-MX.js"></script>
<script src="./i18n/pl-PL.js"></script>
<script src="./i18n/zh-CN.js"></script>
<script src="./i18n/zh-TW.js"></script>
<script src="./i18n/ru-RU.js"></script>
<script src="./i18n/fr-FR.js"></script>
<script src="./i18n.js"></script>
<!-- JQuery: needed for some Bootstrap Components -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Bootstrap 3 framework -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body class="container-fluid" id="pageBody">
<div class="row" id="title">
<h1 id="pageTitle">Nintendo Switch Payload Loader</h1>
<h4 id="pageSubtitle">Fusee Launcher ported to JavaScript using WebUSB.</h4>
</div>
<div class="row margin-top-md">
<div class="col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
<div class="btn-group" role="group" aria-label="...">
<a class="btn btn-info" href="#" onclick="setPageLanguage('en-US')">English</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('it-IT')">Italiano</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('pt-BR')">Português</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('de-DE')">Deutsch</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('es-MX')">Español</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('pl-PL')">Polski</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('zh-CN')">简体中文</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('zh-TW')">繁体中文</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('ru-RU')">Русский</a>
<a class="btn btn-info" href="#" onclick="setPageLanguage('fr-FR')">French</a>
</div>
</div>
</div>
<div class="row margin-top-md" id="infodiv">
<div class="col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
<div class="alert alert-danger" role="alert">
<p id="dangerDanger">This is moderately tested. Although no issues have been discovered, I'm not responsible if anything goes wrong!</p>
</div>
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p id="warningWindows">This does NOT work on Windows due to a limitation in the Chrome implementation of WebUSB (and probably other reasons!)</p>
</div>
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p id="warningBrowser">This does NOT currently work on any browser but Chrome, because they don't implement WebUSB.</p>
</div>
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p id="warningLinux">On Linux, you might get an 'Access Denied' or 'No Compatible Device' error on the Connect dialog! 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></p>
</div>
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p id="warningTested">This has been tested and appears to work on Linux, OSX, Android (unrooted) and Chromebooks. Your mileage may vary.</p>
</div>
<div class="alert alert-info" role="alert">
<p><strong id="labelInstructions">Instructions:</strong></p>
<ul>
<li id="liRCM">Put the Switch in RCM, and connect it to your device.</li>
<li id="liSelect">Select either the example payload, or upload one.</li>
<li id="liPress">Press 'Deliver Payload!'</li>
<li id="liAPX">On the consent screen that appears, select 'APX' and hit 'Connect'.</li>
<li id="liLaunch">If all goes well, the payload will launch!</li>
</ul>
</div>
<div class="alert alert-info" role="alert">
<p id="labelContribute">If you would like to help adding another translation or updating/adding a payload, check <a href="https://github.com/AtlasNX/web-cfw-loader/blob/master/CONTRIBUTING.md">this</a>.</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
<h1 id="h1SetupDelivery">Setup Payload Delivery</h1>
<form id="mainForm">
<div class="row">
<div class="col-xs-6">
<h4 id="h4SelectPayload">Select Payload:</h4>
</div>
<div class="col-xs-6">
<select class="pull-right" id="payloadSelect" onchange="onSelectChange()">
<option value="atmosphere" id="optionAtmosphere" >Atmosphère</option>
<option value="ReiNX" id="optionReiNX" >ReiNX</option>
<option value="CTCaer_Hekate" id="optionCTCaerHekate" >Hekate</option>
<option value="uploaded" id="optionUpload" >Upload payload</option>
</select>
</div>
</div>
<div class="row" id="uploadContainer" style="display: none">
<div class="col-xs-12">
<input style="float: right" type="file" id="payloadUpload" accept=".bin"/>
</div>
</div>
<div class="row divider-line"></div>
<div class="row margin-top-md">
<div class="col-xs-10">
<h4 id="h4GetByteArray">Get payload byte array (don't sploit)</h4>
</div>
<div class="col-xs-2">
<input class="pull-right" type="checkbox" name="shouldDebug" id="shouldDebug">
</div>
</div>
<div class="row divider-line"></div>
</form>
<div class="row margin-top-md">
<div class="col-xs-6 col-xs-offset-6 col-md-4 col-md-offset-8">
<button class="btn btn-primary btn-lg btn-block" id="goButton">Deliver Payload!</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
<h3 id="h3Log">Log:</h3>
<div id="output"></div>
<button class="btn btn-primary pull-right margin-top-md" id="clearlogsbutton" onclick="clearLog();">Clear Logs</button><br><br>
</div>
</div>
<script src="./payloads/hekate.js"></script>
<script src="./payloads/reinx.js"></script>
<script src="./payloads/fusee-primary.js"></script>
<script src="./main.js"></script>
</body>
<div class="row margin-top-md" id="page-footer">
<div class="col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
<div id="disclaimer">
<p id="disclaimer1">Source can be found on <a href="https://github.com/AtlasNX/web-cfw-loader">GitHub</a> (or by hitting view source, there is no backend!).</p>
<p id="disclaimer3">Thanks to <a href="https://github.com/ktemkin">ktemkin</a> and <a href="https://github.com/reswitched">ReSwitched</a> for fusee-gelee, as well as <br><a href="https://github.com/atlas44">Atlas44</a> and <a href="https://atlas44.s3-us-west-2.amazonaws.com/web-fusee-launcher/index.html">his website</a> as a beginning point for this one.</p>
<p id="disclaimer4">Lastly, thanks to <a href="https://github.com/ElijahZAwesome">ElijahZAwesome</a> for creating this project, <a href="https://github.com/falquinho">falquinho</a> for the new bootstrap layout and portuguese translation, <a href="https://github.com/Filo97">Filo97</a> for the italian translation, <a href="https://github.com/lordfriky">Lord_Friky</a> for the spanish translation, <a href="https://github.com/lorek123">Lorek</a> for the polish translation, <a href="https://github.com/wababc">wabac</a> for their french translation and <a href="https://github.com/Rakau">Rakau</a> for the chinese translations.</p>
<p id="disclaimer5">© <a href="https://git.teamatlasnx.com">Team AtlasNX</a> & <a href="https://github.com/ElijahZAwesome">ElijahZAwesome</a> | 2018-2019</p>
</div>
</div>
</div>
</html>