-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
379 lines (355 loc) · 15.2 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.8"> <!-- Make sure it's mobile-friendly -->
<title>Certificate Files</title>
<style>
body {
font-family: 'Lucida', monospace;
margin: 0;
padding: 20px;
color: white;
background: linear-gradient(45deg, #2E0854, #4B0082, #8952BC, #4B0082, #2E0854);
background-size: 400% 400%;
animation: gradient 10s ease infinite;
height: 100vh;
}
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 5px;
margin-bottom: 20px;
}
th, td {
padding: 12px;
text-align: left;
background-color: rgba(255, 255, 255, 0.1);
color: white;
border-radius: 15px;
}
th {
background-color: rgba(255, 255, 255, 0.3);
}
tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.05);
}
a {
text-decoration: none;
color: #FFC0CB;
}
a:hover {
text-decoration: underline;
}
.date {
color: white;
}
@media (max-width: 600px) {
body {
padding: 20px;
/*font-size: 16px;*/
}
th, td {
padding: 8px;
border-radius: 5px;
}
}
td.filename {
max-width: 45vw;
white-space: normal;
word-wrap: break-word;
}
td.size, td.date {
white-space: nowrap;
}
.faq-container {
max-width: 600px;
margin: auto;
background: rgba(255, 255, 255, 0.1);
border-radius: 25px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
color: white;
}
.faq-header {
margin-top: 5px;
padding: 10px;
background: #533080;
opacity: 0.8;
color: #fff;
text-align: center;
border-radius: 15px;
font-weight: bold;
margin-bottom: 5px;
}
.faq-item {
/*border-bottom: 1px solid #ddd;*/
padding: 5px 0;
}
.faq-item:last-child {
border-bottom: none;
}
.faq-question {
padding: 15px;
cursor: pointer;
background: rgba(255, 255, 255, 0.2);
border: none;
width: 100%;
text-align: left;
font-size: 12px
outline: none;
color: white;
font-weight: bold;
transition: background 0.3s;
border-radius: 15px;
}
.faq-question:hover {
background: rgba(255, 255, 255, 0.3);
}
.faq-answer {
padding: 10px;
display: none;
background: rgba(255, 255, 255, 0.1);
color: white;
transition: max-height 0.3s ease;
border-radius: 15px;
margin-top: 10px;
}
.rounded-image {
width: 64px;
height: 64px;
border-radius: 10%;
overflow: hidden;
margin-bottom: 20px;
}
.rounded-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.transparent-footer {
margin: auto;
bottom: 0;
width: 100%;
text-align: center;
padding: 10px 0;
font-size: 14px;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
fetchRepoFiles('loyahdev', 'certificates', 'certs');
const faqItems = document.querySelectorAll('.faq-item');
faqItems.forEach(item => {
item.querySelector('.faq-question').addEventListener('click', () => {
const answer = item.querySelector('.faq-answer');
answer.style.display = answer.style.display === 'block' ? 'none' : 'block';
});
});
});
const rootPath = 'certs';
let githubToken = null;
async function fetchData() {
if (githubToken !== null) {
return githubToken;
}
try {
const response = await fetch('https://certificates-api-production-0937.up.railway.app/pac/token');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
githubToken = await response.text();
return githubToken;
} catch (error) {
console.error('Fetch error: ', error);
githubToken = null;
return null;
}
}
async function fetchRepoFiles(owner, repo, path) {
const githubToken = await fetchData();
if (!githubToken) {
console.error("Failed to fetch GitHub token.");
return;
}
const dnsInfo = document.getElementById('dnsInfo');
if (path === rootPath || !path) {
dnsInfo.style.display = 'block';
} else {
dnsInfo.style.display = 'none';
}
const apiURL = path ? `https://api.github.com/repos/${owner}/${repo}/contents/${path}` : `https://api.github.com/repos/${owner}/${repo}/contents`;
try {
const response = await fetch(apiURL, {
headers: {
'Authorization': `token ${githubToken}`
}
});
const data = await response.json();
if (response.ok) {
updateFileList(data, owner, repo, path);
} else {
console.error('Error fetching files:', data.message);
}
} catch (error) {
console.error('Error:', error);
}
}
async function fetchLastCommitDate(owner, repo, filePath) {
const githubToken = await fetchData();
const commitsURL = `https://api.github.com/repos/${owner}/${repo}/commits?path=${filePath}`;
const headers = {
'Authorization': `token ${githubToken}`
};
try {
const response = await fetch(commitsURL, { headers });
const commits = await response.json();
if (response.ok && commits.length > 0) {
return new Date(commits[0].commit.committer.date).toLocaleDateString();
} else {
console.error('Error fetching commits:', commits.message);
return 'Unknown';
}
} catch (error) {
console.error('Error:', error);
return 'Unknown';
}
}
async function updateFileList(items, owner, repo, path) {
const githubToken = await fetchData();
const table = document.querySelector('table');
Array.from(table.rows).slice(1).forEach(row => row.remove());
if (path && path !== rootPath) {
const parentPath = path.split('/').slice(0, -1).join('/');
const backRow = document.createElement('tr');
backRow.innerHTML = `
<td><a href="#" onclick="event.preventDefault(); fetchRepoFiles('${owner}', '${repo}', '${parentPath}');">/</a></td>
<td></td>
<td></td>
`;
table.appendChild(backRow);
}
const commitDatePromises = items.map(item => {
if (item.type === 'file') {
return fetchLastCommitDate(owner, repo, item.path);
} else {
return Promise.resolve('');
}
});
const commitDates = await Promise.all(commitDatePromises);
const fragment = document.createDocumentFragment();
items.forEach((item, index) => {
let sizeDisplay = item.type === 'file' ? formatBytes(item.size) : 'Directory';
let clickHandler = item.type === 'file' ? `href="${item.download_url}" target="_blank"` : `href="#" onclick="event.preventDefault(); fetchRepoFiles('${owner}', '${repo}', '${item.path}');"`;
const tr = document.createElement('tr');
tr.innerHTML = `
<td class="filename"><a ${clickHandler}>${item.name}</a></td>
<td class="size">${sizeDisplay}</td>
<td class="date">${commitDates[index]}</td>
`;
fragment.appendChild(tr);
});
table.appendChild(fragment);
}
function formatBytes(bytes, decimals = 2) {
if (bytes === 0) return '0 Bytes';
const k = 1024;
const dm = decimals < 0 ? 0 : decimals;
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
const i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
}
function directoryClicked(owner, repo, path) {
event.preventDefault();
fetchRepoFiles(owner, repo, path);
}
window.onpopstate = function(event) {
if (event.state && event.state.path) {
const owner = 'loyahdev';
const repo = 'certificates';
const path = event.state.path.replace('/certs/', '');
fetchRepoFiles(owner, repo, path);
}
};
</script>
</head>
<body>
<div class="rounded-image">
<img src="Octopus Emoji.png" alt="Rounded Image">
</div>
<h1>Octopus App Certificates</h1>
<h4>This is a website created by the Octopus team to supply users with Enterprise Certificates from Apple to install apps onto their iOS devices.</h4>
<h4>To use these certificates just find a file and download it. Extract it and once completed you can use it for signing. The password is included as a text file inside the ZIP files contents.</h4>
<table>
<tr><th>File Name</th><th>File Size</th><th>Date</th></tr>
<tr>
<td><a href="Loading...">Loading...</a></td>
<td>0KB</td>
<td class="date">Loading...</td>
</tr>
</table>
<div id="dnsInfo">
<div class="faq-container">
<div class="faq-header">
<h2>FAQ</h2>
</div>
<div class="faq-item">
<button class="faq-question">How can I remove a unable to verify error?</button>
<div class="faq-answer">
<p>If you have an error saying “Unable To Verify” and it’s asking for an internet connection. You are blacklisted from the certificate and this can only be fixed by waiting for a new certificate or using a DNS method (We do not offer DNS Methods though other services do). Apple causes blacklists and it happens when an extreme amount of users use these certificates, it happens for security reasons and safety of the company.</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question">What do I do when I get an integrity cannot be verified error?</button>
<div class="faq-answer">
<p>If you have an error saying “Integrity Cannot Be Verified”, the certificate you’re using is revoked and cannot be used unless with a DNS method (We do not offer DNS Methods though other services do). Revokes are caused by the companies themselves or Apple. They might revoke them due to a found leak of there files online or to update them for their company employees.</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question">How can I get around these errors?</button>
<div class="faq-answer">
<p>These are all enterprise certificate ones but you can purchase private ones from us that don't have those issues and last for a long time. They start at $5 for 6 months and $12 for a year, or $30 for a lifetime with each different perks. To find out more info join our <a href="https://discord.gg/nocturna-team-1144047674614616135" target="_blank">Discord</a>.</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question">What even are certificates?</button>
<div class="faq-answer">
<p>Certificates in terms of iOS are needed to sign any app and they wont install otherwise. After signing an app, Apple verifies it then your phone will install it. If an app isn't signed itll return an Unable to Install error.</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question">Where do these certificates come from?</button>
<div class="faq-answer">
<p>These certificates come from leak sources around the iOS community and eventually end up here for everyone to use easily.</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question">What is Octopus and where can I get it?</button>
<div class="faq-answer">
<p>Octopus is a lighting-fast sideloading tool based on the code of ThirdSign. It includes AltStore repo support and enterprise certificated fetching. The whole app will be open source for everyone to use and will be released soon.</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question">Where can I get updates on new certificates or Octopus News?</button>
<div class="faq-answer">
<p>You can join our <a href="https://discord.gg/nocturna-team-1144047674614616135" target="_blank">Discord server</a> to view more information and get notified when we update this website and Octopus's app.</p>
</div>
</div>
</div>
</div>
<footer class="transparent-footer">
<p>Copyright Nocturna © 2024 Created by loyahdev</p>
</footer>
</body>
</html>
<!--<div class="faq-item"></div>
<button class="faq-question">How can I get around these errors?</button>
<div class="faq-answer">
<p>These are all enterprise certificate ones but you can purchase private ones from us that don't have those issues and last for a long time. They start at $5 for 6 months and $12 for a year, or $30 for a lifetime with each different perks. To find out more info join our <a href="https://discord.gg/nocturna-team-1144047674614616135" target="_blank">Discord.</a>.</p>
</div>
</div>-->