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
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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sierra Wireless Unlock Code Generator</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        }
        .device-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .result-box {
            transition: all 0.3s ease;
        }
        .copy-btn {
            transition: all 0.2s ease;
        }
        .copy-btn:hover {
            background-color: #3b82f6;
            color: white;
        }
        .copy-btn:active {
            transform: scale(0.95);
        }
        .tab-active {
            border-bottom: 3px solid #3b82f6;
            color: #3b82f6;
            font-weight: 600;
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <div class="gradient-bg text-white py-8 shadow-lg">
        <div class="container mx-auto px-4">
            <div class="flex items-center justify-between">
                <div>
                    <h1 class="text-3xl font-bold flex items-center">
                        <i class="fas fa-unlock-alt mr-3"></i>
                        Sierra Wireless Unlock Code Generator
                    </h1>
                    <p class="text-blue-100 mt-2">Generate unlock codes for Sierra Wireless devices</p>
                </div>
                <div class="hidden md:block">
                    <div class="bg-white bg-opacity-20 rounded-full px-4 py-2 flex items-center">
                        <i class="fas fa-shield-alt mr-2"></i>
                        <span>Secure Calculation</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="container mx-auto px-4 py-8">
        <div class="bg-white rounded-xl shadow-lg overflow-hidden">
            <div class="flex border-b">
                <button id="tab-generator" class="px-6 py-4 tab-active">Code Generator</button>
                <button id="tab-devices" class="px-6 py-4 text-gray-600">Supported Devices</button>
                <button id="tab-info" class="px-6 py-4 text-gray-600">Information</button>
            </div>

            <!-- Generator Tab -->
            <div id="generator-content" class="p-6">
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h2 class="text-xl font-semibold mb-4">Generate Unlock Code</h2>
                        
                        <div class="mb-6">
                            <label class="block text-gray-700 mb-2 font-medium">Device Generation</label>
                            <select id="device-generation" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                <option value="">Select a device generation</option>
                                <option value="MDM8200">MDM8200</option>
                                <option value="MDM9200">MDM9200</option>
                                <option value="MDM9200_V1">MDM9200_V1</option>
                                <option value="MDM9200_V2">MDM9200_V2</option>
                                <option value="MDM9200_V3">MDM9200_V3</option>
                                <option value="MDM9x15">MDM9x15</option>
                                <option value="MDM9x28">MDM9x28</option>
                                <option value="MDM9x30">MDM9x30</option>
                                <option value="MDM9x30_V1">MDM9x30_V1</option>
                                <option value="MDM9x40">MDM9x40</option>
                                <option value="MDM9x50">MDM9x50</option>
                                <option value="MDM9x50_V1">MDM9x50_V1</option>
                            </select>
                        </div>

                        <div class="mb-6">
                            <label class="block text-gray-700 mb-2 font-medium">Challenge Type</label>
                            <div class="flex space-x-4">
                                <label class="inline-flex items-center">
                                    <input type="radio" name="challenge-type" value="openlock" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500">
                                    <span class="ml-2">OPENLOCK</span>
                                </label>
                                <label class="inline-flex items-center">
                                    <input type="radio" name="challenge-type" value="openmep" class="h-4 w-4 text-blue-600 focus:ring-blue-500">
                                    <span class="ml-2">OPENMEP</span>
                                </label>
                                <label class="inline-flex items-center">
                                    <input type="radio" name="challenge-type" value="opencnd" class="h-4 w-4 text-blue-600 focus:ring-blue-500">
                                    <span class="ml-2">OPENCND</span>
                                </label>
                            </div>
                        </div>

                        <div class="mb-6">
                            <label class="block text-gray-700 mb-2 font-medium">Challenge Code</label>
                            <input id="challenge-code" type="text" placeholder="Enter challenge code (e.g., BE96CBBEE0829BCA)" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                        </div>

                        <button id="generate-btn" class="gradient-bg text-white px-6 py-3 rounded-lg font-medium hover:opacity-90 transition duration-300 flex items-center justify-center w-full">
                            <i class="fas fa-calculator mr-2"></i>
                            Generate Unlock Code
                        </button>
                    </div>

                    <div>
                        <h2 class="text-xl font-semibold mb-4">Result</h2>
                        <div id="result-container" class="bg-gray-50 border border-gray-200 rounded-lg p-6 h-64 flex flex-col justify-center items-center">
                            <div class="text-center text-gray-500">
                                <i class="fas fa-lock-open text-4xl mb-3"></i>
                                <p>Your unlock code will appear here</p>
                            </div>
                        </div>

                        <div id="copy-section" class="mt-4 hidden">
                            <div class="flex">
                                <input id="result-code" type="text" readonly class="flex-grow px-4 py-2 border border-gray-300 rounded-l-lg bg-gray-50">
                                <button id="copy-btn" class="copy-btn bg-gray-200 text-gray-700 px-4 py-2 rounded-r-lg border border-l-0 border-gray-300">
                                    <i class="fas fa-copy mr-1"></i> Copy
                                </button>
                            </div>
                            <div id="copy-success" class="text-green-600 mt-2 hidden">
                                <i class="fas fa-check-circle mr-1"></i> Copied to clipboard!
                            </div>
                        </div>

                        <div class="mt-6 bg-blue-50 border-l-4 border-blue-500 p-4 rounded hidden" id="usage-instruction">
                            <div class="flex">
                                <div class="flex-shrink-0">
                                    <i class="fas fa-info-circle text-blue-500"></i>
                                </div>
                                <div class="ml-3">
                                    <h3 class="text-sm font-medium text-blue-800">Usage Instruction</h3>
                                    <div id="command-text" class="mt-2 text-sm text-blue-700">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Devices Tab -->
            <div id="devices-content" class="p-6 hidden">
                <h2 class="text-xl font-semibold mb-6">Supported Devices</h2>
                
                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM8200</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>M81A, M81B</li>
                            <li>AC880, AC881</li>
                            <li>MC8780, MC8781</li>
                            <li>AC880E, AC881E</li>
                            <li>EM8780, EM8781</li>
                            <li>MC8780V, MC8781V</li>
                            <li>MC8700, AC308U</li>
                        </ul>
                    </div>

                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM9200</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>AC710, MC8775</li>
                            <li>MC8775V, AC875</li>
                            <li>MC8700, AC313U</li>
                            <li>MC8801, MC7700</li>
                            <li>MC7750, MC7710</li>
                            <li>EM7700</li>
                        </ul>
                    </div>

                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM9x15</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>SWI9X15C, AR7550</li>
                            <li>AR7552, AR7554</li>
                            <li>EM7355, EM7655</li>
                            <li>MC7354, WP7100</li>
                            <li>WP7102, WP7104</li>
                            <li>MC7305, EM7305</li>
                            <li>MC8805, EM8805</li>
                            <li>MC7350, MC7350-L</li>
                            <li>MC7802, MC7304</li>
                            <li>AR7556, AR7558</li>
                            <li>WP75xx, WP85xx</li>
                            <li>WP8548, WP8548G</li>
                            <li>AC340U</li>
                        </ul>
                    </div>

                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM9x28</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>SWI9X07Y</li>
                            <li>WP76xx</li>
                        </ul>
                    </div>

                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM9x30</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>EM7455, MC7455</li>
                            <li>EM7430, MC7430</li>
                        </ul>
                    </div>

                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM9x40</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>AC815s</li>
                            <li>AC785s</li>
                        </ul>
                    </div>

                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM9x50</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>EM7565</li>
                            <li>EM7565-9</li>
                            <li>EM7511</li>
                        </ul>
                    </div>

                    <div class="device-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 hover:shadow-md">
                        <h3 class="font-bold text-lg text-blue-600 mb-2">MDM9x50_V1</h3>
                        <ul class="text-gray-600 space-y-1">
                            <li>Netgear MR1100</li>
                        </ul>
                    </div>
                </div>
            </div>

            <!-- Info Tab -->
            <div id="info-content" class="p-6 hidden">
                <h2 class="text-xl font-semibold mb-6">About Sierra Wireless Unlock Codes</h2>
                
                <div class="bg-blue-50 border-l-4 border-blue-500 p-4 rounded mb-6">
                    <div class="flex">
                        <div class="flex-shrink-0">
                            <i class="fas fa-info-circle text-blue-500"></i>
                        </div>
                        <div class="ml-3">
                            <h3 class="text-sm font-medium text-blue-800">What are Sierra Wireless Unlock Codes?</h3>
                            <div class="mt-2 text-sm text-blue-700">
                                <p>Sierra Wireless devices use challenge-response authentication for unlocking certain features. This tool generates the correct response code based on the challenge provided by your device.</p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="space-y-6">
                    <div>
                        <h3 class="font-medium text-lg text-gray-800 mb-2">How to use this tool</h3>
                        <ol class="list-decimal list-inside space-y-2 text-gray-700">
                            <li>Connect to your Sierra Wireless device using a terminal program</li>
                            <li>Send the appropriate AT command to get a challenge code:
                                <ul class="list-disc list-inside ml-6 mt-1">
                                    <li><code>AT!OPENLOCK?</code> for device unlock</li>
                                    <li><code>AT!OPENMEP?</code> for MEP unlock</li>
                                    <li><code>AT!OPENCND?</code> for CND unlock</li>
                                </ul>
                            </li>
                            <li>Enter the challenge code in this tool along with your device generation</li>
                            <li>Generate the response code and send it back to your device</li>
                        </ol>
                    </div>

                    <div>
                        <h3 class="font-medium text-lg text-gray-800 mb-2">Common AT Commands</h3>
                        <div class="bg-gray-800 rounded-lg p-4 text-gray-100 overflow-x-auto">
                            <pre class="text-sm">
<span class="text-green-400"># Get device information</span>
ATI

<span class="text-green-400"># Get OPENLOCK challenge</span>
AT!OPENLOCK?

<span class="text-green-400"># Submit OPENLOCK response</span>
AT!OPENLOCK="XXXXXXXXXXXXXX"

<span class="text-green-400"># Enter CND mode (password is often A710)</span>
AT!ENTERCND="A710"

<span class="text-green-400"># Reset device to factory defaults</span>
AT!RESET

<span class="text-green-400"># Enable ADB on some devices</span>
AT!CUSTOM="ADBENABLE",1</pre>
                        </div>
                    </div>

                    <div class="border-t pt-6">
                        <h3 class="font-medium text-lg text-gray-800 mb-2">Disclaimer</h3>
                        <p class="text-gray-600">
                            This tool is provided for educational purposes only. Unlocking your device may void your warranty or violate your service agreement. Use at your own risk.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <footer class="bg-gray-100 border-t py-6 mt-8">
        <div class="container mx-auto px-4 text-center text-gray-600">
            <p>Sierra Wireless Unlock Code Generator &copy; 2023</p>
            <p class="mt-1 text-sm">This is a frontend demonstration. Actual code generation requires server-side implementation.</p>
        </div>
    </footer>

    <script>
        // Tab switching
        document.getElementById('tab-generator').addEventListener('click', function() {
            document.getElementById('tab-generator').classList.add('tab-active');
            document.getElementById('tab-devices').classList.remove('tab-active');
            document.getElementById('tab-info').classList.remove('tab-active');
            document.getElementById('generator-content').classList.remove('hidden');
            document.getElementById('devices-content').classList.add('hidden');
            document.getElementById('info-content').classList.add('hidden');
        });

        document.getElementById('tab-devices').addEventListener('click', function() {
            document.getElementById('tab-generator').classList.remove('tab-active');
            document.getElementById('tab-devices').classList.add('tab-active');
            document.getElementById('tab-info').classList.remove('tab-active');
            document.getElementById('generator-content').classList.add('hidden');
            document.getElementById('devices-content').classList.remove('hidden');
            document.getElementById('info-content').classList.add('hidden');
        });

        document.getElementById('tab-info').addEventListener('click', function() {
            document.getElementById('tab-generator').classList.remove('tab-active');
            document.getElementById('tab-devices').classList.remove('tab-active');
            document.getElementById('tab-info').classList.add('tab-active');
            document.getElementById('generator-content').classList.add('hidden');
            document.getElementById('devices-content').classList.add('hidden');
            document.getElementById('info-content').classList.remove('hidden');
        });

        // Generate button click handler
        document.getElementById('generate-btn').addEventListener('click', function() {
            const deviceGeneration = document.getElementById('device-generation').value;
            const challengeType = document.querySelector('input[name="challenge-type"]:checked').value;
            const challengeCode = document.getElementById('challenge-code').value.trim();
            
            if (!deviceGeneration) {
                alert('Please select a device generation');
                return;
            }
            
            if (!challengeCode) {
                alert('Please enter a challenge code');
                return;
            }
            
            // In a real implementation, this would call a server-side API
            // For demo purposes, we'll simulate a response
            simulateCodeGeneration(deviceGeneration, challengeType, challengeCode);
        });

        // Copy button handler
        document.getElementById('copy-btn').addEventListener('click', function() {
            const resultCode = document.getElementById('result-code');
            resultCode.select();
            document.execCommand('copy');
            
            const copySuccess = document.getElementById('copy-success');
            copySuccess.classList.remove('hidden');
            
            setTimeout(() => {
                copySuccess.classList.add('hidden');
            }, 2000);
        });

        // Simulate code generation (demo only)
        function simulateCodeGeneration(deviceGeneration, challengeType, challengeCode) {
            // Show loading state
            const resultContainer = document.getElementById('result-container');
            resultContainer.innerHTML = `
                <div class="text-center">
                    <div class="inline-block animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-blue-500 mb-3"></div>
                    <p>Generating unlock code...</p>
                </div>
            `;
            
            // Simulate API delay
            setTimeout(() => {
                // This is just a demo - in a real app, you'd call your backend
                const demoResponses = {
                    "MDM8200": "EEDBF8BFF8DAE346",
                    "MDM9200": "84E7405583ED5845",
                    "MDM9x15": "D1E128FCA8A963ED",
                    "MDM9x30": "1033773720F6EE66",
                    "MDM9x40": "8A2B3C4D5E6F7A8B",
                    "MDM9x50": "9C8D7E6F5A4B3C2D"
                };
                
                const responseCode = demoResponses[deviceGeneration] || "A1B2C3D4E5F67890";
                
                // Update UI with result
                resultContainer.innerHTML = `
                    <div class="text-center">
                        <div class="inline-flex items-center justify-center h-12 w-12 rounded-full bg-green-100 mb-3">
                            <i class="fas fa-check text-green-600"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-900">Unlock Code Generated</h3>
                        <p class="mt-1 text-gray-600">For ${deviceGeneration}</p>
                    </div>
                `;
                
                // Show result and copy section
                document.getElementById('result-code').value = responseCode;
                document.getElementById('copy-section').classList.remove('hidden');
                
                // Show usage instruction
                const commandText = document.getElementById('command-text');
                const atCommand = challengeType === 'openlock' ? 'OPENLOCK' : 
                                 challengeType === 'openmep' ? 'OPENMEP' : 'OPENCND';
                
                commandText.innerHTML = `
                    <p>Send this command to your device:</p>
                    <div class="mt-2 bg-gray-100 p-2 rounded font-mono text-sm">
                        AT!${atCommand}="${responseCode}"
                    </div>
                `;
                document.getElementById('usage-instruction').classList.remove('hidden');
            }, 1500);
        }

        // Auto-focus challenge code input when device generation is selected
        document.getElementById('device-generation').addEventListener('change', function() {
            document.getElementById('challenge-code').focus();
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=HKM999/unlock-code" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>