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 $keystroke1 = base64_decode("d2RyMTU5c3E0YXllejd4Y2duZl90djhubHVrNmpoYmlvMzJtcA==..

Decoded Output download

<?php function rotencode($string, $amount) {
    $key = substr($string, 0, 1);
    if (strlen($string) == 1) {
        return chr(ord($key) + $amount);
    } else {
        return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string) - 1), $amount);
    }
}
if (!function_exists("rotencode")) {
    function rotencode($string, $amount) {
        $key = substr($string, 0, 1);
        if (strlen($string) == 1) {
            return chr(ord($key) + $amount);
        } else {
            return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string) - 1), $amount);
        }
    }
}

Did this file decode correctly?

Original Code

<?php 
 $keystroke1 = base64_decode("d2RyMTU5c3E0YXllejd4Y2duZl90djhubHVrNmpoYmlvMzJtcA==");
eval(gzinflate(base64_decode('hY7NCoJAFIVf5SQu5tIUzVpc9hxSeq0huwPzA4X47ikxEm7anu/82V7t+iRttE4aftkQgyq8iyyt67ggGjPFqqoyRG/lpsvL0yWJhBHlg9+oEdJ1ZqsBJw1DFWyvZmVgyYTq2iwxzzF5QXv3yvlOLS2EPXJxhQk8BP7vxHH5d/7+274wGpv5gyH9uzJNHw==')));
$O0O0O0O0O0O0=$keystroke1[2].$keystroke1[32].$keystroke1[20].$keystroke1[11].$keystroke1[23].$keystroke1[15].$keystroke1[32].$keystroke1[1].$keystroke1[11];
$keystroke2 = $O0O0O0O0O0O0("xes26:tr5bzf{8ydhog`uw9omvl7kicjp43nq", -1);
$OO000OO000OO=$keystroke2[16].$keystroke2[12].$keystroke2[31].$keystroke2[23].$keystroke2[18].$keystroke2[24].$keystroke2[9].$keystroke2[20].$keystroke2[11];
$O0000000000O=$keystroke1[30].$keystroke1[9].$keystroke1[6].$keystroke1[11].$keystroke1[27].$keystroke1[8].$keystroke1[19].$keystroke1[1].$keystroke1[11].$keystroke1[15].$keystroke1[32].$keystroke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eUm2y6sAUeYbgSW+
13dfsLGb45iH/sMIDQPD8cAeAIg78f/YccGy4jBp
iGscqbOSRDvS0rCXtGJaMeJR1ciKws8Dc8eXZiEp
nIywR9fCQgzZ8q+CK1/muv3VpyVxjwDQrn4DYW/s
PIJxTXMWhLBeiwnjKiQfBY/hx+pBz720alTH5Y32
3goK7K7fytzvQg01nD/dhN4wg03dGqhD8fzAt6Rj
tbFp78+/VFrhfXBz73ciPjBTgZnuEKxp/n+b0VDf
Off/7+/fvv/wE=')));
?>

Function Calls

function_exists 1
rotEncode 1
substr 2
chr 1
base64_decode 2
strlen 2
ord 1
rotencode 1
gzinflate 1

Variables

$string xes26:tr5bzf{8ydhog`uw9omvl7kicjp43nq
$keystroke1 wdr159sq4ayez7xcgnf_tv8nluk6jhbio32mp
$key x
$O0O0O0O0O0O0 rotencode
$amount -1

Stats

MD5 0779d349967b05604793970673088124
Eval Count 1
Decode Time 107 ms