-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.html
379 lines (363 loc) · 12.9 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=1">
<title>Configuration Profile Generator with Unique Uuid</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(to right, #333, #555);
color: #fff;
}
.container {
max-width: 800px;
margin-top: 50px;
padding: 30px;
background-color: rgba(0, 0, 0, 0.6);
border-radius: 10px;
box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
}
h1 {
text-align: center;
margin-bottom: 50px;
color: #fff;
font-weight: 300;
text-shadow: 2px 2px #000;
}
label {
font-weight: 500;
display: block;
margin-bottom: 5px;
position: relative;
}
label::before {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: #fff;
transform: scaleX(0);
transition: transform 0.3s ease-out;
}
label:hover::before, input:focus + label::before, select:focus + label::before, textarea:focus + label::before {
transform: scaleX(1);
}
.form-text {
color: #888;
margin-top: 5px;
}
.carrier {
color: #f00;
}
.apn {
color: #f90;
}
.proxy {
color: #0f0;
}
.dns {
color: #00f;
}
.supporting {
color: #f0f;
}
input, select, textarea {
border-radius: 10px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
padding: 10px;
font-size: 14px;
background-color: rgba(0, 0, 0, 0.3);
color: #fff;
border: none;
margin-bottom: 20px;
}
button {
background-color: #f00;
color: #fff;
border-radius: 10px;
padding: 10px 20px;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
font-size: 14px;
font-weight: 500;
margin-top: 20px;
display: block;
width: 50%;
margin-left: auto;
margin-right: auto;
}
button:hover {
background-color: #f30;
}
@media only screen and (max-width: 600px) {
.container {
padding: 20px;
}
h1 {
font-size: 24px;
}
label {
font-size: 14px;
}
input,
select,
textarea {
font-size: 14px;
}
button {
font-size: 14px;
}
}
</style>
<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">
</head>
<body>
<div class="container" style="text-align: center; padding: 20px;">
<h1 style="font-size: 24px; color: #FF0000;">Configuration Profile Generator with Unique Uuid</h1>
<a href="https://x.com/aigptcode" target="_blank" style="display: inline-block; margin-top: 10px; font-size: 18px; color: #007BFF; text-decoration: none; font-weight: bold;">@AiGptCode آموزش تصویری</a>
<form id="config-form">
<!-- APN -->
<div class="mb-3">
<label for="apn" class="form-label apn">APN:</label>
<select id="apn" class="form-select">
<option value="mcinet">MCI</option>
<option value="mtnirancell">Irancell</option>
<option value="RighTel">RighTel</option>
<option value="ApTel">ApTel</option>
<option value="samantel">samantel</option>
<option value="shatelmobile">SHATEL</option>
</select>
<div class="form-text">اپراتور خود را انتخاب کنید</div>
</div>
<button type="submit" class="btn btn-primary">Generate Configuration Profile</button>
</form>
<!-- Message box -->
<div class="alert mt-3" role="alert">
<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>
<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>
<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>
<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>
<h4 class="alert-heading supporting"> SUPPORT حمایت </h4>
<p> 💞️ Feel free to support my endeavors through donations at:</p>
<p>Bitcoin: bc1q3230gkphdk5qzsxtj079mz5w35svwrpwq6wh8c</p>
<p>Follow Me on Github & X : @AiGptCode</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script>
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();
const apn = document.getElementById('apn').value;
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></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>
<true />
<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>
<false/>
<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>
<false/>
<key>HTTPPort</key>
<integer>8080</integer>
<key>HTTPSEnable</key>
<false/>
<key>HTTPSPort</key>
<integer>8080</integer>
<key>FTPEnable</key>
<false/>
<key>FTPPort</key>
<integer>21</integer>
<key>SOCKSEnable</key>
<false/>
<key>SOCKSPort</key>
<integer>1080</integer>
<key>Server</key>
<string></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>
`;
const configBlob = new Blob([configPlist], { type: 'application/xml' });
const downloadLink = document.createElement('a');
downloadLink.href = URL.createObjectURL(configBlob);
downloadLink.download = 'config.mobileconfig';
downloadLink.click();
setTimeout(() => {
URL.revokeObjectURL(downloadLink.href);
}, 1000);
}
configForm.addEventListener('submit', handleFormSubmit);
</script>
</body>
</html>