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">
    <script>document.addEventListener('contextmenu', function(event) {event.preventDefault();});</script>
    <script disable-devtool-auto src='https://cdn.jsdelivr.net/npm/disable-devtool@latest'></script>
    <title>PLAY TV</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            background-attachment: fixed;
        }
        .container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            padding: 10px;
        }
        .card {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin: 10px;
            padding: 20px;
            width: calc(90% - 40px);
            height: auto;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            text-align: center;
            transition: all 0.3s ease;
            color: #333;
        }
        
        .card img {
            width: 50%;
            height: auto;
            margin: auto;
            display: block;
            padding: 10px;
        }
        .card:hover {
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            transform: translateY(-5px);
        }
        .btn-primary {
            background-color: navy; 
            color: white;
            padding: 10px 20px; 
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            margin-top: 20px;
            font-size: 0.8em; 
            width: auto; 
            display: inline-block; 
            text-align: center; 
        }
        .btn-primary:hover {
            background-color: darkblue;
            cursor: pointer;
        }
        .button-container {
            display: flex;
            justify-content: center; 
            gap: 10px; 
            margin-top: 20px;
        }

        
        @media (min-width: 768px) {
            .card {
                width: calc(50% - 40px);
            }
        }

        
        @media (min-width: 1200px) {
            .card {
                width: calc(30% - 40px);
            }
        }
        .jumbotron {
            background-color: rgba(118, 154, 221, 0.1);
            backdrop-filter: blur(5px);
            padding: 10px;
            margin: 10px;
            border: 2px;
            border-radius: 10px;
            text-align: center;
            color: #333;
        }
        .jumbotron h1 {
            font-size: 2em;
            font-weight: 600;
        }
        .jumbotron p {
            font-size: 1.2em;
        }
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 90%;
            max-width: 600px;
            border-radius: 10px;
            position: relative;
        }
        
        .close {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            display: block;
            text-align: center;
            margin-top: 10px;
        }
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
        #modal-video, #modal-iframe {
            width: 100%;
            height: 315px; 
            border: none;
        }
        #modal-video {
            display: none;
        }
        #modal-iframe {
            display: none;
        }
        #time {
            font-size: 3em;
            color: #333;
        }
        #date {
            font-size: 1.2em;
            color: #666;
        }
    </style>
    <script>
        async function fetchNTPTime() {
            try {
                const response = await fetch('http://worldtimeapi.org/api/timezone/Etc/GMT');
                const data = await response.json();
                return new Date(data.datetime);
            } catch (error) {
                console.error('Error fetching NTP time:', error);
                return new Date(); // Fallback to local time in case of error
            }
        }

        async function updateTime() {
            const ntpTime = await fetchNTPTime();
            const gmtPlus8 = new Date(ntpTime.getTime() + (3600000 * 8));

            let hours = gmtPlus8.getUTCHours();
            const minutes = String(gmtPlus8.getUTCMinutes()).padStart(2, '0');
            const seconds = String(gmtPlus8.getUTCSeconds()).padStart(2, '0');

            const ampm = hours >= 12 ? 'PM' : 'AM';
            hours = hours % 12;
            hours = hours ? hours : 12; // the hour '0' should be '12'
            const strHours = String(hours).padStart(2, '0');

            const today = gmtPlus8.getUTCDate();
            const month = gmtPlus8.toLocaleString('default', { month: 'long' }).toUpperCase();
            const year = gmtPlus8.getUTCFullYear();

            document.getElementById('time').textContent = `${strHours}:${minutes}:${seconds} ${ampm}`;
            document.getElementById('date').textContent = `${today} ${month} ${year}`;
        }

        setInterval(updateTime, 1000);
        window.onload = updateTime;  // Initialize the time display when the page loads

        function makeFullScreen() {
            const video = document.getElementById('video');
            if (video.requestFullscreen) {
                video.requestFullscreen();
            } else if (video.mozRequestFullScreen) { // Firefox
                video.mozRequestFullScreen();
            } else if (video.webkitRequestFullscreen) { // Chrome, Safari and Opera
                video.webkitRequestFullscreen();
            } else if (video.msRequestFullscreen) { // IE/Edge
                video.msRequestFullscreen();
            }
        }
    </script>
    <script type='text/javascript' src='//pl23566863.highrevenuenetwork.com/52/33/cc/5233cc6a029b14cf1b279e62928c6b52.js'></script>
</head>
<body>

<div class="modal" id="myModal">
  <div class="modal-content">
    <video id="modal-video" controls></video>
    <iframe id="modal-iframe" allowfullscreen></iframe>
    <span class="close">&times;</span>
  </div>
</div>

<div class="jumbotron">
    <h2>-PLAY TV- (GMA)</h2>
    <div id="time"></div>
    <div id="date"></div>
    <p style="font-size: 12px; font-style: italic;">DISCLAIMER: We Do Not Stream All Video On This Platform. Copyright for all content belongs to their respective owners. We claim no ownership. Contact us at support@enicsnet.com</p>
    <script type="text/javascript">
	atOptions = {
		'key' : '384f4f70cc593aa761688a0951b03560',
		'format' : 'iframe',
		'height' : 250,
		'width' : 300,
		'params' : {}
	};
</script>
<script type="text/javascript" src="//www.topcreativeformat.com/384f4f70cc593aa761688a0951b03560/invoke.js"></script>
<script type="text/javascript">
	atOptions = {
		'key' : '09950fa24057448daf439fff3f004ef0',
		'format' : 'iframe',
		'height' : 50,
		'width' : 320,
		'params' : {}
	};
</script>
<script type="text/javascript" src="//www.topcreativeformat.com/09950fa24057448daf439fff3f004ef0/invoke.js"></script>
</div>

<div class="container">
    <video id="video" controls autoplay style="width: 100%; max-width: 600px; height: auto;"></video>
</div>
<div class="container button-container">
    <button class="btn-primary" onclick="window.location.href='https://play.enicsnet.com'">BACK</button>
    <button class="btn-primary" onclick="makeFullScreen()">FULLSCREEN</button>
</div>

<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script>
    document.addEventListener('DOMContentLoaded', (event) => {
        const videoSrc = 'https://xigncode.enics.cloud/hls/2gv/index.m3u8';
        const video = document.getElementById('video');

        if (Hls.isSupported()) {
            const hls = new Hls();
            hls.loadSource(videoSrc);
            hls.attachMedia(video);
            hls.on(Hls.Events.MANIFEST_PARSED, function () {
                video.play();
            });
            
            // Set up HTTP referer header for HLS.js
            hls.config.xhrSetup = function(xhr, url) {
                xhr.setRequestHeader('Referer', 'https://player.enicsnet.com');
            };
        } else if (video.canPlayType('application/vnd.apple.mpegurl')) {
            video.src = videoSrc;
            video.addEventListener('loadedmetadata', function () {
                video.play();
            });
        } else {
            alert('Your browser does not support HLS.js');
        }
    });
</script>
<script type='text/javascript' src='//pl23566902.highrevenuenetwork.com/83/96/8f/83968f4fa394977810046160ddac236c.js'></script>
</body>
</html>


</script>



© 2023 Quttera Ltd. All rights reserved.