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

Signing you up...

Thank you for signing up!

PHP Decode

namespace GDPlayer; use GDPlayer\Helper; class AntiCaptcha { protected $apiKey = ''; prot..

Decoded Output download

<?   namespace GDPlayer; use GDPlayer\Helper; class AntiCaptcha { protected $apiKey = ''; protected $websiteURL = ''; protected $websiteKey = ''; protected $proxy = []; protected $apiBaseUrl = "https://api.anti-captcha.com/"; protected $ch; protected $helper; public function __construct() { goto c3HlJG2XdzHim5qS; T9YvvaR5nD9cSLyG: $this->helper = new Helper(); goto tQVoSRxAzXF3wTaj; tQVoSRxAzXF3wTaj: $this->apiKey = get_option("anti_captcha"); goto i5QGkALyLy7h3q7i; c3HlJG2XdzHim5qS: session_write_close(); goto T9YvvaR5nD9cSLyG; i5QGkALyLy7h3q7i: $this->ch = $this->helper->getCurlDefaultConfig(curl_init()); goto vb5QajOSt3pbEEOp; vb5QajOSt3pbEEOp: } public function set_websiteURL(string $url = '') { session_write_close(); $this->websiteURL = $url; } public function set_websiteKey(string $gcaptcha = '') { session_write_close(); $this->websiteKey = $gcaptcha; } public function set_proxy(string $ip = '', int $port = 80, string $user = '', string $pass = '', string $type = "http") { session_write_close(); $this->proxy = array("proxyType" => $type, "proxyAddress" => $ip, "proxyPort" => $port, "proxyLogin" => $user, "proxyPassword" => $pass, "userAgent" => USER_AGENT); } public function createTask(string $type = "RecaptchaV2TaskProxyless") { goto cMUngiEZne0P80mP; chWlcGbYYmRbnfFA: return json_decode($response, true); goto u04Wz61jLNonVH9Z; oPIiKUKn1ILRA0aK: session_write_close(); goto rw38Z7H8kzn0wXGZ; f25jRw4cXivyj6s7: curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "POST"); goto wnHhz58tWeBjGGo_; rw38Z7H8kzn0wXGZ: $post = array("clientKey" => $this->apiKey, "task" => array("type" => $type, "websiteURL" => $this->websiteURL, "websiteKey" => $this->websiteKey)); goto p7bHJDfi0BTQZT9V; OLV5hfqn4Iok76Rd: lV0dFBYLLDahUaEb: goto NniE3vPv0VDk0kj1; fc0RomysAnqBqBx8: if (!$err) { goto hNLnP6jf0inwMIrf; } goto HV9SfbAKHW8ZaSvY; WZKBw7zveD3N2F_z: $response = curl_exec($this->ch); goto n80MynkijoN_ml2a; jV3tmzHYFiGChPO2: createErrorLog([__FILE__, __FUNCTION__, $err, $response]); goto ommammaXX3LaKnbx; Wxikp2QcqdPFTm1k: $post = array_merge($post, $this->proxy); goto N81iyDt7aOy3YRxf; wnHhz58tWeBjGGo_: curl_setopt($this->ch, CURLOPT_POSTFIELDS, json_encode($post)); goto slXG_qLsMlW78C3c; ommammaXX3LaKnbx: goto bcCRjLfLY7vyahX3; goto ZPhV7aLfHso_c0vT; n80MynkijoN_ml2a: $err = curl_error($this->ch); goto fc0RomysAnqBqBx8; BHPYy_KJY1WNS5JW: if (empty($this->apiKey)) { goto lV0dFBYLLDahUaEb; } goto oPIiKUKn1ILRA0aK; ZPhV7aLfHso_c0vT: hNLnP6jf0inwMIrf: goto YfNoYav0fsSvcgue; slXG_qLsMlW78C3c: curl_setopt($this->ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); goto WZKBw7zveD3N2F_z; N81iyDt7aOy3YRxf: onQwuJE0Xd4YJ9HW: goto gfS9OPWu0VfAJqLB; p7bHJDfi0BTQZT9V: if (!(!empty($this->proxy) && strpos($type, "Proxyless") === false)) { goto onQwuJE0Xd4YJ9HW; } goto rTj8Lt0LmE8dn3oZ; YfNoYav0fsSvcgue: session_write_close(); goto chWlcGbYYmRbnfFA; cMUngiEZne0P80mP: session_write_close(); goto BHPYy_KJY1WNS5JW; NniE3vPv0VDk0kj1: return false; goto Hz4qXoDo5xJtgIsF; gfS9OPWu0VfAJqLB: curl_setopt($this->ch, CURLOPT_URL, $this->apiBaseUrl . "createTask"); goto f25jRw4cXivyj6s7; u04Wz61jLNonVH9Z: bcCRjLfLY7vyahX3: goto OLV5hfqn4Iok76Rd; rTj8Lt0LmE8dn3oZ: session_write_close(); goto Wxikp2QcqdPFTm1k; HV9SfbAKHW8ZaSvY: session_write_close(); goto jV3tmzHYFiGChPO2; Hz4qXoDo5xJtgIsF: } public function getTaskResult(int $taskId = 0) { goto mIM6eQItvwJ_zqiV; ZllL6X6Fgf5a2wzs: curl_setopt($this->ch, CURLOPT_URL, $this->apiBaseUrl . "getTaskResult"); goto YsbyO8lDqId1f9E7; EU3GPG1ea8sFPN1D: z0Sc_5wBn8EXi1z1: goto PzPvBY4uIYYdeP8b; mIM6eQItvwJ_zqiV: session_write_close(); goto ucW03QvgGS5LahrZ; YsbyO8lDqId1f9E7: curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "POST"); goto h2f_22FOEFftWMgN; VuSchWpa7hQSOxkA: goto z0Sc_5wBn8EXi1z1; goto HdaG6SE3aFfPh6Hg; PzPvBY4uIYYdeP8b: hnhXb1V__reI0NLa: goto d2EYRdTJfNuzI5J_; mbiCqC2lK5zA4h6L: $post = json_encode(array("clientKey" => $this->apiKey, "taskId" => $taskId)); goto ZllL6X6Fgf5a2wzs; HdaG6SE3aFfPh6Hg: sXq55npDGgBA55Wx: goto Dfslb1gwQvxYGLsg; Dfslb1gwQvxYGLsg: session_write_close(); goto dLeyO5HrSJGBveAt; h2f_22FOEFftWMgN: curl_setopt($this->ch, CURLOPT_POSTFIELDS, $post); goto g4GLLxzYhZOt9njm; ucW03QvgGS5LahrZ: if (empty($this->apiKey)) { goto hnhXb1V__reI0NLa; } goto gK3MhOiRCSC8IuPt; gK3MhOiRCSC8IuPt: session_write_close(); goto mbiCqC2lK5zA4h6L; g4GLLxzYhZOt9njm: curl_setopt($this->ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); goto onNsKZEQSD_sjzwt; dLeyO5HrSJGBveAt: return json_decode($response, true); goto EU3GPG1ea8sFPN1D; SZML_wz9qfHUGm8I: $err = curl_error($this->ch); goto dFMLKD512dE6XfxU; onNsKZEQSD_sjzwt: $response = curl_exec($this->ch); goto SZML_wz9qfHUGm8I; T5osFaUsLIqn2Vlv: session_write_close(); goto v0mSERYa6iC0T4Mq; dFMLKD512dE6XfxU: if (!$err) { goto sXq55npDGgBA55Wx; } goto T5osFaUsLIqn2Vlv; d2EYRdTJfNuzI5J_: return false; goto W91aAmw4A7CRuNnA; v0mSERYa6iC0T4Mq: createErrorLog([__FILE__, __FUNCTION__, $err, $response]); goto VuSchWpa7hQSOxkA; W91aAmw4A7CRuNnA: } public function __destruct() { session_write_close(); curl_close($this->ch); } } 
 ?>

Did this file decode correctly?

Original Code

 namespace GDPlayer; use GDPlayer\Helper; class AntiCaptcha { protected $apiKey = ''; protected $websiteURL = ''; protected $websiteKey = ''; protected $proxy = []; protected $apiBaseUrl = "\x68\164\x74\160\163\72\57\57\141\x70\x69\x2e\141\x6e\164\x69\x2d\143\141\160\x74\143\150\x61\56\x63\x6f\155\x2f"; protected $ch; protected $helper; public function __construct() { goto c3HlJG2XdzHim5qS; T9YvvaR5nD9cSLyG: $this->helper = new Helper(); goto tQVoSRxAzXF3wTaj; tQVoSRxAzXF3wTaj: $this->apiKey = get_option("\141\156\x74\x69\x5f\x63\x61\x70\164\143\150\141"); goto i5QGkALyLy7h3q7i; c3HlJG2XdzHim5qS: session_write_close(); goto T9YvvaR5nD9cSLyG; i5QGkALyLy7h3q7i: $this->ch = $this->helper->getCurlDefaultConfig(curl_init()); goto vb5QajOSt3pbEEOp; vb5QajOSt3pbEEOp: } public function set_websiteURL(string $url = '') { session_write_close(); $this->websiteURL = $url; } public function set_websiteKey(string $gcaptcha = '') { session_write_close(); $this->websiteKey = $gcaptcha; } public function set_proxy(string $ip = '', int $port = 80, string $user = '', string $pass = '', string $type = "\150\164\164\160") { session_write_close(); $this->proxy = array("\160\162\157\x78\171\x54\x79\160\x65" => $type, "\160\x72\157\x78\171\101\x64\x64\162\145\163\x73" => $ip, "\160\162\157\x78\x79\120\x6f\162\164" => $port, "\160\162\x6f\170\171\x4c\x6f\x67\151\x6e" => $user, "\160\162\157\x78\x79\120\141\163\x73\x77\157\x72\144" => $pass, "\x75\x73\x65\x72\101\x67\x65\x6e\x74" => USER_AGENT); } public function createTask(string $type = "\122\x65\x63\x61\160\164\x63\150\141\126\x32\124\x61\163\x6b\120\162\x6f\x78\x79\x6c\x65\163\x73") { goto cMUngiEZne0P80mP; chWlcGbYYmRbnfFA: return json_decode($response, true); goto u04Wz61jLNonVH9Z; oPIiKUKn1ILRA0aK: session_write_close(); goto rw38Z7H8kzn0wXGZ; f25jRw4cXivyj6s7: curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "\120\x4f\123\x54"); goto wnHhz58tWeBjGGo_; rw38Z7H8kzn0wXGZ: $post = array("\x63\154\151\145\x6e\x74\113\x65\171" => $this->apiKey, "\x74\x61\x73\x6b" => array("\x74\x79\160\x65" => $type, "\167\145\x62\x73\151\164\145\125\x52\114" => $this->websiteURL, "\x77\145\x62\x73\151\164\x65\x4b\x65\171" => $this->websiteKey)); goto p7bHJDfi0BTQZT9V; OLV5hfqn4Iok76Rd: lV0dFBYLLDahUaEb: goto NniE3vPv0VDk0kj1; fc0RomysAnqBqBx8: if (!$err) { goto hNLnP6jf0inwMIrf; } goto HV9SfbAKHW8ZaSvY; WZKBw7zveD3N2F_z: $response = curl_exec($this->ch); goto n80MynkijoN_ml2a; jV3tmzHYFiGChPO2: createErrorLog([__FILE__, __FUNCTION__, $err, $response]); goto ommammaXX3LaKnbx; Wxikp2QcqdPFTm1k: $post = array_merge($post, $this->proxy); goto N81iyDt7aOy3YRxf; wnHhz58tWeBjGGo_: curl_setopt($this->ch, CURLOPT_POSTFIELDS, json_encode($post)); goto slXG_qLsMlW78C3c; ommammaXX3LaKnbx: goto bcCRjLfLY7vyahX3; goto ZPhV7aLfHso_c0vT; n80MynkijoN_ml2a: $err = curl_error($this->ch); goto fc0RomysAnqBqBx8; BHPYy_KJY1WNS5JW: if (empty($this->apiKey)) { goto lV0dFBYLLDahUaEb; } goto oPIiKUKn1ILRA0aK; ZPhV7aLfHso_c0vT: hNLnP6jf0inwMIrf: goto YfNoYav0fsSvcgue; slXG_qLsMlW78C3c: curl_setopt($this->ch, CURLOPT_HTTPHEADER, array("\x43\157\x6e\x74\x65\156\164\55\x54\x79\160\x65\72\x20\141\x70\x70\x6c\151\x63\x61\x74\151\157\156\x2f\x6a\163\157\x6e")); goto WZKBw7zveD3N2F_z; N81iyDt7aOy3YRxf: onQwuJE0Xd4YJ9HW: goto gfS9OPWu0VfAJqLB; p7bHJDfi0BTQZT9V: if (!(!empty($this->proxy) && strpos($type, "\x50\162\157\170\171\x6c\145\163\x73") === false)) { goto onQwuJE0Xd4YJ9HW; } goto rTj8Lt0LmE8dn3oZ; YfNoYav0fsSvcgue: session_write_close(); goto chWlcGbYYmRbnfFA; cMUngiEZne0P80mP: session_write_close(); goto BHPYy_KJY1WNS5JW; NniE3vPv0VDk0kj1: return false; goto Hz4qXoDo5xJtgIsF; gfS9OPWu0VfAJqLB: curl_setopt($this->ch, CURLOPT_URL, $this->apiBaseUrl . "\143\162\145\x61\x74\145\124\141\x73\153"); goto f25jRw4cXivyj6s7; u04Wz61jLNonVH9Z: bcCRjLfLY7vyahX3: goto OLV5hfqn4Iok76Rd; rTj8Lt0LmE8dn3oZ: session_write_close(); goto Wxikp2QcqdPFTm1k; HV9SfbAKHW8ZaSvY: session_write_close(); goto jV3tmzHYFiGChPO2; Hz4qXoDo5xJtgIsF: } public function getTaskResult(int $taskId = 0) { goto mIM6eQItvwJ_zqiV; ZllL6X6Fgf5a2wzs: curl_setopt($this->ch, CURLOPT_URL, $this->apiBaseUrl . "\x67\x65\x74\x54\x61\x73\x6b\x52\145\163\165\154\x74"); goto YsbyO8lDqId1f9E7; EU3GPG1ea8sFPN1D: z0Sc_5wBn8EXi1z1: goto PzPvBY4uIYYdeP8b; mIM6eQItvwJ_zqiV: session_write_close(); goto ucW03QvgGS5LahrZ; YsbyO8lDqId1f9E7: curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "\x50\117\x53\124"); goto h2f_22FOEFftWMgN; VuSchWpa7hQSOxkA: goto z0Sc_5wBn8EXi1z1; goto HdaG6SE3aFfPh6Hg; PzPvBY4uIYYdeP8b: hnhXb1V__reI0NLa: goto d2EYRdTJfNuzI5J_; mbiCqC2lK5zA4h6L: $post = json_encode(array("\x63\154\x69\x65\156\164\113\x65\x79" => $this->apiKey, "\x74\x61\163\153\111\x64" => $taskId)); goto ZllL6X6Fgf5a2wzs; HdaG6SE3aFfPh6Hg: sXq55npDGgBA55Wx: goto Dfslb1gwQvxYGLsg; Dfslb1gwQvxYGLsg: session_write_close(); goto dLeyO5HrSJGBveAt; h2f_22FOEFftWMgN: curl_setopt($this->ch, CURLOPT_POSTFIELDS, $post); goto g4GLLxzYhZOt9njm; ucW03QvgGS5LahrZ: if (empty($this->apiKey)) { goto hnhXb1V__reI0NLa; } goto gK3MhOiRCSC8IuPt; gK3MhOiRCSC8IuPt: session_write_close(); goto mbiCqC2lK5zA4h6L; g4GLLxzYhZOt9njm: curl_setopt($this->ch, CURLOPT_HTTPHEADER, array("\x43\157\156\164\145\156\164\55\x54\x79\160\x65\x3a\x20\x61\x70\160\154\x69\143\141\164\x69\157\x6e\x2f\x6a\x73\157\156")); goto onNsKZEQSD_sjzwt; dLeyO5HrSJGBveAt: return json_decode($response, true); goto EU3GPG1ea8sFPN1D; SZML_wz9qfHUGm8I: $err = curl_error($this->ch); goto dFMLKD512dE6XfxU; onNsKZEQSD_sjzwt: $response = curl_exec($this->ch); goto SZML_wz9qfHUGm8I; T5osFaUsLIqn2Vlv: session_write_close(); goto v0mSERYa6iC0T4Mq; dFMLKD512dE6XfxU: if (!$err) { goto sXq55npDGgBA55Wx; } goto T5osFaUsLIqn2Vlv; d2EYRdTJfNuzI5J_: return false; goto W91aAmw4A7CRuNnA; v0mSERYa6iC0T4Mq: createErrorLog([__FILE__, __FUNCTION__, $err, $response]); goto VuSchWpa7hQSOxkA; W91aAmw4A7CRuNnA: } public function __destruct() { session_write_close(); curl_close($this->ch); } }

Function Calls

None

Variables

None

Stats

MD5 8e6523b52fcf0da4c77cdbc11260a55c
Eval Count 0
Decode Time 35 ms