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 uahyb; wOgxq: if ($result->code == 300) { $admin = Admin::find(1); $admin->license = ..

Decoded Output download

<?  goto uahyb; wOgxq: if ($result->code == 300) { $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); } goto BMi5P; pXtl3: curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); goto B91Tw; m0mcT: $this_url = $this_http_or_https . $this_server_name . $_SERVER["REQUEST_URI"]; goto KYHPM; nlwW7: $domain = isset($pieces["host"]) ? $pieces["host"] : $pieces["path"]; goto IFRd6; uCy9i: $response = curl_exec($ch); goto XbrRW; SokRO: $result = $data->response; goto tl1Xi; gT7hV: $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 m0mcT; B91Tw: curl_setopt($ch, CURLOPT_POSTFIELDS, $post); goto uCy9i; XbrRW: curl_close($ch); goto LbVIj; KYHPM: $this_ip = getenv("SERVER_ADDR") ?: $_SERVER["SERVER_ADDR"] ?: $this->get_ip_from_third_party() ?: gethostbyname(gethostname()); goto OLbcc; uahyb: $this_server_name = getenv("SERVER_NAME") ?: $_SERVER["SERVER_NAME"] ?: getenv("HTTP_HOST") ?: $_SERVER["HTTP_HOST"]; goto gT7hV; OLbcc: $pieces = parse_url($this_url); goto nlwW7; IFRd6: if (preg_match("/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i", $domain, $regs)) { $hostPath = $regs["domain"]; } goto RKjEw; RKjEw: $post = array("api_key" => "e1e5bc06-de7a-4b58-89a6-22db256bad59", "license_key" => $request->license, "identifier" => "1", "post_url" => $request->package); goto x8Qs3; LbVIj: $data = json_decode($response); goto SokRO; tl1Xi: $msg = $result->message; goto wOgxq; x8Qs3: $ch = curl_init("https://codex.propernaam.xyz/api/v1/activate"); goto pXtl3; BMi5P: ?>

Did this file decode correctly?

Original Code

goto uahyb; wOgxq: if ($result->code == 300) { $admin = Admin::find(1); $admin->license = $request->license; $admin->package_name = $request->package; $admin->save(); return redirect(route("\x61\144\x6d\x69\156\x2e\x64\x61\163\x68\142\157\141\x72\144"))->with("\163\164\x61\x74\165\163\x2d\163\x75\x63\x63\x65\163\163", $msg); } else { return redirect(route("\141\144\155\x69\x6e\x2e\154\x69\x63\145\156\163\145"))->with("\x73\164\x61\164\165\x73\55\141\x6c\145\162\164", $msg); } goto BMi5P; pXtl3: curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); goto B91Tw; m0mcT: $this_url = $this_http_or_https . $this_server_name . $_SERVER["\122\x45\121\125\105\x53\x54\x5f\x55\x52\111"]; goto KYHPM; nlwW7: $domain = isset($pieces["\x68\157\x73\164"]) ? $pieces["\x68\157\163\x74"] : $pieces["\x70\x61\x74\x68"]; goto IFRd6; uCy9i: $response = curl_exec($ch); goto XbrRW; SokRO: $result = $data->response; goto tl1Xi; gT7hV: $this_http_or_https = (isset($_SERVER["\x48\x54\124\x50\123"]) && $_SERVER["\110\x54\124\x50\123"] == "\157\156" or isset($_SERVER["\110\x54\x54\x50\x5f\x58\x5f\x46\117\x52\x57\101\122\x44\x45\104\x5f\x50\122\x4f\124\117"]) and $_SERVER["\110\x54\124\x50\x5f\130\137\106\117\x52\x57\x41\x52\x44\x45\104\x5f\120\x52\x4f\124\117"] === "\x68\164\164\x70\x73") ? "\x68\164\164\160\163\x3a\x2f\x2f" : "\x68\164\x74\x70\x3a\x2f\x2f"; goto m0mcT; B91Tw: curl_setopt($ch, CURLOPT_POSTFIELDS, $post); goto uCy9i; XbrRW: curl_close($ch); goto LbVIj; KYHPM: $this_ip = getenv("\x53\105\122\126\x45\x52\137\101\x44\104\x52") ?: $_SERVER["\x53\105\x52\126\105\x52\x5f\x41\104\104\122"] ?: $this->get_ip_from_third_party() ?: gethostbyname(gethostname()); goto OLbcc; uahyb: $this_server_name = getenv("\123\x45\x52\x56\x45\122\137\116\101\x4d\105") ?: $_SERVER["\123\105\x52\x56\105\x52\137\116\x41\x4d\105"] ?: getenv("\x48\x54\x54\x50\137\110\117\123\x54") ?: $_SERVER["\x48\x54\x54\120\x5f\110\x4f\x53\x54"]; goto gT7hV; OLbcc: $pieces = parse_url($this_url); goto nlwW7; IFRd6: if (preg_match("\x2f\50\77\x50\74\144\x6f\155\x61\x69\156\x3e\133\x61\x2d\x7a\x30\x2d\71\135\x5b\141\x2d\x7a\60\x2d\x39\x5c\x2d\135\173\x31\54\x36\63\175\x5c\x2e\x5b\141\x2d\x7a\x5c\56\135\x7b\62\x2c\66\x7d\x29\x24\57\151", $domain, $regs)) { $hostPath = $regs["\x64\x6f\155\x61\151\156"]; } goto RKjEw; RKjEw: $post = array("\141\160\151\x5f\153\x65\x79" => "\145\61\x65\x35\x62\143\60\66\55\x64\x65\x37\x61\x2d\64\x62\x35\70\55\70\71\141\x36\55\62\x32\144\x62\62\x35\x36\142\141\x64\65\71", "\154\151\x63\x65\x6e\x73\x65\137\x6b\x65\x79" => $request->license, "\151\x64\145\156\x74\151\x66\x69\145\x72" => "\x31", "\x70\x6f\163\x74\x5f\165\162\x6c" => $request->package); goto x8Qs3; LbVIj: $data = json_decode($response); goto SokRO; tl1Xi: $msg = $result->message; goto wOgxq; x8Qs3: $ch = curl_init("\150\x74\x74\160\163\x3a\57\x2f\x63\157\x64\x65\x78\x2e\x70\x72\157\160\x65\x72\x6e\x61\x61\x6d\x2e\x78\171\x7a\57\x61\x70\151\57\x76\61\x2f\x61\143\x74\x69\166\x61\164\145"); goto pXtl3; BMi5P:

Function Calls

None

Variables

None

Stats

MD5 0958fae923bf3617baff08165350a5ea
Eval Count 0
Decode Time 48 ms