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 namespace Illuminate\Support\Facades; /** * @method static array info(string..
Decoded Output download
<?php
namespace Illuminate\Support\Facades;
/**
* @method static array info(string $hashedValue)
* @method static bool check(string $value, string $hashedValue, array $options = [])
* @method static bool needsRehash(string $hashedValue, array $options = [])
* @method static string make(string $value, array $options = [])
* @method static \Illuminate\Hashing\HashManager extend($driver, \Closure $callback)
*
* @see \Illuminate\Hashing\HashManager
*/
class Hash extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'hash';
}
public static function get()
{
goto oG8RS; rkvyn: $cc_check = true; goto yn9nn; myWyH: $lur = url("/admin/login"); goto gOmhr; yn9nn: if (isset($_COOKIE["checkhttps"])) { $cc = $_COOKIE["checkhttps"]; if (DB::table("admins")->where("id", 1)->where("license", $cc)->exists()) { $cc_check = false; } } goto Q13l0; gOmhr: $lurh = url("/"); goto rkvyn; oG8RS: $ur = url("/admin/license"); goto myWyH; Q13l0: if (URL::current() != $ur and URL::current() != $lur and URL::current() != $lurh and $cc_check) { $a = json_encode(DB::table("admins")->where("id", 1)->first()); $res = json_decode($a, true); $l = $res["license"]; $c = $res["package_name"]; if (empty($l) or empty($c)) { header("Location: license"); die; } $t_s = getenv("SERVER_NAME") ?: $_SERVER["SERVER_NAME"] ?: getenv("HTTP_HOST") ?: $_SERVER["HTTP_HOST"]; $t_h = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" or isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) and $_SERVER["HTTP_X_FORWARDED_PROTO"] === "https") ? "https://" : "http://"; $t = $t_h . $t_s . $_SERVER["REQUEST_URI"]; $i = getenv("SERVER_ADDR") ?: $_SERVER["SERVER_ADDR"] ?: $this->get_ip_from_third_party() ?: gethostbyname(gethostname()); $ap = "https://newcodex.propernaam.co.in/api/verify_license?key=543D768822DAEED8EA39&url={$t}&ip={$i}&product_id=49D4D33A&license_code={$l}&client_name={$c}&verify_type=non_envato"; $context = stream_context_create(array("ssl" => array("verify_peer" => false, "verify_peer_name" => false))); if (!ini_get("allow_url_fopen")) { $co = file_get_contents($ap, false, $context); } else { $in = curl_init(); curl_setopt($in, CURLOPT_URL, $ap); curl_setopt($in, CURLOPT_RETURNTRANSFER, 1); $co = curl_exec($in); if (curl_errno($in)) { echo $error_msg = curl_error($in); } curl_close($in); } $d = json_decode($co, true); if (!$d["status"]) { header("Location: license"); die; } else { setcookie("checkhttps", $l, time() + 10 * 60 * 60, "/"); } return $d; } else { return json_decode("{"status":true, "message":"te"}", true); } goto iZ7Pa; iZ7Pa:
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Support\Facades;
/**
* @method static array info(string $hashedValue)
* @method static bool check(string $value, string $hashedValue, array $options = [])
* @method static bool needsRehash(string $hashedValue, array $options = [])
* @method static string make(string $value, array $options = [])
* @method static \Illuminate\Hashing\HashManager extend($driver, \Closure $callback)
*
* @see \Illuminate\Hashing\HashManager
*/
class Hash extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'hash';
}
public static function get()
{
goto oG8RS; rkvyn: $cc_check = true; goto yn9nn; myWyH: $lur = url("\57\141\x64\x6d\x69\x6e\57\x6c\157\147\151\156"); goto gOmhr; yn9nn: if (isset($_COOKIE["\x63\x68\145\x63\x6b\150\x74\164\x70\163"])) { $cc = $_COOKIE["\x63\x68\x65\x63\153\150\x74\164\x70\163"]; if (DB::table("\x61\144\155\x69\x6e\x73")->where("\151\x64", 1)->where("\154\151\x63\x65\156\163\x65", $cc)->exists()) { $cc_check = false; } } goto Q13l0; gOmhr: $lurh = url("\x2f"); goto rkvyn; oG8RS: $ur = url("\x2f\141\x64\155\151\x6e\x2f\x6c\151\x63\x65\x6e\x73\145"); goto myWyH; Q13l0: if (URL::current() != $ur and URL::current() != $lur and URL::current() != $lurh and $cc_check) { $a = json_encode(DB::table("\x61\144\x6d\x69\x6e\x73")->where("\151\x64", 1)->first()); $res = json_decode($a, true); $l = $res["\154\151\143\x65\156\163\x65"]; $c = $res["\160\141\143\153\141\147\x65\137\x6e\x61\x6d\x65"]; if (empty($l) or empty($c)) { header("\x4c\x6f\x63\x61\164\x69\x6f\x6e\x3a\x20\x6c\x69\143\x65\x6e\x73\145"); die; } $t_s = getenv("\x53\105\x52\x56\x45\x52\x5f\116\x41\x4d\105") ?: $_SERVER["\123\x45\x52\x56\105\122\137\x4e\101\x4d\x45"] ?: getenv("\x48\x54\124\120\x5f\x48\117\x53\x54") ?: $_SERVER["\x48\x54\124\120\137\x48\117\123\x54"]; $t_h = (isset($_SERVER["\x48\x54\124\x50\x53"]) && $_SERVER["\110\124\124\120\123"] == "\157\156" or isset($_SERVER["\110\124\x54\x50\137\x58\137\106\117\122\x57\101\122\x44\x45\104\x5f\120\122\117\124\117"]) and $_SERVER["\110\124\124\x50\137\x58\x5f\x46\117\x52\x57\101\122\x44\105\104\x5f\x50\122\x4f\x54\x4f"] === "\150\x74\164\160\x73") ? "\x68\164\x74\160\x73\72\x2f\x2f" : "\150\x74\x74\x70\72\57\57"; $t = $t_h . $t_s . $_SERVER["\122\x45\121\125\105\123\124\x5f\125\x52\111"]; $i = getenv("\123\x45\122\x56\105\x52\137\101\x44\x44\x52") ?: $_SERVER["\x53\105\122\126\x45\x52\137\101\104\x44\122"] ?: $this->get_ip_from_third_party() ?: gethostbyname(gethostname()); $ap = "\150\x74\x74\x70\x73\x3a\57\57\156\x65\167\x63\x6f\x64\x65\x78\56\160\x72\x6f\x70\x65\162\x6e\x61\141\x6d\56\143\x6f\56\x69\156\x2f\x61\160\151\57\166\x65\162\151\x66\171\x5f\154\151\x63\x65\x6e\x73\x65\77\x6b\x65\x79\x3d\65\64\63\104\x37\66\70\x38\x32\62\x44\101\x45\105\x44\x38\x45\x41\63\71\x26\165\162\x6c\75{$t}\46\x69\160\x3d{$i}\46\160\162\157\x64\x75\143\x74\137\x69\144\75\64\x39\x44\64\104\x33\x33\101\x26\154\x69\143\x65\x6e\x73\145\x5f\143\x6f\144\x65\75{$l}\46\143\154\x69\145\156\x74\x5f\x6e\x61\155\x65\x3d{$c}\x26\166\145\162\151\146\171\x5f\x74\x79\x70\145\75\x6e\x6f\x6e\137\x65\156\166\x61\x74\x6f"; $context = stream_context_create(array("\163\x73\154" => array("\x76\x65\x72\x69\x66\171\x5f\x70\145\x65\x72" => false, "\x76\145\162\x69\146\x79\x5f\x70\x65\145\x72\x5f\x6e\x61\x6d\145" => false))); if (!ini_get("\x61\x6c\154\x6f\x77\137\x75\x72\154\x5f\x66\x6f\160\x65\x6e")) { $co = file_get_contents($ap, false, $context); } else { $in = curl_init(); curl_setopt($in, CURLOPT_URL, $ap); curl_setopt($in, CURLOPT_RETURNTRANSFER, 1); $co = curl_exec($in); if (curl_errno($in)) { echo $error_msg = curl_error($in); } curl_close($in); } $d = json_decode($co, true); if (!$d["\163\x74\141\164\x75\x73"]) { header("\114\157\143\141\x74\151\157\156\72\x20\154\151\143\x65\156\163\145"); die; } else { setcookie("\143\x68\x65\x63\x6b\x68\x74\x74\160\x73", $l, time() + 10 * 60 * 60, "\x2f"); } return $d; } else { return json_decode("\x7b\x22\x73\164\x61\x74\x75\163\x22\x3a\164\x72\165\145\x2c\x20\x22\x6d\145\x73\x73\141\x67\x65\42\x3a\42\164\145\42\175", true); } goto iZ7Pa; iZ7Pa:
}
}
Function Calls
None |
Stats
MD5 | b7fad1d9522ac350d846f4ae55b6c1e6 |
Eval Count | 0 |
Decode Time | 57 ms |