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 class mo_linkedin_oidc { public $color = "\43\x30\x30\x37\101\102\71"; ..
Decoded Output download
<? ?php
class mo_linkedin_oidc
{
public $color = "#007AB9";
public $scope = "openid email profile";
public $video_url = "https://www.youtube.com/embed/Qs-PSyy7KVQ";
public $instructions;
public function __construct()
{
$this->site_url = get_option("siteurl");
$this->instructions = "Go to <a href="http://developer.linkedin.com/" target="_blank">http://developer.linkedin.com/</a> and click on <strong>Create Apps</strong> and sign in with your linkedin account.##Enter the Application Name, Linkedin page URl or name, Privacy Policy URL, And upload app logo.##If you don't have a linked in page click on <a href="https://www.linkedin.com/company/setup/new/" target="_blank">https://www.linkedin.com/company/setup/new/</a> to create a new page.##Check the <b>API Terms of Use</b> and click on create app.##Click on <b>Auth</b> tab and enter <b><code id='11'>" . mo_get_permalink("linkedin_oidc") . "</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="far fa-fw fa-lg fa-copy mo_copy mo_copytooltip" onclick="copyToClipboard(this, '#11', '#shortcode_url_copy')"><span id="shortcode_url_copy" class="mo_copytooltiptext">Copy to Clipboard</span></i></b> as <strong>Redirect URLs </strong>and click on <strong>Update</strong>##On the same page you will be able to see your <strong>Client ID</strong> and <strong>Client Secret</strong> under the <strong>Application credentials</strong> section. Copy these and Paste them into the fields above. ##Go to the <b>Product tab</b>.##Find <b>Sign In with LinkedIn using OpenID Connect</b> and click on <b>Select</b>. Check the legal agreement check box and Click on <b>Request Access</b>.##Find <b>Share on LinkedIn</b> and click on <b>Select</b> .Check the legal agreement check box and Click on <b>Request Access</b>. This permission required for social sharing.##Wait till Linkedin approves your permission. ##Click on the Save settings button.##Go to Social Login tab to configure the display as well as other login settings";
}
function mo_openid_get_app_code()
{
$ZY = maybe_unserialize(get_option("mo_openid_apps_list"));
$HD = get_social_app_redirect_uri("linkedin_oidc");
mo_openid_start_session();
$_SESSION["appname"] = "linkedin_oidc";
$Ct = $ZY["linkedin_oidc"]["clientid"];
$xM = $ZY["linkedin_oidc"]["scope"];
$wy = "https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=" . $Ct . "&redirect_uri=" . $HD . "&state=fooobar&scope=" . $xM;
header("Location:" . $wy);
exit;
}
function mo_openid_get_access_token()
{
$Mv = mo_openid_validate_code();
$HD = get_social_app_redirect_uri("linkedin_oidc");
$ZY = maybe_unserialize(get_option("mo_openid_apps_list"));
$Ct = $ZY["linkedin_oidc"]["clientid"];
$ya = $ZY["linkedin_oidc"]["clientsecret"];
$Cu = "https://www.linkedin.com/oauth/v2/accessToken";
$Fp = "grant_type=authorization_code&code=" . $Mv . "&redirect_uri=" . $HD . "&client_id=" . $Ct . "&client_secret=" . $ya;
$Bq = mo_openid_get_access_token($Fp, $Cu, "linkedin_oidc");
$i3 = isset($Bq["access_token"]) ? $Bq["access_token"] : '';
mo_openid_start_session();
$Hq = $Bq["id_token"];
$Hq = explode(".", $Hq);
$Hq = base64_decode(str_pad(strtr($Hq[1], "-_", "+/"), strlen($s0) % 4, "=", STR_PAD_RIGHT));
$N1 = json_decode($Hq, true);
if (!(is_user_logged_in() && get_option("mo_openid_test_configuration") == 1)) {
goto JoB;
}
mo_openid_app_test_config($N1);
JoB:
$Di = $tf = $nh = $Yp = $N7 = $Rd = $YC = $H5 = '';
$DF = $wW = $XY = $aL = $eP = $xy = $xo = '';
$Yp = isset($N1["email"]) ? $N1["email"] : '';
$tf = isset($N1["given_name"]) ? $N1["given_name"] : '';
$Di = isset($N1["name"]) ? $N1["name"] : '';
$nh = isset($N1["family_name"]) ? $N1["family_name"] : '';
$YC = isset($N1["picture"]) ? $N1["picture"] : '';
$H5 = isset($N1["id"]) ? $N1["id"] : '';
$K4 = array("first_name" => $tf, "last_name" => $nh, "email" => $Yp, "user_name" => $Di, "user_url" => $Rd, "user_picture" => $YC, "social_user_id" => $H5, "location_city" => $DF, "location_country" => $wW, "about_me" => $XY, "company_name" => $aL, "friend_nos" => $xo, "gender" => $xy, "age" => $eP);
return $K4;
}
} ?>
Did this file decode correctly?
Original Code
?php
class mo_linkedin_oidc
{
public $color = "\43\x30\x30\x37\101\102\71";
public $scope = "\x6f\x70\145\156\x69\x64\x20\145\155\141\151\x6c\40\x70\162\157\x66\151\154\145";
public $video_url = "\x68\x74\x74\x70\x73\x3a\57\x2f\167\167\x77\56\x79\157\165\164\165\x62\145\56\x63\157\155\57\145\x6d\x62\145\144\57\121\x73\55\x50\x53\x79\171\x37\113\126\x51";
public $instructions;
public function __construct()
{
$this->site_url = get_option("\x73\x69\x74\145\165\162\154");
$this->instructions = "\107\x6f\40\164\157\40\x3c\141\40\x68\x72\x65\x66\x3d\42\150\164\164\x70\72\x2f\57\144\145\x76\145\x6c\x6f\x70\x65\x72\56\154\151\156\x6b\x65\144\x69\156\56\143\157\155\x2f\x22\x20\x74\141\x72\x67\145\x74\75\x22\x5f\x62\154\141\x6e\x6b\x22\76\x68\x74\x74\x70\72\57\x2f\x64\145\166\x65\154\157\160\x65\x72\x2e\x6c\151\x6e\x6b\x65\x64\151\x6e\56\143\157\x6d\57\x3c\x2f\x61\76\x20\141\156\144\40\x63\154\151\x63\x6b\x20\x6f\x6e\40\74\x73\x74\162\x6f\156\147\x3e\x43\x72\x65\x61\x74\x65\40\x41\160\160\163\x3c\57\x73\x74\x72\157\156\x67\76\40\x61\x6e\144\40\x73\151\147\156\x20\151\156\x20\167\x69\x74\x68\x20\171\x6f\x75\162\40\x6c\151\156\x6b\145\x64\x69\x6e\40\141\x63\143\x6f\x75\x6e\x74\x2e\43\43\x45\156\164\x65\162\40\x74\150\x65\40\101\x70\x70\x6c\151\x63\x61\164\x69\x6f\x6e\40\x4e\x61\155\x65\x2c\x20\114\x69\x6e\153\x65\x64\x69\x6e\x20\160\141\x67\x65\x20\125\x52\154\x20\157\162\x20\x6e\141\155\x65\54\x20\x50\162\x69\x76\x61\x63\x79\x20\120\x6f\154\x69\x63\x79\x20\125\x52\114\54\x20\101\x6e\x64\x20\x75\160\x6c\x6f\x61\144\40\141\x70\x70\x20\154\157\147\157\56\x23\43\x49\x66\x20\x79\x6f\x75\x20\x64\x6f\156\47\164\40\x68\141\x76\145\x20\141\x20\154\151\156\153\145\144\40\x69\x6e\x20\x70\141\x67\145\x20\x63\154\x69\143\x6b\x20\x6f\x6e\40\x3c\141\40\x68\162\145\x66\x3d\x22\x68\x74\x74\160\x73\72\57\x2f\x77\x77\x77\56\x6c\151\x6e\x6b\x65\144\151\x6e\56\143\x6f\x6d\57\143\x6f\x6d\160\x61\x6e\x79\x2f\163\x65\x74\165\160\x2f\x6e\x65\x77\x2f\x22\x20\164\x61\x72\147\145\164\75\x22\x5f\142\154\x61\x6e\153\x22\x3e\150\x74\164\160\x73\x3a\x2f\57\x77\167\167\x2e\x6c\151\156\153\145\144\x69\x6e\56\143\157\155\57\143\157\x6d\x70\x61\x6e\x79\x2f\x73\145\164\165\x70\x2f\156\145\167\x2f\x3c\57\141\76\40\x74\x6f\40\x63\162\x65\141\x74\x65\40\x61\40\x6e\145\167\40\x70\141\x67\145\56\43\x23\x43\x68\145\x63\x6b\x20\x74\x68\x65\40\74\142\x3e\x41\x50\111\40\x54\145\162\155\163\40\157\x66\x20\x55\x73\145\74\x2f\142\x3e\x20\141\x6e\144\x20\x63\x6c\151\x63\x6b\x20\x6f\156\x20\143\162\145\x61\164\145\40\x61\160\x70\56\x23\43\103\x6c\151\143\x6b\x20\x6f\x6e\x20\74\x62\76\x41\165\x74\150\74\57\142\x3e\40\x74\141\142\40\141\x6e\x64\40\x65\156\164\145\x72\40\74\142\76\x3c\143\157\x64\145\40\x69\144\x3d\x27\61\61\47\76" . mo_get_permalink("\x6c\151\156\x6b\145\x64\151\156\137\157\x69\x64\x63") . "\x3c\x2f\143\157\x64\145\x3e\74\x69\x20\x73\x74\171\x6c\145\75\x20\42\x77\x69\144\164\x68\x3a\40\61\x31\x70\170\x3b\150\145\151\x67\x68\164\72\x20\x39\160\170\73\x70\x61\144\144\x69\x6e\x67\x2d\154\145\x66\x74\72\x32\160\x78\73\x70\141\x64\144\151\x6e\147\55\164\157\x70\72\x33\x70\x78\42\x20\x63\154\141\x73\163\x3d\x22\146\x61\162\40\x66\x61\x2d\x66\x77\40\x66\141\55\154\147\x20\x66\x61\55\143\157\160\171\40\x6d\157\x5f\143\x6f\160\x79\40\155\x6f\x5f\143\157\x70\x79\x74\157\x6f\x6c\164\x69\x70\x22\40\x6f\156\143\x6c\151\143\153\x3d\42\x63\157\x70\x79\x54\157\103\154\151\x70\142\x6f\141\x72\144\50\x74\150\151\x73\54\40\x27\x23\x31\61\47\54\40\x27\43\163\150\157\x72\x74\143\157\144\x65\x5f\165\x72\x6c\x5f\x63\157\x70\x79\x27\51\x22\76\74\x73\x70\141\x6e\x20\151\144\x3d\42\163\150\157\162\x74\143\157\x64\145\x5f\165\162\x6c\x5f\143\x6f\x70\171\x22\x20\x63\154\141\x73\163\75\x22\x6d\157\137\x63\157\160\171\164\x6f\x6f\x6c\164\x69\160\164\145\x78\164\42\76\x43\x6f\160\171\x20\164\x6f\x20\103\154\x69\160\x62\x6f\x61\162\x64\x3c\57\163\x70\x61\x6e\x3e\74\x2f\x69\76\74\x2f\x62\x3e\x20\141\x73\x20\74\163\x74\x72\x6f\x6e\x67\76\x52\145\144\151\x72\145\143\164\40\x55\x52\x4c\163\40\74\57\163\x74\x72\157\156\147\x3e\141\x6e\x64\40\x63\x6c\151\x63\153\40\x6f\156\x20\x3c\163\164\x72\157\156\x67\76\x55\160\x64\x61\164\145\x3c\57\163\164\162\157\156\x67\76\43\43\117\156\40\164\150\145\40\x73\141\155\x65\40\160\x61\147\x65\x20\171\x6f\x75\x20\x77\x69\x6c\x6c\x20\142\145\x20\x61\x62\x6c\x65\x20\x74\157\x20\x73\145\145\x20\171\157\x75\162\x20\74\x73\164\x72\x6f\x6e\147\x3e\x43\x6c\151\x65\x6e\164\40\x49\104\x3c\x2f\163\x74\x72\157\x6e\147\x3e\40\x61\x6e\x64\40\74\x73\x74\x72\157\156\x67\x3e\x43\154\151\145\156\164\x20\123\x65\x63\162\145\x74\x3c\57\163\x74\162\157\156\147\76\40\165\x6e\x64\145\x72\40\x74\x68\145\40\74\x73\164\162\x6f\156\147\76\101\160\160\154\x69\143\141\x74\151\x6f\156\40\143\x72\x65\144\145\156\x74\x69\x61\154\163\x3c\57\x73\x74\162\x6f\x6e\147\76\x20\163\x65\x63\164\151\x6f\156\56\x20\103\157\x70\171\x20\x74\x68\145\163\x65\x20\x61\x6e\x64\40\120\141\x73\x74\x65\x20\164\x68\x65\x6d\40\151\x6e\164\157\40\x74\x68\x65\x20\146\x69\145\154\144\163\x20\x61\142\x6f\x76\145\56\40\x23\x23\x47\x6f\x20\164\157\40\x74\150\145\40\74\142\76\x50\162\157\144\165\x63\x74\40\164\141\x62\74\x2f\x62\76\56\x23\43\x46\151\156\144\40\74\x62\76\x53\x69\147\x6e\x20\x49\x6e\40\167\x69\x74\x68\x20\114\151\156\x6b\x65\x64\x49\156\x20\x75\163\151\156\147\40\x4f\160\x65\156\x49\x44\40\103\157\156\156\x65\x63\164\x3c\57\142\x3e\x20\x61\156\x64\40\x63\x6c\151\x63\x6b\40\x6f\156\40\x3c\x62\x3e\123\145\154\x65\x63\x74\74\x2f\x62\x3e\x2e\x20\103\x68\145\143\153\x20\164\150\145\x20\x6c\x65\x67\x61\154\x20\141\147\x72\145\145\155\x65\156\x74\x20\143\150\x65\x63\153\40\142\x6f\x78\x20\141\156\x64\x20\103\154\x69\143\153\40\x6f\156\40\x3c\x62\x3e\122\145\161\x75\x65\163\x74\40\101\x63\143\145\163\163\74\57\x62\x3e\x2e\43\x23\106\151\156\144\40\74\142\x3e\x53\x68\x61\x72\145\40\157\x6e\40\x4c\151\156\153\x65\144\x49\x6e\74\57\x62\x3e\40\x61\x6e\x64\x20\143\x6c\x69\x63\153\40\157\156\40\x3c\142\76\x53\x65\154\x65\x63\164\x3c\x2f\142\x3e\x20\x2e\103\150\x65\x63\x6b\40\x74\150\x65\x20\x6c\145\x67\x61\x6c\x20\x61\147\162\145\x65\155\145\156\164\40\x63\x68\x65\143\x6b\x20\x62\157\170\x20\141\x6e\144\40\x43\x6c\151\143\153\40\157\x6e\x20\x3c\142\x3e\x52\145\x71\x75\x65\x73\164\40\101\x63\143\145\163\163\x3c\x2f\142\76\56\x20\124\150\151\x73\40\x70\145\162\155\x69\163\163\x69\x6f\156\x20\x72\145\161\x75\151\x72\145\144\x20\146\157\162\40\163\157\143\x69\x61\x6c\40\x73\150\141\162\x69\x6e\147\x2e\43\x23\x57\141\x69\164\40\x74\x69\x6c\154\40\x4c\151\x6e\153\145\144\151\156\40\141\160\160\162\157\166\x65\x73\x20\x79\x6f\x75\162\x20\x70\x65\162\155\151\x73\x73\x69\157\156\56\40\x23\x23\103\x6c\151\x63\x6b\40\157\156\40\x74\x68\145\40\x53\141\x76\x65\40\x73\x65\x74\x74\x69\156\147\x73\40\142\165\164\x74\x6f\156\56\x23\43\107\x6f\x20\x74\x6f\40\123\x6f\x63\151\x61\154\40\114\157\147\x69\x6e\x20\x74\x61\x62\x20\x74\157\x20\143\157\x6e\146\x69\147\x75\x72\x65\40\164\150\145\x20\x64\x69\163\x70\154\x61\171\40\x61\x73\40\167\x65\x6c\x6c\x20\x61\163\x20\x6f\x74\x68\145\x72\x20\x6c\157\147\151\x6e\x20\x73\x65\164\164\x69\156\147\x73";
}
function mo_openid_get_app_code()
{
$ZY = maybe_unserialize(get_option("\155\x6f\x5f\157\160\x65\x6e\x69\x64\x5f\141\x70\160\x73\x5f\154\x69\163\x74"));
$HD = get_social_app_redirect_uri("\x6c\x69\x6e\153\x65\x64\x69\156\137\x6f\x69\144\x63");
mo_openid_start_session();
$_SESSION["\141\x70\x70\156\141\x6d\145"] = "\x6c\x69\156\153\145\x64\151\156\137\157\x69\144\x63";
$Ct = $ZY["\x6c\151\156\153\x65\x64\151\156\x5f\x6f\x69\x64\143"]["\143\x6c\151\x65\x6e\164\x69\x64"];
$xM = $ZY["\154\x69\x6e\153\x65\x64\151\156\x5f\x6f\151\x64\143"]["\163\x63\157\x70\x65"];
$wy = "\x68\x74\164\x70\x73\x3a\x2f\57\x77\x77\167\56\154\151\x6e\x6b\145\x64\151\x6e\x2e\143\157\x6d\x2f\x6f\141\165\164\x68\57\166\62\57\141\165\164\x68\157\x72\x69\x7a\141\164\151\157\x6e\x3f\x72\x65\x73\160\157\x6e\x73\145\137\x74\171\x70\145\x3d\143\157\x64\145\46\143\154\151\145\156\164\137\151\x64\x3d" . $Ct . "\46\x72\x65\x64\x69\x72\x65\x63\x74\137\x75\162\x69\x3d" . $HD . "\46\x73\x74\x61\x74\145\x3d\x66\x6f\x6f\157\142\x61\x72\x26\x73\x63\x6f\160\x65\x3d" . $xM;
header("\114\x6f\143\x61\164\151\x6f\x6e\x3a" . $wy);
exit;
}
function mo_openid_get_access_token()
{
$Mv = mo_openid_validate_code();
$HD = get_social_app_redirect_uri("\154\x69\156\x6b\145\144\x69\x6e\137\x6f\151\x64\x63");
$ZY = maybe_unserialize(get_option("\x6d\157\137\157\160\145\156\x69\144\137\x61\160\160\163\x5f\x6c\x69\163\x74"));
$Ct = $ZY["\x6c\151\x6e\x6b\x65\144\x69\x6e\137\x6f\151\x64\x63"]["\x63\154\x69\145\156\x74\x69\144"];
$ya = $ZY["\154\x69\x6e\153\145\x64\x69\156\137\x6f\x69\144\x63"]["\143\x6c\x69\x65\156\x74\163\x65\x63\162\145\164"];
$Cu = "\150\x74\x74\160\163\72\x2f\57\x77\167\x77\56\x6c\151\156\153\x65\144\x69\x6e\x2e\x63\157\x6d\57\157\x61\x75\164\150\x2f\166\62\57\x61\x63\143\x65\x73\163\x54\157\153\x65\x6e";
$Fp = "\x67\162\141\156\x74\137\164\171\160\145\75\141\165\x74\150\157\x72\x69\172\x61\164\x69\x6f\156\137\x63\157\144\145\46\143\x6f\144\x65\75" . $Mv . "\46\162\x65\144\151\162\145\143\x74\137\165\x72\x69\75" . $HD . "\x26\143\154\x69\x65\156\164\137\x69\144\x3d" . $Ct . "\46\143\x6c\151\145\156\x74\x5f\x73\x65\143\x72\x65\x74\x3d" . $ya;
$Bq = mo_openid_get_access_token($Fp, $Cu, "\x6c\x69\x6e\153\145\144\x69\x6e\x5f\157\x69\x64\x63");
$i3 = isset($Bq["\x61\x63\143\x65\x73\163\x5f\164\157\153\145\x6e"]) ? $Bq["\x61\x63\143\145\x73\163\x5f\x74\157\x6b\x65\156"] : '';
mo_openid_start_session();
$Hq = $Bq["\151\144\137\164\157\153\145\156"];
$Hq = explode("\56", $Hq);
$Hq = base64_decode(str_pad(strtr($Hq[1], "\x2d\137", "\53\x2f"), strlen($s0) % 4, "\x3d", STR_PAD_RIGHT));
$N1 = json_decode($Hq, true);
if (!(is_user_logged_in() && get_option("\x6d\x6f\137\x6f\x70\x65\156\151\144\x5f\164\x65\163\164\x5f\143\x6f\x6e\146\x69\x67\x75\x72\x61\164\x69\157\x6e") == 1)) {
goto JoB;
}
mo_openid_app_test_config($N1);
JoB:
$Di = $tf = $nh = $Yp = $N7 = $Rd = $YC = $H5 = '';
$DF = $wW = $XY = $aL = $eP = $xy = $xo = '';
$Yp = isset($N1["\x65\x6d\141\x69\x6c"]) ? $N1["\145\155\141\x69\154"] : '';
$tf = isset($N1["\x67\x69\166\x65\x6e\137\156\141\x6d\x65"]) ? $N1["\147\151\x76\145\x6e\137\156\x61\155\145"] : '';
$Di = isset($N1["\x6e\x61\x6d\x65"]) ? $N1["\156\x61\x6d\145"] : '';
$nh = isset($N1["\146\x61\x6d\151\154\x79\x5f\x6e\x61\155\x65"]) ? $N1["\146\141\x6d\x69\154\x79\x5f\156\x61\x6d\145"] : '';
$YC = isset($N1["\160\x69\x63\x74\x75\x72\145"]) ? $N1["\x70\x69\143\x74\x75\x72\145"] : '';
$H5 = isset($N1["\x69\x64"]) ? $N1["\151\x64"] : '';
$K4 = array("\146\151\x72\x73\164\x5f\x6e\141\x6d\x65" => $tf, "\154\141\163\x74\x5f\x6e\x61\155\145" => $nh, "\x65\155\141\151\154" => $Yp, "\x75\163\145\162\x5f\x6e\x61\155\145" => $Di, "\165\163\x65\162\x5f\165\162\154" => $Rd, "\165\x73\145\x72\137\x70\151\x63\x74\165\x72\x65" => $YC, "\x73\x6f\x63\x69\141\x6c\137\x75\163\x65\x72\x5f\151\x64" => $H5, "\154\157\x63\x61\x74\151\157\x6e\137\x63\151\x74\x79" => $DF, "\154\x6f\x63\141\x74\151\x6f\156\x5f\x63\x6f\x75\156\164\162\x79" => $wW, "\x61\x62\157\165\x74\x5f\x6d\145" => $XY, "\x63\x6f\155\x70\x61\156\171\x5f\x6e\141\x6d\x65" => $aL, "\x66\x72\x69\145\x6e\x64\137\x6e\157\163" => $xo, "\x67\145\x6e\x64\x65\162" => $xy, "\x61\147\x65" => $eP);
return $K4;
}
}
Function Calls
None |
Stats
MD5 | 44a59c65bf4745ed260a8557bf98950b |
Eval Count | 0 |
Decode Time | 32 ms |