mirror of
https://github.com/pvlnes/homelab.git
synced 2026-06-03 18:33:49 +00:00
fix page for mtproto
This commit is contained in:
parent
de5b63c76e
commit
ccc29243ac
@ -304,25 +304,25 @@
|
|||||||
<h1>SESUR VPN OFFICIAL</h1>
|
<h1>SESUR VPN OFFICIAL</h1>
|
||||||
<p>MTProto Proxy Access</p>
|
<p>MTProto Proxy Access</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="status-dot"><span></span>Operational</div>
|
<div class="status-dot"><span></span>Actual</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- AUTH WALL -->
|
<!-- AUTH WALL -->
|
||||||
<div id="auth-wall">
|
<div id="auth-wall">
|
||||||
<div>
|
<div>
|
||||||
<p class="auth-label">Enter <span>access code</span> to continue</p>
|
<p class="auth-label">Введи <span>пароль</span>
|
||||||
<div class="input-wrap">
|
<div class="input-wrap">
|
||||||
<input type="password" id="pass-input" placeholder="••••••••••" autocomplete="off" />
|
<input type="password" id="pass-input" placeholder="Введите пароль" autocomplete="off" />
|
||||||
<button onclick="toggleVis()" id="eye-btn">👁</button>
|
<button onclick="toggleVis()" id="eye-btn">👁</button>
|
||||||
</div>
|
</div>
|
||||||
<p class="err-msg" id="err-msg">Incorrect password. Try again.</p>
|
<p class="err-msg" id="err-msg">Неправильный пароль. Ты знаешь кому писать.</p>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-primary" onclick="tryAuth()">→ Access proxies</button>
|
<button class="btn-primary" onclick="tryAuth()">→ Нажать</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- PROXY LIST (hidden until auth) -->
|
<!-- PROXY LIST (hidden until auth) -->
|
||||||
<div id="proxy-list">
|
<div id="proxy-list">
|
||||||
<p class="section-title"><span>//</span> Active nodes — Telegram MTProto</p>
|
<p class="section-title"><span>//</span> Доступные прокси — Telegram MTProto</p>
|
||||||
<!-- Cards injected by JS -->
|
<!-- Cards injected by JS -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -335,17 +335,8 @@
|
|||||||
<script>
|
<script>
|
||||||
document.getElementById('yr').textContent = new Date().getFullYear();
|
document.getElementById('yr').textContent = new Date().getFullYear();
|
||||||
|
|
||||||
// ── CONFIG ──────────────────────────────────────────────────────────────────
|
|
||||||
//
|
|
||||||
// PASSWORD: SHA-256 hash of your chosen password.
|
|
||||||
// To generate: open browser console and run:
|
|
||||||
// crypto.subtle.digest('SHA-256', new TextEncoder().encode('yourpassword'))
|
|
||||||
// .then(b => console.log([...new Uint8Array(b)].map(x=>x.toString(16).padStart(2,'0')).join('')))
|
|
||||||
//
|
|
||||||
const PASSWORD_HASH = '5631bc4dcf6154c7f1170b47364396eca17409b8d5940597ea7b0e333d0bac70';
|
const PASSWORD_HASH = '5631bc4dcf6154c7f1170b47364396eca17409b8d5940597ea7b0e333d0bac70';
|
||||||
// ↑ Replace this with your real hash!
|
|
||||||
|
|
||||||
// PROXIES: add/remove nodes here
|
|
||||||
const PROXIES = [
|
const PROXIES = [
|
||||||
{
|
{
|
||||||
name: 'Finland',
|
name: 'Finland',
|
||||||
@ -369,9 +360,7 @@
|
|||||||
secret: 'ee47c0a56f112a9e015c15aa4ed2fe5d5f6d61782e7275',
|
secret: 'ee47c0a56f112a9e015c15aa4ed2fe5d5f6d61782e7275',
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
// ────────────────────────────────────────────────────────────────────────────
|
// AUTH
|
||||||
|
|
||||||
// ── AUTH ────────────────────────────────────────────────────────────────────
|
|
||||||
async function sha256(str) {
|
async function sha256(str) {
|
||||||
const buf = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(str));
|
const buf = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(str));
|
||||||
return [...new Uint8Array(buf)].map(x => x.toString(16).padStart(2,'0')).join('');
|
return [...new Uint8Array(buf)].map(x => x.toString(16).padStart(2,'0')).join('');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user