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

Signing you up...

Thank you for signing up!

PHP Decode

goto V6QxJ; V6QxJ: $this_server_name = getenv("\123\x45\122\x56\x45\x52\137\x4e\101\x4d\10..

Decoded Output download

<?  goto V6QxJ; V6QxJ: $this_server_name = getenv("SERVER_NAME") ?: $_SERVER["SERVER_NAME"] ?: getenv("HTTP_HOST") ?: $_SERVER["HTTP_HOST"]; goto qpycU; EWvia: $varUrl = "https://newcodex.propernaam.co.in/api/activate_license?key=543D768822DAEED8EA39&url={$this_url}&ip={$this_ip}&product_id=0A8911DC&license_code={$request->license}&client_name={$request->package}&verify_type=non_envato"; goto hjKMm; JOcue: $this_ip = getenv("SERVER_ADDR") ?: $_SERVER["SERVER_ADDR"] ?: $this->get_ip_from_third_party() ?: gethostbyname(gethostname()); goto EWvia; EX9CM: $chk = json_decode($contents, true); goto pO6uR; qpycU: $this_http_or_https = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" or isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) and $_SERVER["HTTP_X_FORWARDED_PROTO"] === "https") ? "https://" : "http://"; goto GzIbs; hjKMm: $context = stream_context_create(array("ssl" => array("verify_peer" => false, "verify_peer_name" => false))); goto BeW1v; BeW1v: if (ini_get("allow_url_fopen")) { $contents = file_get_contents($varUrl, false, $context); } else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $varUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $contents = curl_exec($ch); if (curl_errno($ch)) { echo $error_msg = curl_error($ch); } curl_close($ch); } goto EX9CM; pO6uR: $msg = $chk["message"]; goto z80h9; GzIbs: $this_url = $this_http_or_https . $this_server_name . $_SERVER["REQUEST_URI"]; goto JOcue; z80h9: if ($chk["status"]) { $admin = Admin::find(1); $admin->license = $request->license; $admin->package_name = $request->package; $admin->save(); return redirect(route("admin.dashboard"))->with("status-success", $msg); } else { return redirect(route("admin.license"))->with("status-alert", $msg); } ?>

Did this file decode correctly?

Original Code

goto V6QxJ; V6QxJ: $this_server_name = getenv("\123\x45\122\x56\x45\x52\137\x4e\101\x4d\105") ?: $_SERVER["\x53\105\x52\x56\x45\122\137\116\x41\115\105"] ?: getenv("\110\124\124\120\x5f\110\117\123\124") ?: $_SERVER["\110\x54\x54\120\x5f\110\117\x53\x54"]; goto qpycU; EWvia: $varUrl = "\x68\x74\164\x70\163\x3a\x2f\57\156\145\x77\x63\x6f\144\145\170\56\160\x72\x6f\x70\145\x72\x6e\141\141\x6d\56\143\x6f\56\151\x6e\x2f\141\160\151\x2f\141\x63\164\151\x76\141\164\x65\x5f\154\151\143\x65\x6e\x73\x65\x3f\153\x65\x79\75\x35\x34\x33\104\x37\x36\70\70\x32\62\104\101\x45\105\x44\x38\105\101\x33\x39\x26\165\x72\154\75{$this_url}\46\x69\160\75{$this_ip}\x26\x70\x72\157\144\165\143\x74\137\x69\x64\x3d\60\x41\70\x39\x31\x31\104\103\x26\x6c\x69\x63\145\x6e\163\x65\x5f\143\x6f\x64\145\75{$request->license}\x26\x63\154\151\x65\156\x74\x5f\x6e\x61\155\145\75{$request->package}\x26\166\145\162\x69\146\171\x5f\x74\x79\160\145\75\x6e\x6f\x6e\x5f\x65\156\x76\141\164\x6f"; goto hjKMm; JOcue: $this_ip = getenv("\x53\105\122\x56\x45\122\137\x41\x44\104\122") ?: $_SERVER["\x53\105\122\x56\x45\x52\x5f\101\104\x44\x52"] ?: $this->get_ip_from_third_party() ?: gethostbyname(gethostname()); goto EWvia; EX9CM: $chk = json_decode($contents, true); goto pO6uR; qpycU: $this_http_or_https = (isset($_SERVER["\x48\124\x54\x50\123"]) && $_SERVER["\110\124\124\x50\x53"] == "\157\x6e" or isset($_SERVER["\x48\x54\124\x50\137\x58\137\106\117\x52\127\101\x52\104\x45\x44\x5f\x50\x52\x4f\124\117"]) and $_SERVER["\110\x54\124\x50\137\130\137\x46\x4f\x52\x57\101\122\104\x45\x44\x5f\x50\x52\117\124\x4f"] === "\x68\164\164\160\163") ? "\150\164\164\x70\x73\x3a\x2f\x2f" : "\150\x74\164\160\72\x2f\x2f"; goto GzIbs; hjKMm: $context = stream_context_create(array("\x73\163\x6c" => array("\x76\x65\162\x69\x66\171\137\x70\x65\145\x72" => false, "\166\145\162\x69\146\x79\137\160\145\145\162\137\x6e\x61\x6d\x65" => false))); goto BeW1v; BeW1v: if (ini_get("\x61\x6c\x6c\x6f\x77\137\165\162\154\x5f\x66\157\160\145\156")) { $contents = file_get_contents($varUrl, false, $context); } else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $varUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $contents = curl_exec($ch); if (curl_errno($ch)) { echo $error_msg = curl_error($ch); } curl_close($ch); } goto EX9CM; pO6uR: $msg = $chk["\155\x65\x73\163\x61\x67\145"]; goto z80h9; GzIbs: $this_url = $this_http_or_https . $this_server_name . $_SERVER["\x52\x45\x51\x55\105\x53\124\137\125\x52\111"]; goto JOcue; z80h9: if ($chk["\163\164\x61\164\x75\163"]) { $admin = Admin::find(1); $admin->license = $request->license; $admin->package_name = $request->package; $admin->save(); return redirect(route("\x61\x64\155\x69\156\56\144\141\x73\150\142\157\141\162\x64"))->with("\x73\164\141\164\165\163\x2d\x73\x75\143\x63\145\163\x73", $msg); } else { return redirect(route("\141\144\x6d\151\x6e\x2e\154\x69\143\145\x6e\x73\145"))->with("\x73\x74\x61\x74\165\x73\x2d\x61\x6c\x65\162\x74", $msg); }

Function Calls

None

Variables

None

Stats

MD5 8b9fd12b9d7290875456d9bee41c344b
Eval Count 0
Decode Time 68 ms