forked from erfandiakoo/anten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
343 lines (314 loc) · 12.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome | Configuration Profile Generator with Unique Uuid</title>
<!-- Tailwind css -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Add custom CSS styles -->
<link rel="stylesheet" href="./styles/main.css">
<!-- Add custom fonts from Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"
rel="stylesheet">
<!-- Vazir Font -->
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/Vazirmatn-font-face.css" rel="stylesheet"
type="text/css" />
<link rel="shortcut icon" href="./assets/booster.png" type="image/x-icon">
</head>
<body>
<!-- Preloader -->
<div
class="preloader-screen flex justify-center items-center h-screen w-full fixed inset-0 overflow-hidden z-[9999] duration-500 bg-gray-950">
<div class="spinner"></div>
</div>
<div class="mx-auto max-w-3xl p-5 flex justify-center items-center flex-col">
<h1 class="text-2xl mt-12 text-center font-thin">Configuration Profile Generator with Unique <b>UUID</b></h1>
<!-- <h1 class=" text-2xl mt-12 text-center">سازنده پروفایل آیفون یونیک با استفاده از UUID</h1> -->
<a href="https://x.com/aigptcode" target="_blank"
class="w-full p-5 text-center font-thin flex justify-center items-center flex-row-reverse gap-1 text-white rounded-xl card hover:bg-[#ffffff52] my-4">اموزش
تصویری
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
<path stroke-linecap="round" stroke-linejoin="round"
d="M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z" />
</svg>
</a>
</h1>
<!-- Add form for configuration generator -->
<form id=" config-form" class="w-full flex flex-col justify-center items-center">
<!-- APN -->
<div class="mb-3 flex flex-row-reverse gap-2 justify-center items-center">
<div class="form-text font-thin"> : Choose Your APN</div>
<select id="apn" class="form-select border-none rounded-sm bg-white text-black px-4 py-1 text-center">
<option value="mcinet">MCI</option>
<option value="mtnirancell">Irancell</option>
<option value="RighTel">RighTel</option>
</select>
</div>
<button type="submit"
class="rounded-xl bg-blue-600 text-white px-10 py-4 hover:bg-blue-800 hover:shadow-md duration-300">
Generate Profile
</button>
</form>
<!-- Message box -->
<div class="grid grid-cols-1 lg:grid-cols-2 mt-12 mx-auto max-w-[1200px] gap-4" role="alert">
<div
class="card p-5 rounded-xl shadow-lg hover:-translate-y-2 duration-500 flex flex-col justify-center items-center gap-3 group">
<img src="./assets/booster.png" class="w-32 group-hover:scale-110 duration-500">
<h4 class="alert-heading carrier">Signal Booster</h4>
<p>A signal booster, also known as a repeater, is a device that amplifies a wireless signal. It can
be
used
to improve the signal strength and coverage in areas where the signal is weak or obstructed.</p>
</div>
<div
class="card p-5 rounded-xl shadow-lg hover:-translate-y-2 duration-500 flex flex-col justify-center items-center gap-3 group">
<img src="./assets/apn.png" class="w-32 group-hover:scale-110 duration-500">
<h4 class="alert-heading apn">APN</h4>
<p>APN (Access Point Name) is a gateway between a cellular network and the public internet. It is
used
to
set up a data connection on a mobile device, and different carriers may have different APN
settings.
</p>
</div>
<div
class="card p-5 rounded-xl shadow-lg hover:-translate-y-2 duration-500 flex flex-col justify-center items-center gap-3 group">
<img src="./assets/proxy.png" class="w-32 group-hover:scale-110 duration-500">
<h4 class="alert-heading proxy">Proxy</h4>
<p>A proxy server is an intermediary between a client and a server. It can be used to provide
anonymity,
filter content, or cache data to improve performance.</p>
</div>
<div
class="card p-5 rounded-xl shadow-lg hover:-translate-y-2 duration-500 flex flex-col justify-center items-center gap-3 group">
<img src="./assets/dns.png" class="w-32 group-hover:scale-110 duration-500">
<h4 class="alert-heading dns">DNS</h4>
<p>DNS (Domain Name System) is a system that translates domain names into IP addresses. It can be
used
to
block or redirect access to certain websites, or to improve the performance of a network.</p>
</div>
</div>
</div>
<!-- Add custom JavaScript -->
<script>
const preloader = document.querySelector(".preloader-screen");
window.addEventListener("load", () => {
setTimeout(() => {
preloader.classList.add("hidden");
}, 1500);
})
const configForm = document.getElementById('config-form');
function generateUniqueUUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}
function handleFormSubmit(event) {
event.preventDefault();
// Collect form data
const apn = document.getElementById('apn').value;
// Create the XML-formatted plist string
const configPlist = `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<!-- Cellular Settings -->
<dict>
<key>PayloadDisplayName</key>
<string>Cellular</string>
<key>PayloadIdentifier</key>
<string>com.apple.cellular</string>
<key>PayloadType</key>
<string>com.apple.cellular</string>
<key>PayloadUUID</key>
<string>${generateUniqueUUID()}</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>APNs</key>
<array>
<!-- First APN -->
<dict>
<key>AllowedProtocolMask</key>
<integer>3</integer>
<key>AllowedProtocolMaskInDomesticRoaming</key>
<integer>3</integer>
<key>AllowedProtocolMaskInRoaming</key>
<integer>3</integer>
<key>AuthenticationType</key>
<string>PAP</string>
<key>DefaultProtocolMask</key>
<integer>3</integer>
<key>EnableXLAT464</key>
<true />
<key>Name</key>
<string>${apn}</string>
<key>ProxyServer</key>
<string>${apn}</string>
<key>Username</key>
<string></string>
</dict>
<!-- Second APN -->
<dict>
<key>AllowedProtocolMask</key>
<integer>1</integer>
<key>AllowedProtocolMaskInDomesticRoaming</key>
<integer>1</integer>
<key>AllowedProtocolMaskInRoaming</key>
<integer>1</integer>
<key>AuthenticationType</key>
<string>CHAP</string>
<key>DefaultProtocolMask</key>
<integer>1</integer>
<key>EnableXLAT464</key>
<false />
<key>Name</key>
<string>${apn}</string>
<key>Username</key>
<string></string>
</dict>
</array>
<key>AttachAPN</key>
<dict>
<key>AllowedProtocolMask</key>
<integer>3</integer>
<key>AuthenticationType</key>
<string>PAP</string>
<key>Name</key>
<string>${apn}</string>
<key>Username</key>
<string></string>
</dict>
</dict>
<!-- VPN Settings -->
<dict>
<key>PayloadDisplayName</key>
<string>VPN</string>
<key>PayloadIdentifier</key>
<string>com.apple.vpn.managed.${generateUniqueUUID()}</string>
<key>PayloadType</key>
<string>com.apple.vpn.managed</string>
<key>PayloadUUID</key>
<string>${generateUniqueUUID()}</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>UserDefinedName</key>
<string>VPN Configuration</string>
<key>VPNType</key>
<string>IPSec</string>
<key>IPSec</key>
<dict>
<key>AuthenticationMethod</key>
<string>SharedSecret</string>
<key>ExtendedAuthEnabled</key>
<false/>
<key>LocalIdentifier</key>
<string>${apn}</string>
<key>RemoteAddress</key>
<string>vpn.example.com</string>
<key>SharedSecret</key>
<string>${generateUniqueUUID()}</string>
<key>XAuthEnabled</key>
<true/>
<key>XAuthName</key>
<string>${apn}</string>
<key>XAuthPassword</key>
<string>${apn}</string>
</dict>
</dict>
<!-- Proxy Settings -->
<dict>
<key>PayloadDisplayName</key>
<string>Proxy</string>
<key>PayloadIdentifier</key>
<string>com.apple.proxy.${generateUniqueUUID()}</string>
<key>PayloadType</key>
<string>com.apple.proxy</string>
<key>PayloadUUID</key>
<string>${generateUniqueUUID()}</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>HTTPEnable</key>
<true/>
<key>HTTPPort</key>
<integer>8080</integer>
<key>HTTPSEnable</key>
<true/>
<key>HTTPSPort</key>
<integer>8080</integer>
<key>FTPEnable</key>
<true/>
<key>FTPPort</key>
<integer>21</integer>
<key>SOCKSEnable</key>
<true/>
<key>SOCKSPort</key>
<integer>1080</integer>
<key>Server</key>
<string>proxy.example.com</string>
<key>ExclusionList</key>
<array>
<string>localhost</string>
<string>127.0.0.1</string>
<string>169.254.0.0/16</string>
</array>
</dict>
<!-- Additional Settings -->
<dict>
<key>PayloadDisplayName</key>
<string>Additional Settings</string>
<key>PayloadIdentifier</key>
<string>com.example.additionalsettings.${generateUniqueUUID()}</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>${generateUniqueUUID()}</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadOrganization</key>
<string>Github:AiGptCode</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>SignalBoostEnabled</key>
<true/>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>Configuration Profile</string>
<key>PayloadIdentifier</key>
<string>com.example.profile</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>${generateUniqueUUID()}</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
`;
// Create a Blob object from the configuration plist string
const configBlob = new Blob([configPlist], { type: 'application/xml' });
// Create a download link and click it to download the file
const downloadLink = document.createElement('a');
downloadLink.href = URL.createObjectURL(configBlob);
downloadLink.download = 'config.mobileconfig';
downloadLink.click();
// Wait for the download to complete before revoking the object URL
setTimeout(() => {
URL.revokeObjectURL(downloadLink.href);
}, 1000);
}
configForm.addEventListener('submit', handleFormSubmit);
</script>
</body>
</html>