Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
06784974288b872f99e740a5cf73e2f059d6ffdbd8f9e81958d5ee999af61302<?php function B97a4CFc..
Decoded Output download
06784974288b872f99e740a5cf73e2f059d6ffdbd8f9e81958d5ee999af61302<?php
function B97a4CFce1115c4e()
{
$a70ec6a7a66e6105 = 0;
exec('ps -fp $(pgrep -u xui)', $bbaa58bafa129704, $Bf37bf5e2217fc1a);
foreach ($bbaa58bafa129704 as $fadf282e5a223781) {
$bb9229bf3cae70ba = explode(' ', preg_replace('!\s+!', ' ', trim($fadf282e5a223781)));
if (!(($bb9229bf3cae70ba[8] == 'nginx:') && ($bb9229bf3cae70ba[9] == 'master'))) {
goto label33;
}
$a70ec6a7a66e6105++;
label33:
}
return 0 < $a70ec6a7a66e6105;
}
goto label172;
label1:
$ba7b92f75d9ba7e7 = [];
foreach ($F96c156c9629633d['changelog'] as $D4ea857307b032b6) {
if (!(($D4ea857307b032b6['version'] == XUI_VERSION) && (intval($D4ea857307b032b6['revision']) <= intval(XUI_REVISION)))) {
goto label25;
}
goto label29;
label25:
$ba7b92f75d9ba7e7[] = $D4ea857307b032b6;
}
label29:
$F96c156c9629633d['changelog'] = $ba7b92f75d9ba7e7;
$d7c7502b3f9833d5->query('UPDATE `settings` SET `update_data` = ?, `reissues` = ?;', json_encode($F96c156c9629633d), json_encode($d56a50b8a73bbfca));
goto label116;
label43:
if (is_array($F96c156c9629633d) && $F96c156c9629633d['version'] && ((0 < version_compare($F96c156c9629633d['version'], XUI_VERSION)) || ((version_compare($F96c156c9629633d['version'], XUI_VERSION) == 0) && (intval(XUI_REVISION) < intval($F96c156c9629633d['revision']))))) {
goto label88;
}
$d7c7502b3f9833d5->query('UPDATE `settings` SET `update_data` = NULL, `reissues` = ?;', json_encode($d56a50b8a73bbfca));
goto label116;
label88:
echo 'Update is available!' . "
";
goto label1;
label90:
if (!b97a4cfce1115c4e()) {
goto label248;
}
$F556d761c6a605dd = parse_ini_string(file_get_contents('/home/xui/config/config.ini'));
if (!($F556d761c6a605dd['license'] && (!isset($F556d761c6a605dd['is_lb']) || !$F556d761c6a605dd['is_lb']))) {
goto label171;
}
goto label117;
label116:
goto label248;
label117:
$d7d153ac6713de6a = intval(explode(';', explode(' ', trim(explode('listen ', file_get_contents('/home/xui/bin/nginx/conf/ports/http.conf'))[1]))[0])[0]) ?: 80;
$E83bfa387b7ffc7b = Xui\Functions::updateLicense('TKbxeQrBXw2swDNwTh5yrj4jMV4RaLO0', $d7d153ac6713de6a);
if ($E83bfa387b7ffc7b['status']) {
goto label170;
}
echo 'Failed to generate license! Error: ' . $E83bfa387b7ffc7b['error'] . "
";
exit();
goto label169;
label161:
if (Xui\Functions::verifyLicense()) {
goto label168;
}
echo 'License is invalid.' . "
";
exit();
goto label116;
label168:
goto label190;
label169:
goto label171;
label170:
echo 'Updated XUI License' . "
";
label171:
goto label161;
label172:
if (!(posix_getpwuid(posix_geteuid())['name'] != 'xui')) {
goto label183;
}
exit('Please run as XUI!' . "
");
label183:
if (@$argc) {
goto label90;
}
exit(0);
goto label90;
label190:
$Df391c1205663254 = Xui\Functions::getLicense('TKbxeQrBXw2swDNwTh5yrj4jMV4RaLO0');
echo 'License is valid, expires: ' . gmdate('Y-m-d', $Df391c1205663254[3]) . "
";
require str_replace('\', '/', dirname($argv[0])) . '/../www/init.php';
$d56a50b8a73bbfca = Xui\Functions::checkReissues('TKbxeQrBXw2swDNwTh5yrj4jMV4RaLO0');
$F96c156c9629633d = json_decode(str_replace('<', '<', str_replace('>', '>', file_get_contents('https://update.xui.one/update' . (XUI_BETA ? '_beta' : '') . '.json', false, stream_context_create([
'http' => ['timeout' => 5]
])))), true);
goto label43;
label248:
?>
Did this file decode correctly?
Original Code
06784974288b872f99e740a5cf73e2f059d6ffdbd8f9e81958d5ee999af61302<?php
function B97a4CFce1115c4e()
{
$a70ec6a7a66e6105 = 0;
exec('ps -fp $(pgrep -u xui)', $bbaa58bafa129704, $Bf37bf5e2217fc1a);
foreach ($bbaa58bafa129704 as $fadf282e5a223781) {
$bb9229bf3cae70ba = explode(' ', preg_replace('!\\s+!', ' ', trim($fadf282e5a223781)));
if (!(($bb9229bf3cae70ba[8] == 'nginx:') && ($bb9229bf3cae70ba[9] == 'master'))) {
goto label33;
}
$a70ec6a7a66e6105++;
label33:
}
return 0 < $a70ec6a7a66e6105;
}
goto label172;
label1:
$ba7b92f75d9ba7e7 = [];
foreach ($F96c156c9629633d['changelog'] as $D4ea857307b032b6) {
if (!(($D4ea857307b032b6['version'] == XUI_VERSION) && (intval($D4ea857307b032b6['revision']) <= intval(XUI_REVISION)))) {
goto label25;
}
goto label29;
label25:
$ba7b92f75d9ba7e7[] = $D4ea857307b032b6;
}
label29:
$F96c156c9629633d['changelog'] = $ba7b92f75d9ba7e7;
$d7c7502b3f9833d5->query('UPDATE `settings` SET `update_data` = ?, `reissues` = ?;', json_encode($F96c156c9629633d), json_encode($d56a50b8a73bbfca));
goto label116;
label43:
if (is_array($F96c156c9629633d) && $F96c156c9629633d['version'] && ((0 < version_compare($F96c156c9629633d['version'], XUI_VERSION)) || ((version_compare($F96c156c9629633d['version'], XUI_VERSION) == 0) && (intval(XUI_REVISION) < intval($F96c156c9629633d['revision']))))) {
goto label88;
}
$d7c7502b3f9833d5->query('UPDATE `settings` SET `update_data` = NULL, `reissues` = ?;', json_encode($d56a50b8a73bbfca));
goto label116;
label88:
echo 'Update is available!' . "\n";
goto label1;
label90:
if (!b97a4cfce1115c4e()) {
goto label248;
}
$F556d761c6a605dd = parse_ini_string(file_get_contents('/home/xui/config/config.ini'));
if (!($F556d761c6a605dd['license'] && (!isset($F556d761c6a605dd['is_lb']) || !$F556d761c6a605dd['is_lb']))) {
goto label171;
}
goto label117;
label116:
goto label248;
label117:
$d7d153ac6713de6a = intval(explode(';', explode(' ', trim(explode('listen ', file_get_contents('/home/xui/bin/nginx/conf/ports/http.conf'))[1]))[0])[0]) ?: 80;
$E83bfa387b7ffc7b = Xui\Functions::updateLicense('TKbxeQrBXw2swDNwTh5yrj4jMV4RaLO0', $d7d153ac6713de6a);
if ($E83bfa387b7ffc7b['status']) {
goto label170;
}
echo 'Failed to generate license! Error: ' . $E83bfa387b7ffc7b['error'] . "\n";
exit();
goto label169;
label161:
if (Xui\Functions::verifyLicense()) {
goto label168;
}
echo 'License is invalid.' . "\n";
exit();
goto label116;
label168:
goto label190;
label169:
goto label171;
label170:
echo 'Updated XUI License' . "\n";
label171:
goto label161;
label172:
if (!(posix_getpwuid(posix_geteuid())['name'] != 'xui')) {
goto label183;
}
exit('Please run as XUI!' . "\n");
label183:
if (@$argc) {
goto label90;
}
exit(0);
goto label90;
label190:
$Df391c1205663254 = Xui\Functions::getLicense('TKbxeQrBXw2swDNwTh5yrj4jMV4RaLO0');
echo 'License is valid, expires: ' . gmdate('Y-m-d', $Df391c1205663254[3]) . "\n";
require str_replace('\\', '/', dirname($argv[0])) . '/../www/init.php';
$d56a50b8a73bbfca = Xui\Functions::checkReissues('TKbxeQrBXw2swDNwTh5yrj4jMV4RaLO0');
$F96c156c9629633d = json_decode(str_replace('<', '<', str_replace('>', '>', file_get_contents('https://update.xui.one/update' . (XUI_BETA ? '_beta' : '') . '.json', false, stream_context_create([
'http' => ['timeout' => 5]
])))), true);
goto label43;
label248:
?>
Function Calls
None |
Stats
MD5 | c649bff688e3574ac639b8b33ed3f229 |
Eval Count | 0 |
Decode Time | 53 ms |