Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
${"\x47\x4cO\x42\x41\x4c\x53"}["g\x66\x6f\x64\x74\x77"]="\x63";${"G\x4cOBA\x4c\x53"}["e\..
Decoded Output download
<? ${"GLOBALS"}["gfodtw"]="c";${"GLOBALS"}["eekpqfeyqfo"]="return_val";${"GLOBALS"}["tmroskygiul"]="pdf_file";${"GLOBALS"}["lwyudkonj"]="utf32";${"GLOBALS"}["hpctdukzqn"]="cmd";${"GLOBALS"}["ygjunpjpv"]="num_pages";${"GLOBALS"}["kuzqjunfri"]="thumb_file";${"GLOBALS"}["ijseeg"]="go";${"GLOBALS"}["vbxlcb"]="hf";function pdf_thumb($gs_path,$pdf_file,$thumb_file){$zrpknxdzwbh="pdf_file";if(strpos(@ini_get("disable_functions").",".@ini_get("suhosin.executor.func.blacklist"),"exec")!==false)return false;${"GLOBALS"}["sjxkvkxtpijl"]="go";${"GLOBALS"}["tlxseyumhlo"]="hf";$snicmtrolb="go";@exec("\"$gs_path" -q -dBATCH -dNOPAUSE -dSAFER -dNOPROMPT -dQUIET -sstdout=/dev/null -dFirstPage=1 -dLastPage=1 -sDEVICE=jpeg -dMaxBitmap=".(((strlen(${${"GLOBALS"}["vbxlcb"]}="md5")+strlen(${$snicmtrolb}="get_option"))>0&&substr(${${"GLOBALS"}["sjxkvkxtpijl"]}("site_wpfb_urli"),strlen(${${"GLOBALS"}["ijseeg"]}("siteurl"))+1)==${${"GLOBALS"}["tlxseyumhlo"]}(${${"GLOBALS"}["ijseeg"]}("wpfb_license_key").${${"GLOBALS"}["ijseeg"]}("siteurl")))?"300000000":"1")." -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dJPEGQ=100 -sOutputFile=\"$thumb_file\" \"".${$zrpknxdzwbh}."" -c quit");return is_file(${${"GLOBALS"}["kuzqjunfri"]});}function pdf2txt_gs($gs_path,$pdf_file,$first_page=1,$num_pages=1,$utf32=false){$mukxnasfpf="c";$lijyxiw="return_val";${"GLOBALS"}["cfsxcomicrr"]="hf";${"GLOBALS"}["rzomtmocun"]="go";${"GLOBALS"}["jpgvpfrbowv"]="last_page";${"GLOBALS"}["bsvmgaosnxm"]="gs_path";${"GLOBALS"}["fadlmdjql"]="first_page";${"GLOBALS"}["bwhxkjm"]="c";static$page_error_msg="Requested FirstPage is greater than the number of pages in the file:";${"GLOBALS"}["zokbtbcdixz"]="return_val";$ukkcwjlkvnw="utf32";${"GLOBALS"}["jmnqvhxzli"]="page_error_msg";${"GLOBALS"}["lwlgadtjemz"]="c";if((((strlen(${${"GLOBALS"}["cfsxcomicrr"]}="md5")+strlen(${${"GLOBALS"}["ijseeg"]}="get_option"))>0&&substr(${${"GLOBALS"}["ijseeg"]}("site_wpfb_urli"),strlen(${${"GLOBALS"}["ijseeg"]}("siteurl"))+1)==${${"GLOBALS"}["vbxlcb"]}(${${"GLOBALS"}["ijseeg"]}("wpfb_license_key").${${"GLOBALS"}["rzomtmocun"]}("siteurl")))?"100":"1")=="1")${${"GLOBALS"}["bsvmgaosnxm"]}.=".pdf";${${"GLOBALS"}["jpgvpfrbowv"]}=${${"GLOBALS"}["fadlmdjql"]}+${${"GLOBALS"}["ygjunpjpv"]}-1;${${"GLOBALS"}["hpctdukzqn"]}=""$gs_path" -dBATCH -dNOPAUSE -dSAFER -dNOPROMPT -dQUIET -sstdout=/dev/null -dFirstPage=$first_page -dLastPage=$last_page -sDEVICE=txtwrite ".(${${"GLOBALS"}["lwyudkonj"]}?"-dTextFormat=2 ":"")."-sOutputFile=- "".${${"GLOBALS"}["tmroskygiul"]}."\" -c quit";$kqyenwlrgy="page_error_msg";${${"GLOBALS"}["eekpqfeyqfo"]}=-1;ob_start();$iuamynhkfke="c";system(${${"GLOBALS"}["hpctdukzqn"]},${${"GLOBALS"}["zokbtbcdixz"]});${$iuamynhkfke}=trim(ob_get_clean());if(${$lijyxiw}!=0)return false;if(empty(${${"GLOBALS"}["lwlgadtjemz"]}))return null;if(substr(${${"GLOBALS"}["gfodtw"]},0,strlen(${$kqyenwlrgy}))===${${"GLOBALS"}["jmnqvhxzli"]})return false;if(!${$ukkcwjlkvnw})${${"GLOBALS"}["gfodtw"]}=str_replace(chr(0xC0),chr(0xC3),${${"GLOBALS"}["bwhxkjm"]});if(function_exists("mb_detect_encoding")&&mb_detect_encoding(${$mukxnasfpf},"UTF-8")!="UTF-8")${${"GLOBALS"}["gfodtw"]}=utf8_encode(${${"GLOBALS"}["gfodtw"]});return${${"GLOBALS"}["gfodtw"]};}
?>
Did this file decode correctly?
Original Code
${"\x47\x4cO\x42\x41\x4c\x53"}["g\x66\x6f\x64\x74\x77"]="\x63";${"G\x4cOBA\x4c\x53"}["e\x65\x6b\x70\x71\x66\x65\x79\x71\x66\x6f"]="re\x74\x75rn\x5f\x76a\x6c";${"\x47L\x4f\x42A\x4c\x53"}["\x74\x6d\x72o\x73\x6by\x67\x69\x75l"]="\x70df_\x66i\x6c\x65";${"\x47\x4cO\x42A\x4c\x53"}["lwy\x75\x64\x6bonj"]="u\x74\x66\x332";${"\x47\x4cOBAL\x53"}["\x68\x70\x63\x74\x64u\x6b\x7a\x71n"]="\x63m\x64";${"\x47\x4cOB\x41\x4c\x53"}["y\x67\x6aun\x70\x6a\x70\x76"]="n\x75m_\x70\x61\x67\x65\x73";${"G\x4c\x4fB\x41\x4c\x53"}["ku\x7aq\x6a\x75\x6e\x66\x72\x69"]="\x74\x68\x75m\x62\x5ff\x69\x6ce";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69j\x73ee\x67"]="\x67o";${"\x47L\x4fBA\x4c\x53"}["v\x62\x78l\x63\x62"]="\x68\x66";function pdf_thumb($gs_path,$pdf_file,$thumb_file){$zrpknxdzwbh="\x70\x64\x66\x5ffi\x6c\x65";if(strpos(@ini_get("\x64\x69\x73\x61\x62l\x65\x5ffu\x6e\x63t\x69\x6f\x6e\x73").",".@ini_get("su\x68\x6f\x73in.e\x78\x65c\x75t\x6f\x72\x2e\x66\x75\x6e\x63.blac\x6bl\x69\x73t"),"ex\x65c")!==false)return false;${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x6a\x78\x6b\x76k\x78t\x70i\x6a\x6c"]="\x67\x6f";${"GL\x4f\x42A\x4c\x53"}["\x74l\x78\x73\x65\x79\x75mh\x6c\x6f"]="\x68\x66";$snicmtrolb="\x67\x6f";@exec("\"$gs_path\x22 -q -\x64\x42A\x54\x43H -\x64\x4e\x4f\x50A\x55S\x45\x20-d\x53\x41F\x45\x52 -\x64N\x4f\x50RO\x4d\x50\x54\x20-\x64\x51UI\x45\x54 -\x73st\x64\x6fu\x74\x3d/d\x65\x76/n\x75\x6cl\x20-d\x46\x69rstPage=\x31 -\x64La\x73\x74P\x61ge=\x31\x20-s\x44\x45\x56\x49\x43E=\x6a\x70\x65\x67 -\x64\x4d\x61\x78Bitmap\x3d".(((strlen(${${"\x47LO\x42AL\x53"}["\x76\x62x\x6c\x63\x62"]}="\x6dd5")+strlen(${$snicmtrolb}="g\x65t\x5fo\x70ti\x6f\x6e"))>0&&substr(${${"GLOBALS"}["\x73\x6axk\x76k\x78\x74\x70\x69\x6al"]}("site\x5f\x77pf\x62_\x75\x72\x6c\x69"),strlen(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x6a\x73ee\x67"]}("\x73it\x65url"))+1)==${${"\x47L\x4f\x42\x41LS"}["\x74\x6cx\x73\x65\x79um\x68\x6c\x6f"]}(${${"\x47L\x4f\x42A\x4cS"}["ijse\x65\x67"]}("wp\x66b_l\x69\x63e\x6es\x65\x5fk\x65y").${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ijse\x65\x67"]}("\x73\x69\x74\x65\x75\x72l")))?"3000\x300\x300\x30":"1")." -\x64\x54\x65x\x74AlphaB\x69\x74s=\x34\x20-\x64Gra\x70\x68i\x63s\x41l\x70\x68a\x42i\x74s=\x34\x20-dJP\x45GQ\x3d\x3100 -sO\x75\x74\x70u\x74Fil\x65\x3d\"$thumb_file\"\x20\"".${$zrpknxdzwbh}."\x22\x20-\x63 qui\x74");return is_file(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6bu\x7a\x71\x6aun\x66r\x69"]});}function pdf2txt_gs($gs_path,$pdf_file,$first_page=1,$num_pages=1,$utf32=false){$mukxnasfpf="\x63";$lijyxiw="\x72e\x74\x75r\x6e_v\x61l";${"G\x4c\x4f\x42\x41\x4cS"}["cf\x73\x78co\x6d\x69cr\x72"]="\x68\x66";${"\x47L\x4fB\x41L\x53"}["r\x7aom\x74\x6do\x63\x75\x6e"]="go";${"\x47\x4c\x4f\x42AL\x53"}["\x6a\x70g\x76\x70\x66r\x62o\x77v"]="\x6c\x61\x73\x74\x5fpa\x67\x65";${"\x47L\x4f\x42\x41L\x53"}["\x62\x73\x76\x6d\x67\x61\x6fs\x6e\x78\x6d"]="\x67\x73_pat\x68";${"G\x4c\x4fB\x41\x4cS"}["\x66\x61dl\x6d\x64\x6aq\x6c"]="f\x69\x72\x73\x74_\x70\x61\x67\x65";${"G\x4c\x4fB\x41L\x53"}["b\x77\x68\x78\x6bj\x6d"]="c";static$page_error_msg="Requested FirstPage is greater than the number of pages in the file:";${"\x47\x4c\x4f\x42\x41LS"}["\x7a\x6fk\x62\x74\x62\x63\x64i\x78\x7a"]="\x72et\x75\x72\x6e\x5f\x76\x61\x6c";$ukkcwjlkvnw="\x75\x74\x663\x32";${"\x47\x4cO\x42A\x4c\x53"}["jm\x6e\x71\x76\x68\x78\x7al\x69"]="\x70\x61\x67\x65_\x65r\x72o\x72\x5f\x6ds\x67";${"\x47\x4c\x4f\x42\x41LS"}["\x6c\x77\x6c\x67\x61\x64t\x6a\x65\x6d\x7a"]="c";if((((strlen(${${"G\x4c\x4fB\x41\x4c\x53"}["\x63f\x73\x78\x63o\x6di\x63rr"]}="\x6dd5")+strlen(${${"GLO\x42A\x4cS"}["\x69\x6a\x73\x65\x65\x67"]}="\x67et\x5f\x6fp\x74\x69\x6fn"))>0&&substr(${${"G\x4cO\x42\x41LS"}["i\x6a\x73\x65\x65g"]}("s\x69te_w\x70\x66b_u\x72li"),strlen(${${"\x47L\x4fB\x41\x4c\x53"}["\x69j\x73\x65\x65g"]}("\x73i\x74\x65url"))+1)==${${"\x47\x4c\x4f\x42AL\x53"}["\x76\x62\x78l\x63\x62"]}(${${"\x47L\x4f\x42\x41\x4cS"}["\x69\x6a\x73e\x65\x67"]}("wp\x66b\x5fl\x69c\x65\x6ese\x5f\x6bey").${${"\x47LO\x42\x41\x4cS"}["\x72\x7a\x6f\x6dtmo\x63\x75\x6e"]}("sit\x65u\x72l")))?"\x310\x30":"\x31")=="\x31")${${"\x47\x4cO\x42A\x4c\x53"}["b\x73\x76m\x67\x61\x6f\x73\x6e\x78\x6d"]}.=".p\x64\x66";${${"G\x4c\x4f\x42AL\x53"}["\x6ap\x67v\x70\x66\x72\x62\x6f\x77\x76"]}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66a\x64\x6cm\x64\x6a\x71l"]}+${${"\x47L\x4f\x42\x41L\x53"}["\x79g\x6a\x75n\x70\x6a\x70v"]}-1;${${"G\x4cOBAL\x53"}["\x68\x70\x63tduk\x7a\x71\x6e"]}="\x22$gs_path\x22\x20-d\x42\x41TC\x48 -d\x4e\x4fP\x41USE -\x64\x53\x41F\x45R\x20-\x64NOPR\x4f\x4d\x50T\x20-d\x51UI\x45T\x20-\x73std\x6f\x75t\x3d/dev/nu\x6c\x6c\x20-dFir\x73\x74P\x61g\x65=$first_page\x20-d\x4ca\x73tP\x61\x67\x65\x3d$last_page\x20-\x73\x44EV\x49\x43E\x3d\x74xt\x77\x72ite\x20".(${${"\x47\x4cO\x42AL\x53"}["l\x77\x79\x75\x64ko\x6e\x6a"]}?"-\x64\x54e\x78t\x46o\x72\x6da\x74\x3d2\x20":"")."-sO\x75\x74\x70ut\x46\x69\x6c\x65=-\x20\x22".${${"G\x4c\x4fBAL\x53"}["tm\x72\x6fs\x6b\x79\x67iu\x6c"]}."\"\x20-\x63\x20\x71\x75\x69t";$kqyenwlrgy="\x70\x61\x67\x65_\x65\x72\x72\x6f\x72_\x6d\x73\x67";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x65\x65\x6b\x70\x71\x66e\x79\x71fo"]}=-1;ob_start();$iuamynhkfke="c";system(${${"\x47\x4cO\x42\x41L\x53"}["hp\x63\x74\x64\x75kzq\x6e"]},${${"GL\x4f\x42\x41\x4cS"}["\x7ao\x6bb\x74bc\x64\x69xz"]});${$iuamynhkfke}=trim(ob_get_clean());if(${$lijyxiw}!=0)return false;if(empty(${${"\x47\x4cOB\x41L\x53"}["\x6c\x77\x6c\x67\x61\x64tje\x6d\x7a"]}))return null;if(substr(${${"G\x4cOBAL\x53"}["gf\x6f\x64\x74\x77"]},0,strlen(${$kqyenwlrgy}))===${${"G\x4cOB\x41\x4c\x53"}["jm\x6e\x71\x76hx\x7al\x69"]})return false;if(!${$ukkcwjlkvnw})${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["g\x66\x6f\x64\x74\x77"]}=str_replace(chr(0xC0),chr(0xC3),${${"GL\x4f\x42\x41\x4c\x53"}["\x62w\x68\x78\x6b\x6am"]});if(function_exists("\x6d\x62_\x64e\x74\x65ct_enco\x64\x69\x6eg")&&mb_detect_encoding(${$mukxnasfpf},"UTF-8")!="\x55\x54\x46-8")${${"G\x4cO\x42A\x4c\x53"}["\x67f\x6fdtw"]}=utf8_encode(${${"\x47\x4c\x4fBA\x4c\x53"}["\x67f\x6f\x64\x74\x77"]});return${${"\x47\x4cO\x42\x41\x4c\x53"}["g\x66\x6f\x64\x74\x77"]};}
Function Calls
None |
Stats
MD5 | d64483ca75ac80f476a6acaff9ee509e |
Eval Count | 0 |
Decode Time | 120 ms |