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 ${"G\x4c\x4fBA\x4cS"}["\x73mu\x63r\x6b\x62\x79\x62\x62"]="sc\x68\x65\x6de";${"\x47LO..
Decoded Output download
<?php ${"GLOBALS"}["smucrkbybb"]="scheme";${"GLOBALS"}["yewvph"]="taskId";${"GLOBALS"}["wfluoodmkh"]="message";${"GLOBALS"}["ekzwdxtn"]="CLIMsg";${"GLOBALS"}["krmzecwsso"]="mode";${"GLOBALS"}["ftrisqj"]="postDataEncoded";${"GLOBALS"}["lhhdcmaxn"]="ch";${"GLOBALS"}["kkspxqi"]="result";${"GLOBALS"}["gwvoguemx"]="postResult";${"GLOBALS"}["qmxgjeynljb"]="postData";${"GLOBALS"}["qrsnigeui"]="currentSecond";${"GLOBALS"}["yeklljs"]="submitResult";interface AntiCaptchaTaskProtocol{public function getPostData();public function getTaskSolution();}class Anticaptcha{private$host="api.capmonster.cloud";private$scheme="https";private$clientKey;private$verboseMode=false;private$errorMessage;private$taskId;public$taskInfo;public function createTask(){$wgiiguiifdog="postData";${"GLOBALS"}["orwpnzu"]="postData";${$wgiiguiifdog}=array("clientKey"=>$this->clientKey,"task"=>$this->getPostData());${${"GLOBALS"}["yeklljs"]}=$this->jsonPostRequest("createTask",${${"GLOBALS"}["orwpnzu"]});if(${${"GLOBALS"}["yeklljs"]}==false){$this->debout("API error","red");return false;}if($submitResult->errorId==0){$this->taskId=$submitResult->taskId;$this->debout("created task with ID {$this->taskId}","yellow");return true;}else{$this->debout("API error {$submitResult->errorCode} : {$submitResult->errorDescription}","red");$this->setErrorMessage($submitResult->errorDescription);return false;}}public function waitForResult($maxSeconds=300,$currentSecond=0){${"GLOBALS"}["bzcdda"]="postData";${${"GLOBALS"}["bzcdda"]}=array("clientKey"=>$this->clientKey,"taskId"=>$this->taskId);if(${${"GLOBALS"}["qrsnigeui"]}==0){$this->debout("waiting 5 seconds..");sleep(3);}else{sleep(1);}$this->debout("requesting task status");${"GLOBALS"}["vethpuvoe"]="postResult";${${"GLOBALS"}["vethpuvoe"]}=$this->jsonPostRequest("getTaskResult",${${"GLOBALS"}["qmxgjeynljb"]});if(${${"GLOBALS"}["gwvoguemx"]}==false){$this->debout("API error","red");return false;}$this->taskInfo=${${"GLOBALS"}["gwvoguemx"]};if($this->taskInfo->errorId==0){if($this->taskInfo->status=="processing"){${"GLOBALS"}["qfcrrlkc"]="maxSeconds";${"GLOBALS"}["qxypnzygg"]="currentSecond";$this->debout("task is still processing");return$this->waitForResult(${${"GLOBALS"}["qfcrrlkc"]},${${"GLOBALS"}["qxypnzygg"]}+1);}if($this->taskInfo->status=="ready"){$this->debout("task is complete","green");return true;}$this->setErrorMessage("unknown API status, update your software");return false;}else{$this->debout("API error {$this->taskInfo->errorCode} : {$this->taskInfo->errorDescription}","red");$this->setErrorMessage($this->taskInfo->errorDescription);return false;}}public function getBalance(){${"GLOBALS"}["mcgubxml"]="postData";${${"GLOBALS"}["mcgubxml"]}=array("clientKey"=>$this->clientKey);${${"GLOBALS"}["kkspxqi"]}=$this->jsonPostRequest("getBalance",${${"GLOBALS"}["qmxgjeynljb"]});if(${${"GLOBALS"}["kkspxqi"]}==false){$this->debout("API error","red");return false;}if($result->errorId==0){return$result->balance;}else{return false;}}public function jsonPostRequest($methodName,$postData){$mfurjeo="ch";${"GLOBALS"}["kugyzsfx"]="ch";${"GLOBALS"}["lgbdmuc"]="ch";if($this->verboseMode){"making request to {$this->scheme}://{$this->host}/$methodName with following payload:
";}${"GLOBALS"}["fdzmkvtttnxm"]="ch";${${"GLOBALS"}["lgbdmuc"]}=curl_init();$wbtkefdghrya="curlError";curl_setopt(${${"GLOBALS"}["lhhdcmaxn"]},CURLOPT_URL,"{$this->scheme}://{$this->host}/$methodName");${"GLOBALS"}["msshwsvswmg"]="ch";curl_setopt(${${"GLOBALS"}["lhhdcmaxn"]},CURLOPT_RETURNTRANSFER,1);${"GLOBALS"}["yfheocapxgw"]="ch";curl_setopt(${${"GLOBALS"}["fdzmkvtttnxm"]},CURLOPT_ENCODING,"gzip,deflate");curl_setopt(${$mfurjeo},CURLOPT_CUSTOMREQUEST,"POST");${${"GLOBALS"}["ftrisqj"]}=json_encode(${${"GLOBALS"}["qmxgjeynljb"]});$ccibsygkw="ch";curl_setopt(${${"GLOBALS"}["yfheocapxgw"]},CURLOPT_POSTFIELDS,${${"GLOBALS"}["ftrisqj"]});curl_setopt(${${"GLOBALS"}["lhhdcmaxn"]},CURLOPT_HTTPHEADER,array("Content-Type: application/json; charset=utf-8","Accept: application/json","Content-Length: ".strlen(${${"GLOBALS"}["ftrisqj"]})));curl_setopt(${${"GLOBALS"}["lhhdcmaxn"]},CURLOPT_TIMEOUT,30);${"GLOBALS"}["rgqktlrkmv"]="curlError";curl_setopt(${$ccibsygkw},CURLOPT_CONNECTTIMEOUT,30);${${"GLOBALS"}["kkspxqi"]}=curl_exec(${${"GLOBALS"}["lhhdcmaxn"]});${${"GLOBALS"}["rgqktlrkmv"]}=curl_error(${${"GLOBALS"}["kugyzsfx"]});if(${$wbtkefdghrya}!=""){$this->debout("Network error: $curlError");return false;}curl_close(${${"GLOBALS"}["msshwsvswmg"]});return json_decode(${${"GLOBALS"}["kkspxqi"]});}public function setVerboseMode($mode){$this->verboseMode=${${"GLOBALS"}["krmzecwsso"]};}public function debout($message,$color="white"){if(!$this->verboseMode)return false;${"GLOBALS"}["jmvvcnf"]="color";${"GLOBALS"}["glddtz"]="color";$unvhhtvsgqkh="CLIMsg";if(${${"GLOBALS"}["jmvvcnf"]}!="white"and${${"GLOBALS"}["glddtz"]}!=""){${"GLOBALS"}["qrfczqxgeh"]="CLIcolors";$tiwjwktnsjq="color";$qgscnxikshi="CLIcolors";${${"GLOBALS"}["qrfczqxgeh"]}=array("cyan"=>"0;36","green"=>"0;32","blue"=>"0;34","red"=>"0;31","yellow"=>"1;33");${${"GLOBALS"}["ekzwdxtn"]}="[".${$qgscnxikshi}[${$tiwjwktnsjq}]."m$message[0m";}else{${${"GLOBALS"}["ekzwdxtn"]}=${${"GLOBALS"}["wfluoodmkh"]};}${$unvhhtvsgqkh}."
";}public function setErrorMessage($message){$xgmslwnvas="message";$this->errorMessage=${$xgmslwnvas};}public function getErrorMessage(){return$this->errorMessage;}public function getTaskId(){return$this->taskId;}public function setTaskId($taskId){$this->taskId=${${"GLOBALS"}["yewvph"]};}public function setHost($host){$this->host=$host;}public function setScheme($scheme){$this->scheme=${${"GLOBALS"}["smucrkbybb"]};}public function setKey($key){${"GLOBALS"}["irskgthnblr"]="key";$this->clientKey=${${"GLOBALS"}["irskgthnblr"]};}}
?>
Did this file decode correctly?
Original Code
<?php ${"G\x4c\x4fBA\x4cS"}["\x73mu\x63r\x6b\x62\x79\x62\x62"]="sc\x68\x65\x6de";${"\x47LOB\x41\x4cS"}["ye\x77\x76\x70\x68"]="ta\x73\x6b\x49\x64";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77\x66\x6cuo\x6f\x64\x6d\x6bh"]="me\x73\x73\x61\x67\x65";${"\x47LO\x42A\x4cS"}["\x65kz\x77d\x78\x74\x6e"]="\x43\x4c\x49\x4d\x73\x67";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6b\x72m\x7a\x65c\x77\x73\x73o"]="\x6d\x6f\x64\x65";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x74\x72\x69\x73\x71\x6a"]="\x70\x6f\x73\x74\x44\x61\x74\x61\x45\x6e\x63\x6fde\x64";${"\x47\x4cOB\x41LS"}["\x6c\x68h\x64\x63\x6d\x61\x78\x6e"]="\x63\x68";${"\x47L\x4fBA\x4c\x53"}["\x6b\x6b\x73\x70\x78q\x69"]="\x72\x65s\x75lt";${"\x47L\x4f\x42\x41\x4c\x53"}["g\x77v\x6fg\x75\x65m\x78"]="\x70\x6f\x73t\x52es\x75\x6c\x74";${"\x47\x4c\x4fBAL\x53"}["q\x6d\x78\x67\x6a\x65\x79n\x6c\x6ab"]="po\x73\x74\x44\x61\x74a";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x72\x73\x6e\x69g\x65\x75\x69"]="cu\x72\x72e\x6e\x74\x53e\x63o\x6ed";${"GLO\x42A\x4c\x53"}["\x79\x65kl\x6c\x6a\x73"]="s\x75\x62mi\x74\x52\x65\x73ul\x74";interface AntiCaptchaTaskProtocol{public function getPostData();public function getTaskSolution();}class Anticaptcha{private$host="api.capmonster.cloud";private$scheme="https";private$clientKey;private$verboseMode=false;private$errorMessage;private$taskId;public$taskInfo;public function createTask(){$wgiiguiifdog="\x70\x6f\x73\x74\x44\x61\x74a";${"\x47\x4c\x4f\x42\x41LS"}["o\x72wp\x6ez\x75"]="\x70\x6f\x73\x74\x44a\x74\x61";${$wgiiguiifdog}=array("\x63l\x69\x65ntK\x65\x79"=>$this->clientKey,"\x74\x61\x73k"=>$this->getPostData());${${"\x47L\x4f\x42\x41LS"}["\x79\x65\x6b\x6c\x6cjs"]}=$this->jsonPostRequest("creat\x65\x54a\x73\x6b",${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6fr\x77\x70\x6ez\x75"]});if(${${"GL\x4f\x42\x41\x4cS"}["\x79\x65k\x6cl\x6a\x73"]}==false){$this->debout("API \x65r\x72o\x72","r\x65\x64");return false;}if($submitResult->errorId==0){$this->taskId=$submitResult->taskId;$this->debout("\x63\x72\x65at\x65\x64\x20\x74ask with \x49\x44\x20{$this->taskId}","\x79e\x6cl\x6fw");return true;}else{$this->debout("\x41\x50I\x20er\x72\x6f\x72 {$submitResult->errorCode}\x20: {$submitResult->errorDescription}","\x72ed");$this->setErrorMessage($submitResult->errorDescription);return false;}}public function waitForResult($maxSeconds=300,$currentSecond=0){${"G\x4c\x4fB\x41\x4c\x53"}["\x62zc\x64da"]="\x70\x6f\x73\x74Da\x74a";${${"G\x4c\x4fB\x41\x4c\x53"}["bz\x63dd\x61"]}=array("\x63lie\x6etKe\x79"=>$this->clientKey,"\x74\x61skId"=>$this->taskId);if(${${"\x47L\x4fB\x41\x4c\x53"}["\x71\x72s\x6e\x69g\x65ui"]}==0){$this->debout("\x77aiti\x6eg \x35 se\x63\x6f\x6e\x64s\x2e\x2e");sleep(3);}else{sleep(1);}$this->debout("re\x71\x75\x65s\x74in\x67\x20ta\x73\x6b s\x74at\x75\x73");${"\x47\x4c\x4f\x42A\x4c\x53"}["ve\x74\x68\x70\x75v\x6fe"]="\x70\x6f\x73t\x52\x65\x73u\x6c\x74";${${"G\x4c\x4fB\x41\x4c\x53"}["\x76\x65\x74\x68\x70\x75\x76o\x65"]}=$this->jsonPostRequest("\x67\x65t\x54a\x73\x6bRes\x75\x6ct",${${"\x47\x4cOB\x41\x4cS"}["\x71\x6dxgj\x65y\x6el\x6a\x62"]});if(${${"GLO\x42\x41\x4c\x53"}["\x67\x77\x76\x6f\x67\x75\x65m\x78"]}==false){$this->debout("A\x50I \x65r\x72o\x72","r\x65d");return false;}$this->taskInfo=${${"G\x4c\x4f\x42\x41\x4cS"}["\x67wv\x6f\x67\x75e\x6d\x78"]};if($this->taskInfo->errorId==0){if($this->taskInfo->status=="\x70r\x6f\x63e\x73\x73\x69\x6e\x67"){${"\x47L\x4fBA\x4c\x53"}["\x71\x66\x63r\x72lk\x63"]="\x6da\x78S\x65\x63o\x6e\x64s";${"\x47\x4c\x4f\x42\x41LS"}["\x71xypn\x7a\x79\x67\x67"]="cu\x72\x72\x65\x6e\x74\x53e\x63\x6fn\x64";$this->debout("t\x61sk is\x20\x73\x74\x69\x6c\x6c\x20pro\x63e\x73si\x6e\x67");return$this->waitForResult(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x71f\x63rrl\x6b\x63"]},${${"G\x4cO\x42\x41\x4c\x53"}["\x71\x78\x79pn\x7a\x79\x67g"]}+1);}if($this->taskInfo->status=="\x72\x65ady"){$this->debout("ta\x73\x6b\x20is\x20\x63\x6fmpl\x65\x74\x65","g\x72\x65en");return true;}$this->setErrorMessage("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x41\x50\x49\x20\x73\x74\x61tu\x73,\x20upd\x61t\x65 \x79our s\x6f\x66twar\x65");return false;}else{$this->debout("\x41\x50I\x20er\x72\x6f\x72 {$this->taskInfo->errorCode}\x20: {$this->taskInfo->errorDescription}","\x72\x65\x64");$this->setErrorMessage($this->taskInfo->errorDescription);return false;}}public function getBalance(){${"G\x4c\x4f\x42\x41\x4cS"}["\x6dc\x67\x75\x62\x78\x6dl"]="\x70o\x73t\x44\x61\x74\x61";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6d\x63\x67\x75b\x78\x6d\x6c"]}=array("cl\x69\x65n\x74\x4b\x65\x79"=>$this->clientKey);${${"\x47\x4c\x4fBA\x4c\x53"}["\x6b\x6b\x73\x70\x78\x71i"]}=$this->jsonPostRequest("\x67et\x42\x61\x6ca\x6e\x63e",${${"\x47LO\x42\x41L\x53"}["\x71\x6dxgj\x65\x79\x6e\x6c\x6a\x62"]});if(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x6bs\x70\x78\x71\x69"]}==false){$this->debout("\x41\x50I\x20\x65\x72\x72or","\x72e\x64");return false;}if($result->errorId==0){return$result->balance;}else{return false;}}public function jsonPostRequest($methodName,$postData){$mfurjeo="c\x68";${"GL\x4fB\x41L\x53"}["\x6b\x75\x67y\x7a\x73\x66x"]="c\x68";${"\x47\x4cOBALS"}["\x6c\x67\x62\x64\x6d\x75\x63"]="c\x68";if($this->verboseMode){"mak\x69ng\x20\x72e\x71ues\x74\x20\x74o {$this->scheme}://{$this->host}/$methodName wi\x74\x68 \x66o\x6c\x6c\x6fwi\x6e\x67\x20pa\x79lo\x61\x64:\n";}${"\x47L\x4fBA\x4c\x53"}["\x66\x64z\x6d\x6b\x76t\x74\x74\x6ex\x6d"]="ch";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["l\x67\x62d\x6d\x75\x63"]}=curl_init();$wbtkefdghrya="\x63\x75\x72l\x45\x72\x72\x6f\x72";curl_setopt(${${"\x47\x4c\x4fBA\x4c\x53"}["\x6c\x68\x68d\x63ma\x78n"]},CURLOPT_URL,"{$this->scheme}://{$this->host}/$methodName");${"\x47LO\x42\x41\x4c\x53"}["\x6d\x73s\x68\x77\x73v\x73\x77\x6dg"]="\x63h";curl_setopt(${${"\x47L\x4f\x42\x41\x4cS"}["l\x68\x68\x64\x63\x6d\x61\x78n"]},CURLOPT_RETURNTRANSFER,1);${"\x47\x4c\x4f\x42\x41L\x53"}["y\x66\x68\x65oc\x61\x70x\x67\x77"]="ch";curl_setopt(${${"G\x4c\x4fB\x41LS"}["f\x64z\x6dkvt\x74\x74\x6e\x78\x6d"]},CURLOPT_ENCODING,"g\x7a\x69p,de\x66la\x74\x65");curl_setopt(${$mfurjeo},CURLOPT_CUSTOMREQUEST,"\x50\x4f\x53\x54");${${"\x47LOB\x41\x4cS"}["f\x74\x72\x69\x73\x71\x6a"]}=json_encode(${${"\x47\x4c\x4fBAL\x53"}["\x71m\x78g\x6ae\x79n\x6c\x6ab"]});$ccibsygkw="\x63h";curl_setopt(${${"\x47L\x4f\x42\x41\x4cS"}["yf\x68\x65o\x63\x61p\x78gw"]},CURLOPT_POSTFIELDS,${${"\x47L\x4fB\x41\x4c\x53"}["\x66\x74\x72\x69sqj"]});curl_setopt(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ch\x68\x64c\x6da\x78\x6e"]},CURLOPT_HTTPHEADER,array("\x43\x6fn\x74\x65\x6et-\x54\x79\x70\x65: app\x6c\x69c\x61ti\x6f\x6e/\x6as\x6f\x6e;\x20\x63\x68a\x72s\x65\x74=\x75\x74\x66-\x38","A\x63\x63e\x70t:\x20\x61\x70pl\x69c\x61tion/\x6a\x73on","\x43\x6f\x6e\x74\x65nt-Leng\x74\x68:\x20".strlen(${${"\x47LOB\x41\x4c\x53"}["\x66\x74ri\x73\x71j"]})));curl_setopt(${${"\x47L\x4fB\x41\x4c\x53"}["\x6c\x68\x68\x64\x63\x6d\x61\x78\x6e"]},CURLOPT_TIMEOUT,30);${"G\x4c\x4fBA\x4cS"}["r\x67\x71\x6bt\x6c\x72k\x6d\x76"]="\x63u\x72lEr\x72o\x72";curl_setopt(${$ccibsygkw},CURLOPT_CONNECTTIMEOUT,30);${${"\x47L\x4f\x42A\x4c\x53"}["\x6b\x6bs\x70\x78\x71\x69"]}=curl_exec(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6c\x68hd\x63max\x6e"]});${${"\x47\x4c\x4fBA\x4cS"}["\x72\x67q\x6b\x74l\x72k\x6d\x76"]}=curl_error(${${"\x47\x4c\x4f\x42AL\x53"}["\x6bu\x67\x79\x7a\x73\x66\x78"]});if(${$wbtkefdghrya}!=""){$this->debout("N\x65\x74w\x6fr\x6b e\x72r\x6fr: $curlError");return false;}curl_close(${${"G\x4cOB\x41\x4cS"}["\x6dss\x68\x77\x73\x76\x73\x77\x6d\x67"]});return json_decode(${${"\x47\x4c\x4fB\x41\x4c\x53"}["k\x6b\x73\x70\x78\x71i"]});}public function setVerboseMode($mode){$this->verboseMode=${${"G\x4c\x4f\x42\x41\x4cS"}["k\x72\x6dze\x63\x77\x73so"]};}public function debout($message,$color="white"){if(!$this->verboseMode)return false;${"G\x4cO\x42A\x4cS"}["\x6am\x76\x76\x63\x6e\x66"]="\x63\x6fl\x6f\x72";${"G\x4cO\x42\x41\x4c\x53"}["\x67l\x64\x64\x74z"]="\x63\x6f\x6c\x6f\x72";$unvhhtvsgqkh="C\x4c\x49M\x73g";if(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6a\x6dv\x76\x63\x6e\x66"]}!="\x77\x68ite"and${${"G\x4c\x4fB\x41L\x53"}["\x67\x6c\x64\x64\x74\x7a"]}!=""){${"\x47L\x4fB\x41\x4cS"}["\x71\x72f\x63\x7aq\x78\x67eh"]="\x43\x4cI\x63\x6fl\x6f\x72\x73";$tiwjwktnsjq="c\x6f\x6c\x6fr";$qgscnxikshi="CLI\x63\x6fl\x6fr\x73";${${"\x47L\x4f\x42AL\x53"}["q\x72\x66\x63\x7a\x71x\x67e\x68"]}=array("c\x79\x61\x6e"=>"\x30\x3b\x33\x36","green"=>"0;32","b\x6cue"=>"0\x3b34","red"=>"\x30\x3b3\x31","yel\x6co\x77"=>"1\x3b3\x33");${${"G\x4cOBA\x4c\x53"}["\x65kz\x77d\x78\x74n"]}="\033[".${$qgscnxikshi}[${$tiwjwktnsjq}]."m$message\033[\x30\x6d";}else{${${"\x47LO\x42\x41LS"}["\x65\x6bz\x77\x64\x78t\x6e"]}=${${"\x47\x4c\x4fB\x41\x4c\x53"}["w\x66luo\x6fd\x6d\x6bh"]};}${$unvhhtvsgqkh}."\n";}public function setErrorMessage($message){$xgmslwnvas="\x6d\x65\x73\x73\x61g\x65";$this->errorMessage=${$xgmslwnvas};}public function getErrorMessage(){return$this->errorMessage;}public function getTaskId(){return$this->taskId;}public function setTaskId($taskId){$this->taskId=${${"G\x4cO\x42AL\x53"}["\x79\x65\x77v\x70\x68"]};}public function setHost($host){$this->host=$host;}public function setScheme($scheme){$this->scheme=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73m\x75\x63r\x6b\x62yb\x62"]};}public function setKey($key){${"G\x4cO\x42\x41\x4c\x53"}["irs\x6b\x67\x74\x68\x6eb\x6c\x72"]="\x6b\x65\x79";$this->clientKey=${${"\x47\x4cO\x42\x41L\x53"}["ir\x73\x6bgt\x68\x6eb\x6c\x72"]};}}
Function Calls
None |
Stats
MD5 | 8c17ab3ef1abeed61a7a35ec060df6fe |
Eval Count | 0 |
Decode Time | 146 ms |