-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
245 lines (220 loc) · 11.8 KB
/
Copy pathindex.html
File metadata and controls
245 lines (220 loc) · 11.8 KB
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
<!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 -->
<link rel="stylesheet" href="https://certificates-iota.vercel.app/index.css">
<title>Midn1ght Certificates</title>
<meta name="title" content="Midn1ght Certificates" />
<meta name="description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://loyah.dev/certificates" />
<meta property="og:title" content="Midn1ght Certificates" />
<meta property="og:description" content="This is a website created by loyahdev to supply users with Enterprise Certificates from Apple to install apps onto their iOS devices." />
<meta property="og:image" content="https://i.ibb.co/GfPXRBtx/D2133-A64-B1-F3-417-F-B506-2141-A9-D034-FE.jpg" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://loyah.dev/certificates" />
<meta property="twitter:title" content="Midn1ght Certificates" />
<meta property="twitter:description" content="This is a website created by loyahdev to supply users with Enterprise Certificates from Apple to install apps onto their iOS devices." />
<meta property="twitter:image" content="https://i.ibb.co/GfPXRBtx/D2133-A64-B1-F3-417-F-B506-2141-A9-D034-FE.jpg" />
<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://certapi.loyah.dev/pac');
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="https://certificates-iota.vercel.app/midnight.png" alt="youre not sigma.">
</div>
<h1>Midn1ght Certificates</h1>
<h4>This is a website created by loyahdev 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="Currently under maintenace."></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>
</div>
</div>
<footer class="transparent-footer">
<p>Copyright Midn1ght © 2025 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>-->