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 use Backend\Facades\BackendAuth; use Illuminate\Support\Facades\Log; use Mini..
Decoded Output download
<?php
use Backend\Facades\BackendAuth;
use Illuminate\Support\Facades\Log;
use Miniorange\Samlsp\Models\SAMLsettings;
use Illuminate\Support\Facades\DB as Db;
if (!(strpos($_SERVER["REQUEST_URI"], "/scim") !== false)) {
goto GP;
}
$G8 = SAMLsettings::find(1);
$X9 = $G8->getScimBearerTokenAttribute();
if (!($X9 !== miniorangeScimGetBearerToken())) {
goto jt;
}
exit;
jt:
$post = file_get_contents("php://input");
$f9 = json_decode(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . "moSamlConfig.json"));
$eY = json_decode($post, true);
Log::info("input received : " . $post);
$Km = '';
$dJ = '';
$mR = false;
if (!(strpos($_SERVER["REQUEST_URI"], "/scim/Users") !== false || strpos($_SERVER["REQUEST_URI"], "/scim/v2/Users") !== false)) {
goto sy;
}
$mR = true;
sy:
if (!(strpos($_SERVER["REQUEST_URI"], "/scim/Users/") !== false || strpos($_SERVER["REQUEST_URI"], "/scim/v2/Users/") !== false)) {
goto FR;
}
$Km = substr($_SERVER["REQUEST_URI"], strpos($_SERVER["REQUEST_URI"], "Users/") + 6);
FR:
if (!$mR) {
goto z_;
}
mo_scim_handle_user_request($eY, $Km, $f9);
z_:
header("HTTP/1.1 200 OK");
header("Content-Type: application/json;charset=utf-8");
echo "{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
\xa "totalResults": 0,\xd\xa "startIndex": 1,\xd\xa "itemsPerPage": 0,
\xa "Resources": []
\xa }";
exit;
GP:
function mo_scim_handle_user_request($eY, $RF, $f9)
{
if (empty($eY)) {
goto hC;
}
array_key_exists("userName", $eY) ? $hg = $eY["userName"] : ($hg = '');
array_key_exists("name", $eY) ? $hw = $eY["name"]["givenName"] : ($hw = '');
array_key_exists("name", $eY) ? $dc = $eY["name"]["familyName"] : ($dc = '');
array_key_exists("emails", $eY) ? $CP = $eY["emails"][0]["value"] : ($CP = '');
array_key_exists("Role", $eY) ? $mG = $eY["Role"] : ($mG = '');
array_key_exists($f9->okta_country_attr, $eY) ? $D_ = $eY["Country"]["Country"] : ($D_ = null);
array_key_exists("urn:ietf:params:scim:schemas:extension:enterprise:2.0:User", $eY) && isset($eY["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"]["employeeNumber"]) ? $EC = $eY["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"]["employeeNumber"] : ($EC = '');
array_key_exists("urn:ietf:params:scim:schemas:extension:enterprise:2.0:User", $eY) && isset($eY["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"]["division"]) ? $ub = $eY["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"]["division"] : ($ub = '');
array_key_exists("urn:ietf:params:scim:schemas:extension:enterprise:2.0:User", $eY) && isset($eY["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"]["department"]) ? $mQ = $eY["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"]["department"] : ($mQ = '');
$user = BackendAuth::findUserByLogin($CP);
if (!($user === null && $RF !== '')) {
goto Z8;
}
$user = BackendAuth::findUserById($RF);
Z8:
hC:
if (strpos($_SERVER["REQUEST_METHOD"], "PUT") !== false || strpos($_SERVER["REQUEST_METHOD"], "PATCH") !== false and !empty($RF)) {
goto un;
}
if (strpos($_SERVER["REQUEST_METHOD"], "POST") !== false) {
goto iY;
}
if (strpos($_SERVER["REQUEST_METHOD"], "DELETE") !== false) {
goto J9;
}
if (strpos($_SERVER["REQUEST_METHOD"], "GET") !== false) {
goto Fd;
}
goto g3;
un:
if (isset($eY["active"]) && !empty($eY["active"])) {
goto uE;
}
if (isset($eY["Operations"][0]["path"])) {
goto MM;
}
if (isset($eY["Operations"][0]["value"]["active"])) {
goto XJ;
}
$Nc = "update";
goto Z1;
uE:
$Nc = $eY["active"];
goto Z1;
MM:
if (!($eY["Operations"][0]["path"] == "active")) {
goto U3;
}
$Nc = $eY["Operations"][0]["value"];
U3:
goto Z1;
XJ:
$Nc = $eY["Operations"][0]["value"]["active"];
Z1:
if (!($Nc !== false && $Nc !== "False")) {
goto SF;
}
if ($user !== null) {
goto wU;
}
Log::info("user object is NULL, creating user");
$Nf = str_random(8);
if (!(isset($eY["password"]) and !empty($eY["password"]))) {
goto uJ;
}
$YQ = $eY["password"];
uJ:
if (empty($YQ)) {
goto dP;
}
$Nf = $YQ;
dP:
$user = miniorange_scim_create_user_in_october($RF, $CP, $hw, $Nf, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
goto zQ;
wU:
Log::info("-------------In the PUT / PATCH method-----------------");
miniorange_scim_update_user_octobercms($user->id, $CP, $hw, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
zQ:
SF:
if (!empty($user) && ($Nc == false || $Nc == "False")) {
goto F9;
}
send_user_details($user, true, $f9);
goto Fv;
F9:
send_user_details($user, false, $f9);
Fv:
goto g3;
iY:
Log::info("---------------In the POST method------------------");
if ($user !== null) {
goto ky;
}
Log::info("user object is NULL, creating user");
$Nf = str_random(8);
if (!(isset($eY["password"]) and !empty($eY["password"]))) {
goto NL;
}
$YQ = $eY["password"];
NL:
if (empty($YQ)) {
goto Ot;
}
$Nf = $YQ;
Ot:
$user = miniorange_scim_create_user_in_october($RF, $CP, $hw, $Nf, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
$lj = BackendAuth::findUserByLogin($hg);
$eY["id"] = $lj->id;
$eY["meta"] = array("resourceType" => "User");
$eY = json_encode($eY);
header("HTTP/1.1 201 Created");
header("Content-Type: application/json;charset=utf-8");
echo $eY;
log::info("Output user created: " . $eY);
Log::info("--------------------------------------------------------");
exit;
goto kr;
ky:
Log::info("user object is not NULL, updating user");
miniorange_scim_update_user_octobercms($user->id, $CP, $hw, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
$eY["id"] = $user->id;
$eY["meta"] = array("resourceType" => "User");
$eY = json_encode($eY);
header("HTTP/1.1 201 Created");
header("Content-Type: application/json;charset=utf-8");
echo $eY;
log::info("Output user updated: " . $eY);
Log::info("--------------------------------------------------------");
exit;
kr:
goto g3;
J9:
Log::info("---------------In the DELETE method------------------");
$wr = Db::table("backend_user_groups")->where("name", $f9->octobercms_delete_group_name)->first()->id;
$fR = Db::table("backend_users_groups")->where("user_id", $user->id)->lists("user_group_id");
if (in_array($wr, $fR)) {
goto mo;
}
Db::table("backend_users_groups")->insert(["user_id" => $user->id, "user_group_id" => $wr]);
mo:
goto g3;
Fd:
if (empty($RF) && strpos($_SERVER["REQUEST_URI"], "filter=userName") !== false) {
goto WX;
}
Log::info("---------------In the GET method (User profile is updated) ------------------");
send_user_get_response($RF);
goto ru;
WX:
Log::info("---------------In the GET method ( User assigned to SCIM APP )------------------");
$O7 = strpos($_SERVER["REQUEST_URI"], "%22") + 3;
$Df = strpos($_SERVER["REQUEST_URI"], "%22", $O7 + strlen("%22"));
Log::info("start : " . $O7);
Log::info("length : " . $Df);
Log::info("request : " . $_SERVER["REQUEST_URI"]);
$hg = substr($_SERVER["REQUEST_URI"], $O7, $Df - $O7);
$hg = str_replace("%40", "@", $hg);
send_user_filter_response($hg);
ru:
g3:
}
function miniorange_scim_create_user_in_october($vT, $CP, $hw, $cF, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9)
{
$user = BackendAuth::register(["first_name" => $hw, "last_name" => $dc, "login" => $hg, "email" => $CP, "password" => $cF, "password_confirmation" => $cF], true);
//Log::info("country of the okta user: " . print_r($f9->okta_country_mapping->{$D_}, true));
if (!(!is_null($D_) && "global" !== $D_)) {
goto o9;
}
if (!isset($mG["Role"])) {
goto uB;
}
$oh = \Backend\Models\UserRole::where("code", $mG["Role"])->first();
Log::info("user after assigning role" . print_r($user, true));
$user->role = $oh;
$user->save();
uB:
Db::table("backend_users")->where("id", $user->id)->update([$f9->octobercms_country_col => $f9->okta_country_mapping->{$D_}]);
Log::info("user after assigning role" . print_r($user, true));
o9:
return $user;
}
function miniorange_scim_update_user_octobercms($vT, $CP, $hw, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9)
{
if (!is_null($D_) && "global" !== $D_) {
goto Xm;
}
Db::table("backend_users")->where("id", $vT)->update(["first_name" => $hw, "last_name" => $dc, "login" => $hg, "email" => $CP]);
goto eX;
Xm:
Db::table("backend_users")->where("id", $vT)->update(["first_name" => $hw, "last_name" => $dc, "login" => $hg, "email" => $CP, $f9->octobercms_country_col => $f9->okta_country_mapping->{$D_}]);
if (!isset($mG[0])) {
goto Id;
}
$user = BackendAuth::findUserById($vT);
$oh = \Backend\Models\UserRole::where("code", $mG[0])->first();
Log::info("user after assigning role" . print_r($user, true));
$user->role = $oh;
$user->save();
Id:
eX:
}
function send_user_get_response($vT)
{
$user = BackendAuth::findUserById($vT);
if ($user !== null) {
goto eo;
}
$F9 = "{\xd\xa "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],\xd\xa "totalResults": 0,
\xa "Resources": [],\xd
"startIndex": 1,
"itemsPerPage": 20\xd
}";
goto bR;
eo:
$F9 = "{
"schemas": ["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],\xd
"id": "" . $vT . "", \xd
"userName": "" . $user->username . "",
"externalId": "" . $user->id . "",\xd
"name": {\xd
"familyName": "" . $user->name . "",
\xa "givenName": "" . $user->surname . ""
\xa },
"emails": [{\xd\xa "primary": true,\xd
"value": "" . $user->email . ""
\xa }],\xd
"meta": {\xd\xa "created": "" . $user->created_at . "",\xd\xa "lastModified": "" . $user->modified_at . "" \xd
}
\xa }";
bR:
Log::info("In send_user_get_response function");
Log::info("Output JSON : " . $F9);
header("HTTP/1.1 200 OK");
header("Content-Type: application/json;charset=utf-8");
echo $F9;
exit;
}
function send_user_filter_response($hg)
{
$user = BackendAuth::findUserByLogin($hg);
if ($user !== null) {
goto Uw;
}
$F9 = "{\xd\xa "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 0,\xd
"Resources": [],
"startIndex": 1,
"itemsPerPage": 20\xd\xa }";
header("HTTP/1.1 200 OK");
header("Content-Type: application/json;charset=utf-8");
Log::info("In send_user_filter_response function");
Log::info("Output JSON : " . $F9);
echo $F9;
exit;
goto He;
Uw:
$F9 = "{\xd\xa "schemas": ["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],\xd
"id": "" . $user->id . "",\xd
"userName": "" . $user->username . "",
"externalId": "" . $user->id . "",
\xa "name": {\xd
"familyName": "" . $user->name . "",
\xa "givenName": "" . $user->surname . ""\xd
},\xd\xa "emails": [{
\xa "primary": true,\xd
"value": "" . $user->email . ""
}],
\xa "meta": {
"created": "" . $user->created_at . "",\xd\xa "lastModified": "" . $user->modified_at . "" \xd
}
}";
header("HTTP/1.1 200 OK");
header("Content-Type: application/json;charset=utf-8");
Log::info("In send_user_filter_response function");
Log::info("Output JSON : " . $F9);
echo $F9;
exit;
He:
}
function send_user_details($user, $Nc, $f9)
{
Log::info("user active status: " . $Nc);
$eY = "{
"schemas": ["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],\xd
"id": "" . $user->id . "",
"userName": "" . $user->username . "",\xd\xa "active": " . $Nc . ",\xd\xa "emails": [{
\xa "primary": true,
"value": "" . $user->email . "",
\xa "type": "work"
\xa }],
"groups": [],
\xa "meta": {
\xa "resourceType": "User"\xd
}
\xa }";
if (!($Nc == false)) {
goto yI;
}
log::info("-------------------User added to disabled group");
$wr = Db::table("backend_user_groups")->where("name", $f9->octobercms_delete_group_name)->first()->id;
$fR = Db::table("backend_users_groups")->where("user_id", $user->id)->lists("user_group_id");
if (in_array($wr, $fR)) {
goto jh;
}
Db::table("backend_users_groups")->insert(["user_id" => $user->id, "user_group_id" => $wr]);
jh:
yI:
header("HTTP/1.1 200 OK");
header("Content-Type: application/json;charset=utf-8");
Log::info("In send_user_details function");
Log::info("OUTPUT JSON - send user details : " . $eY);
echo $eY;
Log::info("--------------------------------------------------------");
exit;
}
function miniorangeScimGetAuthorizationHeader()
{
$rG = null;
if (isset($_SERVER["Authorization"])) {
goto m9;
}
if (isset($_SERVER["HTTP_AUTHORIZATION"])) {
goto Jq;
}
if (function_exists("apache_request_headers")) {
goto Ga;
}
goto qE;
Jq:
$rG = trim($_SERVER["HTTP_AUTHORIZATION"]);
goto qE;
Ga:
$NO = apache_request_headers();
$NO = array_combine(array_map("ucwords", array_keys($NO)), array_values($NO));
if (!isset($NO["Authorization"])) {
goto wz;
}
$rG = trim($NO["Authorization"]);
wz:
qE:
goto Le;
m9:
$rG = trim($_SERVER["Authorization"]);
Le:
return $rG;
}
function miniorangeScimGetBearerToken()
{
$rG = miniorangeScimGetAuthorizationHeader();
if (empty($rG)) {
goto ec;
}
if (!preg_match("/Bearer\s(\S+)/", $rG, $G4)) {
goto Pj;
}
return $G4[1];
Pj:
ec:
return null;
}
?>
Did this file decode correctly?
Original Code
<?php
use Backend\Facades\BackendAuth;
use Illuminate\Support\Facades\Log;
use Miniorange\Samlsp\Models\SAMLsettings;
use Illuminate\Support\Facades\DB as Db;
if (!(strpos($_SERVER["\x52\105\121\x55\x45\x53\124\x5f\125\x52\x49"], "\57\163\143\x69\155") !== false)) {
goto GP;
}
$G8 = SAMLsettings::find(1);
$X9 = $G8->getScimBearerTokenAttribute();
if (!($X9 !== miniorangeScimGetBearerToken())) {
goto jt;
}
exit;
jt:
$post = file_get_contents("\160\150\x70\72\x2f\57\151\x6e\x70\165\x74");
$f9 = json_decode(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . "\155\157\123\141\155\x6c\103\157\156\x66\151\x67\56\x6a\163\x6f\x6e"));
$eY = json_decode($post, true);
Log::info("\151\x6e\x70\x75\x74\x20\162\x65\143\145\x69\166\145\144\x20\x3a\40" . $post);
$Km = '';
$dJ = '';
$mR = false;
if (!(strpos($_SERVER["\x52\105\121\x55\105\x53\124\137\125\x52\x49"], "\x2f\163\x63\151\155\57\x55\163\x65\x72\163") !== false || strpos($_SERVER["\122\105\121\x55\105\123\x54\137\x55\x52\x49"], "\x2f\163\143\151\x6d\x2f\166\62\x2f\125\163\x65\x72\x73") !== false)) {
goto sy;
}
$mR = true;
sy:
if (!(strpos($_SERVER["\122\x45\x51\x55\x45\x53\124\x5f\125\x52\x49"], "\x2f\163\143\x69\x6d\x2f\x55\x73\145\162\x73\57") !== false || strpos($_SERVER["\x52\105\x51\x55\105\123\x54\x5f\x55\x52\111"], "\57\163\143\x69\x6d\57\x76\62\x2f\125\163\145\x72\x73\x2f") !== false)) {
goto FR;
}
$Km = substr($_SERVER["\x52\105\121\x55\105\x53\x54\137\125\122\111"], strpos($_SERVER["\122\105\121\x55\x45\x53\124\x5f\x55\x52\111"], "\125\x73\x65\162\x73\x2f") + 6);
FR:
if (!$mR) {
goto z_;
}
mo_scim_handle_user_request($eY, $Km, $f9);
z_:
header("\110\x54\124\120\x2f\61\x2e\61\40\x32\60\60\x20\x4f\x4b");
header("\103\157\156\x74\145\156\164\x2d\124\171\160\145\x3a\x20\x61\160\160\154\x69\x63\x61\164\151\x6f\156\x2f\152\x73\157\x6e\73\x63\x68\141\x72\x73\145\164\75\x75\x74\146\x2d\x38");
echo "\x7b\15\12\40\x20\40\40\40\40\40\40\x20\40\40\40\x20\42\x73\x63\x68\x65\x6d\x61\x73\x22\72\x20\x5b\42\165\162\156\x3a\x69\145\x74\x66\x3a\x70\141\162\x61\155\163\72\x73\143\151\x6d\72\x61\160\x69\x3a\x6d\x65\x73\x73\141\x67\x65\x73\72\x32\x2e\x30\x3a\x4c\x69\x73\164\122\x65\163\160\157\x6e\x73\x65\x22\135\x2c\15\xa\40\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\x22\164\x6f\x74\141\154\x52\145\163\x75\154\164\x73\x22\72\40\x30\x2c\xd\xa\40\x20\40\x20\40\40\40\40\x20\40\40\x20\x22\x73\164\x61\162\x74\111\x6e\144\x65\170\x22\72\x20\x31\54\xd\xa\x20\x20\40\x20\x20\x20\40\40\40\x20\40\40\x22\151\x74\145\155\163\x50\x65\x72\x50\x61\147\145\42\x3a\x20\x30\54\15\xa\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\42\122\145\163\157\x75\162\x63\145\x73\42\72\x20\133\135\15\xa\40\40\x20\x20\40\40\x20\40\x7d";
exit;
GP:
function mo_scim_handle_user_request($eY, $RF, $f9)
{
if (empty($eY)) {
goto hC;
}
array_key_exists("\165\163\x65\x72\116\x61\x6d\145", $eY) ? $hg = $eY["\165\163\145\x72\116\x61\155\145"] : ($hg = '');
array_key_exists("\156\x61\x6d\x65", $eY) ? $hw = $eY["\156\x61\155\x65"]["\x67\151\166\145\156\116\x61\x6d\x65"] : ($hw = '');
array_key_exists("\x6e\141\x6d\145", $eY) ? $dc = $eY["\x6e\x61\155\x65"]["\146\x61\x6d\151\x6c\x79\x4e\x61\155\145"] : ($dc = '');
array_key_exists("\x65\x6d\x61\151\x6c\x73", $eY) ? $CP = $eY["\x65\x6d\x61\x69\x6c\x73"][0]["\166\141\154\x75\x65"] : ($CP = '');
array_key_exists("\x52\x6f\x6c\145", $eY) ? $mG = $eY["\122\157\154\145"] : ($mG = '');
array_key_exists($f9->okta_country_attr, $eY) ? $D_ = $eY["\103\x6f\165\156\164\x72\x79"]["\103\157\x75\x6e\164\x72\x79"] : ($D_ = null);
array_key_exists("\x75\162\x6e\72\x69\145\164\146\72\160\x61\162\141\x6d\163\x3a\x73\x63\151\x6d\72\x73\143\150\145\155\141\x73\x3a\x65\170\x74\x65\x6e\163\151\x6f\156\x3a\x65\x6e\x74\145\162\160\x72\x69\163\x65\x3a\x32\x2e\60\72\125\x73\x65\162", $eY) && isset($eY["\x75\162\x6e\72\151\x65\164\x66\72\x70\141\162\x61\x6d\x73\72\163\143\x69\155\72\163\143\150\145\x6d\x61\163\x3a\x65\x78\164\145\156\163\151\x6f\156\x3a\x65\x6e\x74\x65\x72\x70\x72\x69\163\145\72\62\x2e\x30\x3a\125\x73\145\x72"]["\145\x6d\160\154\157\x79\145\145\x4e\x75\x6d\x62\145\x72"]) ? $EC = $eY["\165\162\x6e\72\151\x65\164\146\72\160\x61\162\x61\x6d\x73\72\163\x63\x69\155\72\x73\143\150\145\155\141\163\72\145\x78\164\x65\156\163\151\157\156\72\145\x6e\164\x65\x72\160\162\151\x73\145\x3a\62\56\x30\x3a\125\163\145\x72"]["\145\x6d\160\x6c\157\171\x65\145\116\165\x6d\142\145\162"] : ($EC = '');
array_key_exists("\x75\x72\x6e\x3a\151\145\x74\x66\72\160\x61\x72\141\155\x73\72\163\x63\151\155\72\x73\x63\150\x65\155\141\163\72\145\170\164\145\x6e\163\151\157\x6e\x3a\x65\x6e\164\x65\x72\160\162\x69\x73\x65\72\62\56\x30\72\x55\x73\x65\x72", $eY) && isset($eY["\x75\x72\x6e\72\151\145\164\x66\x3a\160\141\162\141\155\x73\72\163\x63\151\x6d\x3a\163\143\150\x65\155\x61\x73\72\145\x78\164\x65\156\x73\x69\x6f\156\72\145\x6e\x74\x65\162\x70\x72\151\x73\x65\x3a\x32\56\60\x3a\125\163\145\x72"]["\144\151\166\151\163\x69\x6f\x6e"]) ? $ub = $eY["\x75\162\x6e\x3a\151\x65\x74\x66\x3a\x70\x61\x72\x61\155\163\72\163\143\x69\155\72\x73\143\x68\x65\x6d\141\163\72\145\x78\x74\145\x6e\163\x69\157\156\x3a\x65\x6e\x74\145\x72\x70\x72\151\163\145\x3a\x32\56\x30\x3a\x55\x73\145\x72"]["\x64\151\x76\x69\163\x69\157\x6e"] : ($ub = '');
array_key_exists("\x75\162\x6e\x3a\x69\145\x74\x66\72\x70\x61\162\141\155\163\72\163\143\151\x6d\72\163\x63\150\x65\155\141\x73\x3a\145\170\164\x65\156\x73\151\x6f\156\x3a\x65\x6e\164\x65\162\160\162\x69\x73\145\x3a\62\56\60\x3a\125\163\145\162", $eY) && isset($eY["\x75\x72\156\72\x69\145\164\146\72\x70\141\162\x61\x6d\163\72\x73\143\151\155\x3a\x73\143\x68\145\155\x61\163\x3a\x65\x78\164\145\x6e\x73\151\x6f\156\72\145\x6e\x74\145\x72\x70\x72\151\x73\145\72\62\56\60\72\x55\x73\145\162"]["\144\x65\x70\141\x72\x74\x6d\145\156\164"]) ? $mQ = $eY["\165\x72\x6e\72\151\x65\x74\146\72\160\x61\x72\x61\155\163\72\163\143\151\155\x3a\163\143\x68\x65\x6d\141\x73\x3a\x65\170\164\x65\156\163\x69\157\x6e\x3a\145\x6e\x74\145\162\x70\x72\x69\163\x65\72\62\x2e\60\72\125\163\145\x72"]["\x64\x65\x70\x61\x72\x74\155\x65\156\164"] : ($mQ = '');
$user = BackendAuth::findUserByLogin($CP);
if (!($user === null && $RF !== '')) {
goto Z8;
}
$user = BackendAuth::findUserById($RF);
Z8:
hC:
if (strpos($_SERVER["\x52\x45\x51\x55\105\x53\124\137\x4d\x45\124\110\x4f\104"], "\x50\x55\124") !== false || strpos($_SERVER["\122\105\121\125\x45\123\124\x5f\115\105\124\x48\117\x44"], "\120\101\124\103\x48") !== false and !empty($RF)) {
goto un;
}
if (strpos($_SERVER["\122\x45\121\125\x45\123\x54\x5f\x4d\105\x54\110\x4f\x44"], "\x50\117\123\x54") !== false) {
goto iY;
}
if (strpos($_SERVER["\122\105\x51\125\105\123\x54\x5f\x4d\x45\124\x48\x4f\x44"], "\x44\105\x4c\105\x54\105") !== false) {
goto J9;
}
if (strpos($_SERVER["\122\x45\121\x55\105\x53\124\x5f\x4d\105\x54\x48\x4f\x44"], "\107\105\x54") !== false) {
goto Fd;
}
goto g3;
un:
if (isset($eY["\x61\x63\164\151\166\x65"]) && !empty($eY["\141\x63\164\x69\166\145"])) {
goto uE;
}
if (isset($eY["\117\160\145\x72\x61\x74\x69\157\156\x73"][0]["\160\141\164\x68"])) {
goto MM;
}
if (isset($eY["\x4f\x70\145\162\141\164\151\x6f\156\x73"][0]["\x76\141\154\165\145"]["\x61\143\x74\x69\166\145"])) {
goto XJ;
}
$Nc = "\x75\160\144\141\164\x65";
goto Z1;
uE:
$Nc = $eY["\x61\143\164\x69\166\x65"];
goto Z1;
MM:
if (!($eY["\117\160\145\162\x61\164\151\157\x6e\163"][0]["\160\x61\x74\x68"] == "\x61\x63\164\x69\x76\x65")) {
goto U3;
}
$Nc = $eY["\x4f\160\145\x72\x61\x74\151\157\x6e\x73"][0]["\166\x61\x6c\x75\145"];
U3:
goto Z1;
XJ:
$Nc = $eY["\117\160\145\x72\x61\x74\151\x6f\x6e\163"][0]["\x76\x61\154\165\x65"]["\141\143\164\151\166\x65"];
Z1:
if (!($Nc !== false && $Nc !== "\x46\x61\154\163\145")) {
goto SF;
}
if ($user !== null) {
goto wU;
}
Log::info("\165\x73\145\x72\x20\x6f\x62\x6a\145\143\164\40\x69\163\40\116\125\114\114\54\x20\x63\162\x65\x61\x74\x69\x6e\x67\40\165\x73\x65\162");
$Nf = str_random(8);
if (!(isset($eY["\x70\x61\163\x73\x77\x6f\162\x64"]) and !empty($eY["\160\141\163\x73\167\157\162\144"]))) {
goto uJ;
}
$YQ = $eY["\x70\x61\x73\x73\167\x6f\x72\144"];
uJ:
if (empty($YQ)) {
goto dP;
}
$Nf = $YQ;
dP:
$user = miniorange_scim_create_user_in_october($RF, $CP, $hw, $Nf, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
goto zQ;
wU:
Log::info("\x2d\x2d\55\x2d\55\55\x2d\x2d\x2d\55\55\55\55\111\x6e\x20\x74\x68\145\40\120\125\x54\x20\57\x20\120\x41\124\103\x48\x20\155\145\164\150\157\x64\55\x2d\55\x2d\x2d\x2d\x2d\55\55\55\55\x2d\x2d\55\x2d\x2d\55");
miniorange_scim_update_user_octobercms($user->id, $CP, $hw, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
zQ:
SF:
if (!empty($user) && ($Nc == false || $Nc == "\x46\x61\154\163\145")) {
goto F9;
}
send_user_details($user, true, $f9);
goto Fv;
F9:
send_user_details($user, false, $f9);
Fv:
goto g3;
iY:
Log::info("\x2d\55\55\55\x2d\55\55\x2d\55\x2d\55\55\55\55\55\x49\x6e\40\164\x68\x65\40\x50\x4f\123\124\x20\x6d\145\x74\x68\x6f\144\x2d\x2d\55\55\55\x2d\55\x2d\55\55\x2d\x2d\x2d\55\55\x2d\x2d\55");
if ($user !== null) {
goto ky;
}
Log::info("\165\x73\145\162\40\157\142\x6a\145\143\164\40\x69\x73\x20\x4e\x55\114\x4c\54\x20\x63\162\145\141\x74\x69\x6e\147\40\x75\163\x65\x72");
$Nf = str_random(8);
if (!(isset($eY["\x70\141\x73\x73\x77\157\162\144"]) and !empty($eY["\160\x61\163\x73\167\x6f\x72\144"]))) {
goto NL;
}
$YQ = $eY["\160\141\x73\163\x77\157\162\144"];
NL:
if (empty($YQ)) {
goto Ot;
}
$Nf = $YQ;
Ot:
$user = miniorange_scim_create_user_in_october($RF, $CP, $hw, $Nf, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
$lj = BackendAuth::findUserByLogin($hg);
$eY["\x69\x64"] = $lj->id;
$eY["\x6d\x65\164\x61"] = array("\x72\145\x73\x6f\165\162\x63\145\x54\x79\x70\x65" => "\125\x73\x65\x72");
$eY = json_encode($eY);
header("\x48\124\124\x50\x2f\x31\56\x31\x20\62\x30\x31\x20\x43\162\x65\x61\x74\x65\144");
header("\103\x6f\x6e\164\x65\x6e\x74\x2d\x54\171\x70\x65\72\40\x61\x70\160\154\x69\143\x61\x74\151\157\156\57\x6a\x73\157\x6e\x3b\x63\150\x61\162\163\145\164\75\x75\x74\146\x2d\70");
echo $eY;
log::info("\x4f\x75\x74\160\165\164\x20\x75\163\145\x72\x20\143\x72\145\x61\x74\145\144\x3a\40" . $eY);
Log::info("\x2d\x2d\55\55\x2d\x2d\55\x2d\55\x2d\55\55\55\55\x2d\x2d\x2d\x2d\55\55\55\55\55\x2d\55\x2d\55\55\55\55\55\55\x2d\55\x2d\x2d\55\x2d\55\x2d\x2d\x2d\55\55\x2d\55\x2d\x2d\x2d\x2d\55\55\x2d\x2d\55\x2d");
exit;
goto kr;
ky:
Log::info("\165\x73\145\x72\x20\157\142\152\x65\x63\x74\x20\x69\x73\x20\x6e\x6f\x74\x20\116\125\114\114\54\x20\x75\x70\x64\x61\164\151\x6e\147\x20\x75\163\x65\162");
miniorange_scim_update_user_octobercms($user->id, $CP, $hw, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9);
$eY["\x69\x64"] = $user->id;
$eY["\155\145\164\141"] = array("\162\x65\x73\x6f\165\162\x63\145\124\171\160\x65" => "\125\x73\x65\x72");
$eY = json_encode($eY);
header("\110\x54\124\120\57\61\56\61\40\62\x30\x31\x20\x43\162\145\141\x74\145\144");
header("\x43\157\156\x74\x65\x6e\164\x2d\x54\171\160\145\x3a\x20\141\160\160\x6c\151\143\x61\164\151\x6f\x6e\57\152\x73\x6f\156\x3b\x63\x68\141\162\163\x65\x74\x3d\x75\164\x66\x2d\x38");
echo $eY;
log::info("\x4f\x75\x74\x70\x75\x74\x20\165\x73\x65\162\x20\165\x70\x64\141\164\x65\144\x3a\40" . $eY);
Log::info("\55\x2d\x2d\55\x2d\55\x2d\55\x2d\55\55\55\55\x2d\x2d\x2d\x2d\55\x2d\55\x2d\55\55\x2d\55\x2d\55\55\x2d\55\55\55\x2d\55\55\x2d\55\x2d\x2d\x2d\55\x2d\x2d\x2d\x2d\55\55\55\x2d\55\x2d\x2d\55\x2d\55\55");
exit;
kr:
goto g3;
J9:
Log::info("\55\x2d\x2d\55\x2d\55\55\55\x2d\55\x2d\x2d\x2d\x2d\x2d\111\x6e\40\164\150\145\x20\104\105\x4c\x45\124\105\x20\x6d\x65\x74\150\157\x64\x2d\x2d\x2d\55\x2d\x2d\x2d\55\x2d\x2d\55\55\55\55\55\55\55\55");
$wr = Db::table("\142\x61\143\x6b\145\156\x64\137\x75\x73\145\x72\137\x67\162\157\x75\160\163")->where("\156\141\x6d\x65", $f9->octobercms_delete_group_name)->first()->id;
$fR = Db::table("\x62\x61\x63\x6b\145\156\x64\137\165\163\x65\x72\x73\x5f\147\x72\x6f\165\x70\163")->where("\x75\x73\145\x72\x5f\151\x64", $user->id)->lists("\x75\163\145\x72\x5f\147\x72\157\165\x70\x5f\151\144");
if (in_array($wr, $fR)) {
goto mo;
}
Db::table("\142\x61\x63\153\x65\x6e\144\137\x75\x73\145\162\163\137\147\162\x6f\x75\x70\x73")->insert(["\x75\163\x65\x72\x5f\151\144" => $user->id, "\165\163\x65\162\x5f\147\162\x6f\165\160\137\151\x64" => $wr]);
mo:
goto g3;
Fd:
if (empty($RF) && strpos($_SERVER["\122\x45\x51\125\105\x53\124\137\125\122\111"], "\x66\x69\x6c\x74\145\x72\x3d\x75\x73\x65\x72\116\141\x6d\145") !== false) {
goto WX;
}
Log::info("\55\55\55\55\x2d\55\x2d\x2d\55\55\x2d\55\x2d\55\x2d\111\x6e\40\x74\x68\x65\40\x47\x45\124\x20\x6d\145\164\x68\x6f\x64\40\x28\x55\x73\x65\x72\40\160\162\157\x66\151\154\x65\x20\x69\x73\40\x75\x70\x64\141\x74\x65\x64\x29\x20\55\55\55\55\55\x2d\x2d\x2d\55\x2d\x2d\x2d\55\x2d\55\x2d\55\55");
send_user_get_response($RF);
goto ru;
WX:
Log::info("\55\55\55\x2d\x2d\x2d\x2d\55\x2d\55\x2d\55\55\x2d\55\x49\156\40\164\150\145\40\107\x45\124\40\155\x65\164\150\157\x64\x20\x28\x20\x55\x73\x65\162\x20\141\163\163\151\x67\x6e\x65\144\40\x74\157\40\x53\x43\111\x4d\40\x41\x50\x50\40\x29\55\55\x2d\x2d\55\55\55\x2d\55\x2d\x2d\55\55\x2d\55\55\x2d\55");
$O7 = strpos($_SERVER["\122\x45\x51\x55\x45\123\124\x5f\x55\x52\111"], "\45\x32\62") + 3;
$Df = strpos($_SERVER["\122\x45\x51\x55\105\x53\x54\x5f\125\x52\111"], "\x25\x32\x32", $O7 + strlen("\x25\x32\x32"));
Log::info("\x73\x74\141\162\164\40\x3a\x20" . $O7);
Log::info("\x6c\x65\156\147\164\150\x20\72\x20" . $Df);
Log::info("\x72\145\161\x75\x65\x73\x74\x20\x3a\x20" . $_SERVER["\x52\105\x51\x55\105\x53\x54\137\125\122\111"]);
$hg = substr($_SERVER["\122\105\121\125\x45\x53\124\137\x55\122\x49"], $O7, $Df - $O7);
$hg = str_replace("\45\x34\60", "\100", $hg);
send_user_filter_response($hg);
ru:
g3:
}
function miniorange_scim_create_user_in_october($vT, $CP, $hw, $cF, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9)
{
$user = BackendAuth::register(["\146\x69\162\163\164\137\156\x61\x6d\x65" => $hw, "\x6c\x61\163\164\137\x6e\x61\x6d\145" => $dc, "\154\x6f\x67\x69\x6e" => $hg, "\145\155\141\151\154" => $CP, "\x70\141\163\163\x77\x6f\162\144" => $cF, "\x70\141\x73\163\167\157\x72\144\137\143\x6f\x6e\146\151\x72\x6d\141\x74\x69\157\x6e" => $cF], true);
//Log::info("\143\x6f\165\156\164\x72\x79\40\157\146\40\x74\x68\145\x20\157\153\x74\141\x20\x75\x73\x65\162\72\x20" . print_r($f9->okta_country_mapping->{$D_}, true));
if (!(!is_null($D_) && "\147\154\157\142\x61\154" !== $D_)) {
goto o9;
}
if (!isset($mG["\122\157\154\x65"])) {
goto uB;
}
$oh = \Backend\Models\UserRole::where("\x63\x6f\x64\x65", $mG["\x52\157\x6c\x65"])->first();
Log::info("\x75\x73\x65\162\x20\141\146\164\145\x72\40\141\163\x73\x69\x67\156\x69\x6e\147\40\162\x6f\154\145" . print_r($user, true));
$user->role = $oh;
$user->save();
uB:
Db::table("\x62\141\x63\x6b\145\156\144\x5f\x75\163\145\x72\x73")->where("\x69\x64", $user->id)->update([$f9->octobercms_country_col => $f9->okta_country_mapping->{$D_}]);
Log::info("\165\x73\145\x72\40\x61\x66\164\145\162\40\141\163\163\151\147\156\x69\156\147\40\162\157\x6c\x65" . print_r($user, true));
o9:
return $user;
}
function miniorange_scim_update_user_octobercms($vT, $CP, $hw, $dc, $hg, $EC, $ub, $mQ, $mG, $D_, $f9)
{
if (!is_null($D_) && "\147\x6c\x6f\x62\x61\x6c" !== $D_) {
goto Xm;
}
Db::table("\142\x61\143\x6b\145\x6e\144\x5f\x75\163\145\162\x73")->where("\x69\x64", $vT)->update(["\x66\x69\x72\163\164\x5f\x6e\141\x6d\x65" => $hw, "\154\x61\x73\164\x5f\156\x61\x6d\x65" => $dc, "\154\x6f\147\x69\x6e" => $hg, "\145\155\x61\151\154" => $CP]);
goto eX;
Xm:
Db::table("\142\x61\x63\x6b\x65\156\144\137\165\163\x65\162\x73")->where("\x69\144", $vT)->update(["\146\151\x72\x73\x74\x5f\x6e\141\x6d\145" => $hw, "\154\x61\x73\164\x5f\x6e\x61\x6d\x65" => $dc, "\x6c\x6f\x67\x69\156" => $hg, "\x65\155\x61\151\x6c" => $CP, $f9->octobercms_country_col => $f9->okta_country_mapping->{$D_}]);
if (!isset($mG[0])) {
goto Id;
}
$user = BackendAuth::findUserById($vT);
$oh = \Backend\Models\UserRole::where("\143\x6f\x64\145", $mG[0])->first();
Log::info("\165\163\145\162\40\x61\x66\x74\x65\x72\40\141\163\x73\x69\147\x6e\151\x6e\x67\x20\162\157\154\x65" . print_r($user, true));
$user->role = $oh;
$user->save();
Id:
eX:
}
function send_user_get_response($vT)
{
$user = BackendAuth::findUserById($vT);
if ($user !== null) {
goto eo;
}
$F9 = "\173\xd\xa\x20\40\40\40\x20\x20\40\40\x20\40\x20\x20\42\x73\x63\150\x65\x6d\x61\163\x22\x3a\40\133\42\x75\x72\156\x3a\151\x65\164\x66\72\x70\141\x72\141\155\163\x3a\x73\x63\151\155\72\141\x70\x69\x3a\x6d\x65\163\163\141\x67\145\163\x3a\x32\x2e\60\x3a\114\x69\163\164\x52\x65\x73\x70\157\156\x73\145\x22\x5d\x2c\xd\xa\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\x22\164\157\164\x61\x6c\x52\145\x73\165\154\164\163\x22\72\x20\60\x2c\15\xa\x20\40\x20\x20\40\x20\40\40\40\x20\x20\x20\x22\122\x65\163\x6f\x75\162\143\145\x73\x22\x3a\x20\x5b\135\54\xd\12\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\40\42\163\x74\x61\x72\164\111\156\144\x65\x78\42\x3a\x20\x31\54\15\12\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\42\x69\x74\x65\x6d\x73\x50\145\162\120\x61\x67\145\42\72\40\x32\60\xd\12\x20\x20\40\40\x20\40\40\40\175";
goto bR;
eo:
$F9 = "\173\15\12\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\x22\163\143\x68\145\x6d\141\x73\42\x3a\40\x5b\42\165\x72\156\72\x69\145\x74\x66\72\160\141\x72\141\x6d\x73\x3a\163\143\151\155\x3a\x73\143\x68\x65\x6d\x61\x73\72\x65\170\164\x65\x6e\163\151\x6f\x6e\72\x65\x6e\164\x65\x72\x70\x72\x69\x73\145\x3a\x32\56\60\x3a\125\x73\x65\x72\42\135\x2c\xd\12\40\x20\x20\x20\x20\x20\40\40\40\x20\40\40\x22\151\144\x22\72\40\42" . $vT . "\42\54\40\40\40\40\x20\40\x20\x20\40\40\40\xd\12\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\x22\x75\163\145\x72\x4e\141\x6d\x65\x22\72\40\42" . $user->username . "\42\54\15\12\40\40\40\x20\x20\40\40\40\40\40\x20\x20\42\145\x78\x74\145\162\x6e\x61\x6c\111\144\42\72\x20\42" . $user->id . "\42\x2c\xd\12\40\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x22\x6e\x61\x6d\145\x22\72\40\173\xd\12\40\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\x20\40\x22\x66\141\155\x69\x6c\x79\116\141\x6d\145\x22\72\x20\42" . $user->name . "\x22\54\15\xa\40\40\40\40\40\40\40\40\x20\x20\40\40\40\40\40\x20\x22\x67\151\166\x65\156\116\x61\155\x65\42\x3a\x20\x22" . $user->surname . "\42\15\xa\40\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\175\x2c\15\12\x20\40\x20\40\x20\40\40\40\40\x20\40\40\42\145\155\141\151\x6c\163\x22\72\40\x5b\x7b\xd\xa\x20\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\40\40\40\42\x70\x72\x69\155\141\x72\x79\x22\72\40\x74\x72\165\145\x2c\xd\12\40\40\x20\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\40\42\166\141\x6c\x75\x65\42\x3a\40\42" . $user->email . "\42\15\xa\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\175\135\x2c\xd\12\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\42\155\x65\164\141\42\x3a\x20\173\xd\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\40\x20\42\143\x72\145\141\x74\145\144\x22\x3a\40\x22" . $user->created_at . "\42\54\xd\xa\x20\x20\x20\40\x20\40\40\40\40\x20\x20\40\x20\x20\x20\40\42\x6c\x61\163\x74\x4d\157\144\151\x66\x69\145\x64\x22\72\40\x22" . $user->modified_at . "\42\40\x20\x20\xd\12\x20\x20\x20\40\40\x20\40\40\40\40\x20\x20\x7d\15\xa\x20\40\x20\40\x20\x20\40\x20\x7d";
bR:
Log::info("\111\x6e\40\x73\x65\x6e\144\x5f\x75\163\145\162\137\147\x65\x74\137\x72\145\x73\x70\x6f\156\163\145\x20\x66\x75\x6e\x63\164\x69\157\156");
Log::info("\117\x75\x74\160\x75\164\40\x4a\123\117\x4e\40\x3a\x20" . $F9);
header("\110\x54\124\120\x2f\61\x2e\61\40\x32\x30\x30\40\x4f\x4b");
header("\x43\x6f\156\164\x65\156\164\x2d\x54\171\160\145\x3a\40\x61\x70\160\154\151\x63\x61\x74\151\x6f\156\x2f\152\x73\157\156\73\143\150\141\x72\x73\x65\x74\75\x75\x74\146\55\x38");
echo $F9;
exit;
}
function send_user_filter_response($hg)
{
$user = BackendAuth::findUserByLogin($hg);
if ($user !== null) {
goto Uw;
}
$F9 = "\x7b\xd\xa\x20\x20\40\40\x20\x20\x20\40\40\x20\40\40\x22\x73\143\150\145\x6d\x61\x73\x22\72\x20\x5b\42\165\162\156\x3a\151\145\164\146\x3a\160\x61\162\x61\155\163\72\x73\143\151\155\72\141\x70\151\72\155\x65\163\x73\x61\x67\145\163\x3a\x32\x2e\x30\x3a\x4c\x69\163\x74\122\x65\x73\160\x6f\156\x73\145\x22\135\54\15\12\x20\40\40\40\40\40\x20\40\x20\x20\x20\40\x22\164\x6f\164\141\154\x52\x65\x73\165\154\164\x73\42\72\x20\x30\54\xd\12\x20\40\40\40\x20\x20\40\40\x20\40\x20\x20\x22\x52\145\x73\157\165\x72\143\145\163\42\x3a\40\133\x5d\54\15\12\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x22\163\x74\x61\x72\x74\111\156\144\145\x78\42\x3a\x20\61\x2c\15\12\40\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x22\x69\164\x65\155\x73\x50\x65\x72\x50\141\x67\145\x22\x3a\40\62\60\xd\xa\40\40\40\x20\40\x20\x20\x20\175";
header("\110\124\124\120\57\61\x2e\x31\40\x32\60\60\x20\x4f\113");
header("\103\157\156\x74\145\x6e\164\x2d\x54\171\160\145\x3a\x20\x61\160\160\x6c\x69\x63\141\164\151\x6f\x6e\57\152\163\x6f\156\73\x63\x68\141\162\163\145\x74\x3d\165\x74\x66\x2d\70");
Log::info("\x49\x6e\x20\163\x65\156\144\x5f\165\x73\145\x72\137\146\x69\154\x74\145\x72\x5f\162\145\163\160\157\x6e\163\145\x20\x66\x75\x6e\143\x74\x69\x6f\156");
Log::info("\x4f\x75\x74\x70\x75\x74\40\112\123\x4f\x4e\x20\72\x20" . $F9);
echo $F9;
exit;
goto He;
Uw:
$F9 = "\x7b\xd\xa\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\x22\163\x63\x68\x65\155\x61\163\42\72\40\x5b\x22\165\162\x6e\72\x69\145\x74\146\x3a\160\x61\x72\x61\x6d\163\x3a\163\143\x69\155\x3a\163\143\x68\x65\155\141\x73\x3a\x65\x78\164\145\156\x73\x69\x6f\156\72\145\x6e\x74\x65\162\x70\x72\x69\163\x65\72\x32\56\60\x3a\125\x73\145\x72\x22\x5d\x2c\xd\12\40\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\40\40\x20\x22\151\x64\42\x3a\x20\x22" . $user->id . "\42\x2c\xd\12\40\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\42\x75\163\x65\x72\x4e\x61\155\145\x22\72\40\x22" . $user->username . "\x22\54\15\12\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\x22\145\x78\164\145\x72\156\x61\x6c\111\144\x22\72\x20\42" . $user->id . "\42\x2c\15\xa\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\42\x6e\x61\155\145\42\x3a\40\x7b\xd\12\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\42\146\x61\x6d\151\154\x79\116\141\x6d\x65\42\x3a\x20\42" . $user->name . "\42\54\15\xa\40\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\42\x67\151\x76\145\156\116\x61\155\x65\42\x3a\x20\x22" . $user->surname . "\42\xd\12\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\175\x2c\xd\xa\40\x20\40\x20\40\40\40\x20\40\x20\40\40\40\40\40\40\42\145\x6d\x61\x69\154\163\x22\x3a\40\x5b\173\15\xa\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\40\x20\40\40\x20\x20\x20\x20\40\42\x70\x72\151\x6d\141\x72\171\x22\x3a\40\164\x72\165\x65\x2c\xd\12\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\40\40\x20\x20\x20\x20\x22\x76\141\154\x75\145\42\x3a\40\x22" . $user->email . "\x22\15\12\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\x7d\135\x2c\15\xa\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\40\x22\x6d\x65\164\x61\42\72\x20\173\15\12\x20\40\x20\40\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\x20\40\x20\40\42\x63\162\x65\141\x74\145\144\x22\72\40\42" . $user->created_at . "\x22\x2c\xd\xa\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\x22\154\141\163\x74\x4d\157\144\151\146\151\145\x64\42\x3a\40\42" . $user->modified_at . "\42\40\40\40\xd\12\x20\40\40\x20\40\40\40\40\40\x20\40\40\40\40\40\40\175\15\12\40\40\x20\x20\x20\40\x20\x20\175";
header("\110\124\124\x50\57\x31\56\x31\x20\x32\x30\x30\x20\117\x4b");
header("\x43\x6f\x6e\x74\x65\x6e\164\x2d\124\171\x70\x65\72\40\x61\x70\x70\154\151\x63\x61\x74\151\x6f\x6e\x2f\x6a\163\x6f\x6e\73\143\x68\x61\162\163\x65\164\75\165\x74\x66\55\70");
Log::info("\x49\x6e\40\163\145\x6e\x64\137\165\x73\x65\x72\137\x66\151\154\x74\145\162\137\162\145\x73\160\x6f\x6e\x73\145\x20\x66\x75\156\143\164\x69\157\156");
Log::info("\x4f\165\x74\160\165\164\40\112\123\x4f\116\x20\72\x20" . $F9);
echo $F9;
exit;
He:
}
function send_user_details($user, $Nc, $f9)
{
Log::info("\x75\163\145\x72\x20\x61\143\x74\151\166\x65\x20\163\164\x61\164\x75\163\x3a\40" . $Nc);
$eY = "\x7b\15\12\x20\x20\40\40\40\x20\40\x20\42\163\x63\150\145\155\141\x73\x22\x3a\40\133\42\x75\162\x6e\72\x69\x65\164\x66\72\x70\x61\x72\141\x6d\x73\x3a\163\x63\151\x6d\x3a\163\x63\x68\145\155\141\163\x3a\145\x78\164\x65\156\x73\x69\157\156\72\x65\x6e\x74\145\162\160\x72\151\x73\x65\x3a\x32\56\60\72\x55\163\x65\162\42\x5d\x2c\xd\12\40\x20\40\40\x20\x20\40\x20\x22\151\x64\x22\x3a\40\42" . $user->id . "\x22\54\15\12\x20\40\40\40\40\x20\40\40\42\165\x73\145\x72\116\x61\155\x65\x22\72\x20\x22" . $user->username . "\x22\54\xd\xa\x20\40\x20\x20\x20\x20\x20\40\x22\141\x63\x74\151\x76\145\x22\72\x20" . $Nc . "\54\xd\xa\40\x20\40\40\x20\x20\40\40\42\145\x6d\x61\x69\x6c\x73\42\72\40\133\173\15\xa\40\40\40\40\40\40\x20\x20\x20\40\x20\x20\42\160\x72\x69\155\141\162\x79\42\x3a\x20\164\x72\x75\x65\x2c\15\12\40\40\x20\x20\40\40\x20\40\40\40\40\40\42\166\x61\154\x75\x65\x22\72\40\42" . $user->email . "\42\54\15\xa\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\42\x74\x79\x70\x65\x22\72\x20\42\x77\157\162\153\x22\15\xa\x20\x20\x20\40\x20\x20\x20\40\x7d\x5d\54\15\12\x20\40\40\40\x20\x20\x20\40\x22\147\x72\x6f\165\x70\x73\42\72\40\133\x5d\x2c\15\xa\x20\x20\40\40\x20\40\40\x20\42\x6d\145\x74\141\42\72\x20\173\15\xa\x20\x20\x20\40\40\x20\40\x20\x20\40\40\40\42\162\145\x73\x6f\165\x72\143\145\124\171\x70\x65\x22\x3a\x20\x22\x55\x73\145\x72\x22\xd\12\40\x20\40\40\40\x20\40\x20\175\15\xa\x20\40\x20\40\175";
if (!($Nc == false)) {
goto yI;
}
log::info("\x2d\x2d\55\55\55\x2d\55\x2d\x2d\x2d\55\x2d\x2d\x2d\55\x2d\x2d\55\55\x55\x73\x65\x72\x20\141\x64\144\x65\144\x20\x74\157\40\144\x69\163\141\x62\x6c\x65\x64\x20\x67\162\x6f\x75\160");
$wr = Db::table("\142\141\x63\x6b\145\156\x64\137\x75\163\145\x72\137\147\162\157\165\x70\x73")->where("\156\x61\x6d\145", $f9->octobercms_delete_group_name)->first()->id;
$fR = Db::table("\x62\141\143\153\x65\x6e\144\137\165\x73\x65\x72\163\x5f\147\x72\157\165\160\x73")->where("\165\x73\145\162\x5f\x69\x64", $user->id)->lists("\165\x73\145\x72\137\x67\x72\157\165\160\x5f\x69\144");
if (in_array($wr, $fR)) {
goto jh;
}
Db::table("\x62\141\143\x6b\145\x6e\x64\x5f\165\163\x65\162\163\x5f\147\162\157\165\x70\x73")->insert(["\x75\163\145\x72\137\151\x64" => $user->id, "\x75\x73\x65\x72\x5f\x67\162\157\165\x70\x5f\151\x64" => $wr]);
jh:
yI:
header("\110\x54\124\x50\x2f\x31\56\x31\40\x32\60\60\40\117\x4b");
header("\103\x6f\x6e\164\x65\x6e\164\55\x54\x79\160\x65\x3a\40\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\152\163\157\x6e\73\143\x68\141\162\163\145\164\75\x75\164\146\55\70");
Log::info("\x49\x6e\x20\x73\x65\x6e\x64\x5f\165\x73\145\x72\x5f\144\145\164\x61\151\154\163\x20\x66\x75\156\143\x74\151\157\156");
Log::info("\117\125\x54\120\125\124\40\x4a\123\x4f\116\40\55\x20\163\145\x6e\x64\x20\165\163\x65\x72\40\144\x65\x74\x61\x69\154\163\x20\72\x20" . $eY);
echo $eY;
Log::info("\55\55\55\55\55\x2d\x2d\x2d\55\x2d\55\55\55\55\55\x2d\55\x2d\x2d\55\55\x2d\x2d\x2d\x2d\x2d\x2d\55\55\55\55\x2d\x2d\x2d\x2d\55\55\x2d\55\55\55\55\55\55\55\x2d\55\x2d\x2d\55\x2d\55\55\55\x2d\55");
exit;
}
function miniorangeScimGetAuthorizationHeader()
{
$rG = null;
if (isset($_SERVER["\x41\x75\164\x68\x6f\162\151\x7a\141\164\x69\x6f\x6e"])) {
goto m9;
}
if (isset($_SERVER["\110\x54\x54\120\x5f\x41\x55\x54\110\117\x52\x49\132\x41\124\111\117\x4e"])) {
goto Jq;
}
if (function_exists("\x61\x70\141\x63\x68\x65\x5f\162\x65\x71\165\145\163\x74\x5f\150\x65\x61\x64\x65\162\x73")) {
goto Ga;
}
goto qE;
Jq:
$rG = trim($_SERVER["\x48\124\x54\120\x5f\101\125\124\x48\x4f\x52\x49\132\101\124\111\x4f\x4e"]);
goto qE;
Ga:
$NO = apache_request_headers();
$NO = array_combine(array_map("\165\x63\167\x6f\162\144\163", array_keys($NO)), array_values($NO));
if (!isset($NO["\101\165\x74\150\157\x72\151\x7a\x61\x74\151\x6f\x6e"])) {
goto wz;
}
$rG = trim($NO["\x41\x75\164\x68\x6f\162\x69\172\141\164\151\157\156"]);
wz:
qE:
goto Le;
m9:
$rG = trim($_SERVER["\101\x75\x74\x68\x6f\162\151\172\141\x74\x69\x6f\156"]);
Le:
return $rG;
}
function miniorangeScimGetBearerToken()
{
$rG = miniorangeScimGetAuthorizationHeader();
if (empty($rG)) {
goto ec;
}
if (!preg_match("\57\x42\145\141\x72\145\162\134\x73\50\134\123\x2b\x29\x2f", $rG, $G4)) {
goto Pj;
}
return $G4[1];
Pj:
ec:
return null;
}
Function Calls
None |
Stats
MD5 | de41d56cd96f599e23760615e6b8e1bc |
Eval Count | 0 |
Decode Time | 74 ms |