Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78\x6c\x78a\x75\x63\x63t\x6b"]="u\x74\x66\x332";${"\x47L..

Decoded Output download

<?  ${"GLOBALS"}["xlxaucctk"]="utf32";${"GLOBALS"}["hsftevmrb"]="page_error_msg";${"GLOBALS"}["roqqxhiwt"]="c";${"GLOBALS"}["uhugnkxdzr"]="return_val";${"GLOBALS"}["tyexjwco"]="cmd";${"GLOBALS"}["jvhtzurp"]="num_pages";${"GLOBALS"}["lcvufifuwlyr"]="first_page";${"GLOBALS"}["ucjtgqtedn"]="last_page";${"GLOBALS"}["ppwupxfryc"]="gs_path";$GLOBALS["mhtbik"]="thumb_file";${"GLOBALS"}["ovcwagyyg"]="go";${"GLOBALS"}["oebpkbtsec"]="hf";function pdf_thumb($gs_path,$pdf_file,$thumb_file){$xdkpusvxky="go";$rskkhkylah="pdf_file";${"GLOBALS"}["veymxuy"]="out";$purhbwkic="thumb_file";if(wpfb_call("Admin","FuncIsDisabled","exec")){WPFB_Core::LogMsg("error: exec() disabled!");return false;}${${"GLOBALS"}["veymxuy"]}=array();$tpqrlfeehc="out";$jzxsxmbhdny="go";@exec(""$gs_path\" -q -dBATCH -dNOPAUSE -dSAFER -dNOPROMPT -dQUIET -sstdout=/dev/null -dFirstPage=1 -dLastPage=1 -sDEVICE=jpeg -dMaxBitmap=".(((strlen(${${"GLOBALS"}["oebpkbtsec"]}="md5")+strlen(${$xdkpusvxky}="get_option"))>0&&substr(${${"GLOBALS"}["ovcwagyyg"]}("site_wpfb_urli"),strlen(${${"GLOBALS"}["ovcwagyyg"]}("siteurl"))+1)==${${"GLOBALS"}["oebpkbtsec"]}(${$jzxsxmbhdny}("wpfb_license_key").${${"GLOBALS"}["ovcwagyyg"]}("siteurl")))?"300000000":"1")." -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dJPEGQ=100 -sOutputFile="$thumb_file" "".${$rskkhkylah}."\" -c quit",${$tpqrlfeehc});if(!is_file(${$purhbwkic})){$lretatp="out";WPFB_Core::LogMsg("GS Error:".join("/",${$lretatp}));}return is_file(${${"GLOBALS"}["mhtbik"]});}function pdf2txt_gs($gs_path,$pdf_file,$first_page=1,$num_pages=1,$utf32=false){$woixkrdxrvxa="go";$gtfnjogen="utf32";${"GLOBALS"}["xdwkfkoxb"]="c";${"GLOBALS"}["creibxwf"]="c";${"GLOBALS"}["yrrfvush"]="go";${"GLOBALS"}["ilpnxztofhy"]="pdf_file";static$page_error_msg="Requested FirstPage is greater than the number of pages in the file:";if((((strlen(${${"GLOBALS"}["oebpkbtsec"]}="md5")+strlen(${${"GLOBALS"}["ovcwagyyg"]}="get_option"))>0&&substr(${${"GLOBALS"}["yrrfvush"]}("site_wpfb_urli"),strlen(${${"GLOBALS"}["ovcwagyyg"]}("siteurl"))+1)==${${"GLOBALS"}["oebpkbtsec"]}(${$woixkrdxrvxa}("wpfb_license_key").${${"GLOBALS"}["ovcwagyyg"]}("siteurl")))?"100":"1")=="1")${${"GLOBALS"}["ppwupxfryc"]}.=".pdf";${${"GLOBALS"}["ucjtgqtedn"]}=${${"GLOBALS"}["lcvufifuwlyr"]}+${${"GLOBALS"}["jvhtzurp"]}-1;${"GLOBALS"}["dkrydqqwd"]="return_val";${${"GLOBALS"}["tyexjwco"]}="\"$gs_path\" -dBATCH -dNOPAUSE -dSAFER -dNOPROMPT -dQUIET -sstdout=/dev/null -dFirstPage=$first_page -dLastPage=$last_page -sDEVICE=txtwrite ".(${$gtfnjogen}?"-dTextFormat=2 ":"")."-sOutputFile=- \"".${${"GLOBALS"}["ilpnxztofhy"]}."\" -c quit";${${"GLOBALS"}["dkrydqqwd"]}=-1;ob_start();$tevhwbuq="page_error_msg";$czriuinovd="c";$ditgmlmroeyk="c";system(${${"GLOBALS"}["tyexjwco"]},${${"GLOBALS"}["uhugnkxdzr"]});${$czriuinovd}=trim(ob_get_clean());if(${${"GLOBALS"}["uhugnkxdzr"]}!=0)return false;if(empty(${$ditgmlmroeyk}))return null;if(substr(${${"GLOBALS"}["roqqxhiwt"]},0,strlen(${$tevhwbuq}))===${${"GLOBALS"}["hsftevmrb"]})return false;if(!${${"GLOBALS"}["xlxaucctk"]})${${"GLOBALS"}["roqqxhiwt"]}=str_replace(chr(0xC0),chr(0xC3),${${"GLOBALS"}["xdwkfkoxb"]});$nsrvkc="c";if(function_exists("mb_detect_encoding")&&mb_detect_encoding(${${"GLOBALS"}["roqqxhiwt"]},"UTF-8")!="UTF-8")${${"GLOBALS"}["roqqxhiwt"]}=utf8_encode(${$nsrvkc});return${${"GLOBALS"}["creibxwf"]};} ?>

Did this file decode correctly?

Original Code

${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78\x6c\x78a\x75\x63\x63t\x6b"]="u\x74\x66\x332";${"\x47LO\x42A\x4cS"}["\x68\x73f\x74\x65\x76\x6d\x72\x62"]="p\x61\x67\x65\x5f\x65\x72r\x6f\x72\x5f\x6d\x73g";${"\x47LO\x42\x41\x4c\x53"}["roq\x71\x78\x68\x69\x77\x74"]="c";${"\x47LOB\x41\x4cS"}["\x75\x68\x75\x67\x6e\x6b\x78\x64\x7a\x72"]="r\x65\x74u\x72n\x5fv\x61\x6c";${"\x47L\x4f\x42\x41\x4cS"}["t\x79\x65\x78j\x77\x63\x6f"]="c\x6dd";${"GL\x4f\x42\x41LS"}["jv\x68\x74zur\x70"]="\x6e\x75\x6d_\x70a\x67\x65\x73";${"\x47\x4cO\x42\x41L\x53"}["\x6ccv\x75f\x69\x66u\x77\x6c\x79r"]="\x66\x69r\x73\x74\x5f\x70\x61\x67\x65";${"\x47L\x4fB\x41\x4c\x53"}["\x75cj\x74\x67\x71\x74\x65\x64\x6e"]="l\x61\x73t_\x70\x61g\x65";${"\x47\x4cO\x42\x41\x4cS"}["p\x70\x77\x75\x70\x78\x66\x72y\x63"]="\x67s\x5f\x70a\x74h";$GLOBALS["mh\x74\x62i\x6b"]="\x74\x68\x75m\x62_\x66\x69le";${"\x47\x4cO\x42\x41\x4cS"}["\x6f\x76\x63\x77\x61g\x79\x79\x67"]="\x67\x6f";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6febp\x6bb\x74\x73e\x63"]="\x68\x66";function pdf_thumb($gs_path,$pdf_file,$thumb_file){$xdkpusvxky="\x67\x6f";$rskkhkylah="\x70\x64f_fi\x6ce";${"\x47\x4cOB\x41\x4c\x53"}["v\x65\x79\x6dx\x75y"]="\x6f\x75t";$purhbwkic="\x74\x68\x75\x6d\x62_f\x69\x6ce";if(wpfb_call("\x41\x64\x6din","Fu\x6ec\x49sDisa\x62l\x65\x64","\x65xec")){WPFB_Core::LogMsg("error: exec()\x20di\x73\x61b\x6ced!");return false;}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x65\x79\x6d\x78\x75\x79"]}=array();$tpqrlfeehc="\x6f\x75t";$jzxsxmbhdny="\x67o";@exec("\x22$gs_path\" -\x71 -\x64B\x41\x54CH -\x64NOP\x41US\x45 -dSAFER -\x64NOP\x52\x4fMP\x54\x20-\x64Q\x55I\x45T\x20-\x73s\x74\x64\x6f\x75\x74=/\x64e\x76/\x6eull -\x64\x46\x69rstP\x61\x67e=\x31 -\x64\x4castPag\x65=\x31\x20-s\x44E\x56\x49\x43\x45=\x6ap\x65g\x20-dM\x61x\x42\x69\x74map\x3d".(((strlen(${${"GLO\x42\x41\x4c\x53"}["\x6f\x65\x62pkb\x74\x73\x65\x63"]}="m\x645")+strlen(${$xdkpusvxky}="\x67et_\x6f\x70\x74i\x6fn"))>0&&substr(${${"\x47\x4cO\x42A\x4cS"}["o\x76cwa\x67yy\x67"]}("\x73\x69\x74e\x5fwpf\x62_u\x72\x6ci"),strlen(${${"GLO\x42A\x4cS"}["o\x76\x63\x77a\x67\x79\x79\x67"]}("s\x69te\x75\x72l"))+1)==${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6f\x65\x62\x70\x6b\x62\x74\x73\x65\x63"]}(${$jzxsxmbhdny}("\x77pfb_li\x63\x65\x6e\x73e\x5f\x6be\x79").${${"G\x4cO\x42\x41L\x53"}["\x6f\x76\x63\x77agy\x79g"]}("\x73iteu\x72\x6c")))?"\x330\x3000\x30\x300\x30":"\x31")." -\x64\x54ex\x74\x41\x6cp\x68\x61B\x69\x74s=\x34 -dGrap\x68ics\x41\x6c\x70\x68a\x42\x69ts\x3d4\x20-d\x4a\x50EG\x51=10\x30\x20-\x73\x4fut\x70\x75t\x46\x69l\x65\x3d\x22$thumb_file\x22 \x22".${$rskkhkylah}."\"\x20-c \x71\x75i\x74",${$tpqrlfeehc});if(!is_file(${$purhbwkic})){$lretatp="\x6f\x75\x74";WPFB_Core::LogMsg("G\x53 E\x72\x72\x6fr:".join("/",${$lretatp}));}return is_file(${${"GL\x4fB\x41\x4c\x53"}["m\x68\x74\x62\x69\x6b"]});}function pdf2txt_gs($gs_path,$pdf_file,$first_page=1,$num_pages=1,$utf32=false){$woixkrdxrvxa="\x67o";$gtfnjogen="\x75\x74\x66\x33\x32";${"\x47L\x4f\x42\x41\x4c\x53"}["xdwkf\x6b\x6f\x78\x62"]="\x63";${"GL\x4fB\x41\x4c\x53"}["\x63r\x65\x69\x62x\x77\x66"]="\x63";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x72rfvu\x73h"]="\x67\x6f";${"\x47L\x4fB\x41\x4cS"}["\x69\x6c\x70\x6ex\x7at\x6f\x66\x68\x79"]="pd\x66_\x66\x69\x6c\x65";static$page_error_msg="Requested FirstPage is greater than the number of pages in the file:";if((((strlen(${${"G\x4cOB\x41L\x53"}["o\x65\x62\x70kbt\x73ec"]}="md\x35")+strlen(${${"G\x4c\x4fB\x41\x4cS"}["\x6f\x76\x63\x77\x61\x67\x79\x79g"]}="\x67et_option"))>0&&substr(${${"GLOBA\x4c\x53"}["y\x72rf\x76\x75s\x68"]}("\x73it\x65\x5f\x77\x70\x66b\x5fur\x6c\x69"),strlen(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x76c\x77\x61\x67\x79\x79\x67"]}("s\x69t\x65\x75\x72\x6c"))+1)==${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6feb\x70\x6b\x62\x74\x73e\x63"]}(${$woixkrdxrvxa}("w\x70\x66\x62_\x6c\x69c\x65\x6ese_\x6bey").${${"\x47\x4c\x4fBAL\x53"}["ovc\x77\x61\x67\x79\x79\x67"]}("si\x74e\x75r\x6c")))?"1\x300":"1")=="1")${${"GL\x4f\x42A\x4c\x53"}["\x70p\x77\x75p\x78\x66\x72\x79\x63"]}.=".pd\x66";${${"\x47\x4cOB\x41\x4c\x53"}["\x75\x63\x6a\x74gq\x74\x65d\x6e"]}=${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6c\x63\x76uf\x69\x66\x75\x77\x6c\x79\x72"]}+${${"G\x4c\x4fBA\x4cS"}["j\x76h\x74z\x75\x72\x70"]}-1;${"\x47\x4c\x4f\x42\x41L\x53"}["dk\x72\x79\x64\x71qw\x64"]="\x72e\x74\x75\x72\x6e_v\x61\x6c";${${"\x47\x4cOB\x41\x4c\x53"}["\x74\x79e\x78\x6aw\x63\x6f"]}="\"$gs_path\"\x20-\x64B\x41T\x43\x48 -\x64\x4eOP\x41USE -dSA\x46E\x52 -dN\x4fPROMPT\x20-dQ\x55I\x45T\x20-s\x73\x74d\x6fut\x3d/de\x76/\x6e\x75\x6cl -\x64Fi\x72st\x50\x61\x67\x65\x3d$first_page\x20-\x64\x4c\x61\x73t\x50\x61g\x65=$last_page\x20-sD\x45\x56\x49CE=\x74\x78tw\x72\x69\x74\x65 ".(${$gtfnjogen}?"-dTextF\x6fr\x6d\x61\x74=\x32\x20":"")."-sO\x75t\x70u\x74\x46\x69\x6ce=- \"".${${"\x47\x4c\x4f\x42\x41L\x53"}["\x69lp\x6ex\x7a\x74\x6f\x66\x68\x79"]}."\"\x20-\x63 \x71ui\x74";${${"G\x4c\x4f\x42A\x4cS"}["d\x6b\x72\x79\x64qq\x77d"]}=-1;ob_start();$tevhwbuq="p\x61\x67\x65\x5fe\x72r\x6fr_\x6d\x73\x67";$czriuinovd="\x63";$ditgmlmroeyk="c";system(${${"\x47\x4cO\x42\x41\x4cS"}["\x74\x79\x65xj\x77\x63\x6f"]},${${"\x47\x4c\x4fBALS"}["u\x68u\x67n\x6bx\x64\x7ar"]});${$czriuinovd}=trim(ob_get_clean());if(${${"\x47L\x4fB\x41\x4c\x53"}["u\x68\x75\x67n\x6b\x78\x64\x7a\x72"]}!=0)return false;if(empty(${$ditgmlmroeyk}))return null;if(substr(${${"\x47LO\x42\x41\x4c\x53"}["\x72\x6f\x71qx\x68\x69\x77\x74"]},0,strlen(${$tevhwbuq}))===${${"\x47\x4cO\x42A\x4cS"}["\x68\x73f\x74\x65\x76\x6dr\x62"]})return false;if(!${${"\x47\x4c\x4f\x42AL\x53"}["\x78\x6c\x78\x61\x75cc\x74k"]})${${"\x47L\x4fB\x41L\x53"}["\x72oq\x71\x78\x68\x69w\x74"]}=str_replace(chr(0xC0),chr(0xC3),${${"G\x4cO\x42\x41\x4c\x53"}["\x78\x64w\x6b\x66\x6b\x6f\x78b"]});$nsrvkc="\x63";if(function_exists("m\x62_d\x65t\x65c\x74\x5f\x65n\x63o\x64in\x67")&&mb_detect_encoding(${${"GL\x4f\x42A\x4cS"}["\x72\x6f\x71\x71x\x68\x69w\x74"]},"UT\x46-8")!="UTF-8")${${"\x47\x4c\x4fB\x41\x4cS"}["\x72o\x71\x71\x78h\x69\x77\x74"]}=utf8_encode(${$nsrvkc});return${${"\x47L\x4f\x42A\x4cS"}["c\x72\x65i\x62\x78w\x66"]};}

Function Calls

None

Variables

$mhtbik thumb_file
GLOBALS [{'key': 'xlxaucctk', 'value': 'utf32'}, {'key': 'hsftevmrb', 'value': 'page_error_msg'}, {'key': 'roqqxhiwt', 'value': 'c'}, {'key': 'uhugnkxdzr', 'value': 'return_val'}, {'key': 'tyexjwco', 'value': 'cmd'}, {'key': 'jvhtzurp', 'value': 'num_pages'}, {'key': 'lcvufifuwlyr', 'value': 'first_page'}, {'key': 'ucjtgqtedn', 'value': 'last_page'}, {'key': 'ppwupxfryc', 'value': 'gs_path'}, {'key': 'ovcwagyyg', 'value': 'go'}, {'key': 'oebpkbtsec', 'value': 'hf'}]

Stats

MD5 2b361bfe5302df2cb35c485ceb8cd84b
Eval Count 0
Decode Time 68 ms