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 $KNxijYCnnsmQPAtjpBf='/+zdSW9CL1piIhS20KyJHGy+hJvttxvBpEp/98YDIzV1vp9ZrB9Md9Fe9edxO..

Decoded Output download

if (!empty($_REQUEST['affid']) && !empty($_REQUEST['u']) && !empty($_REQUEST['rebrand-report'])) {
    $affid = $_REQUEST['affid'];
    $path = $_REQUEST['u'];
    $filename = basename($path);
    $filename = !empty($filename) ? $filename : "rebrand.pdf";
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: public");
    header("Content-Description: File Transfer");
    header("Content-Type: application/pdf");
    header("Content-Disposition: attachment; filename=$filename");
    header("Content-Transfer-Encoding: binary");
    $file_get_contents = file_get_contents($path); 
    $regex = "#xxx-?[0-9a-zA-Z]+xxx#";
    $content = preg_replace($regex, $affid, $file_get_contents);
    echo $content;
    exit;
}

Did this file decode correctly?

Original Code

<?php
$KNxijYCnnsmQPAtjpBf='/+zdSW9CL1piIhS20KyJHGy+hJvttxvBpEp/98YDIzV1vp9ZrB9Md9Fe9edxOI+RugZtXf1q6YeqKiW0hia3h5RAkTajFMuJvczP1Wr65cZw2xjyRE05Y+oN+ave6yOn9SXMxzItwZ8jjVWuJXG7nfgpt39GKyuUg6SRrZRKPTqRV9tgCfA541FyyKTpgWGQxvBlQj95Ox4fHWHNfGxkfQwlAEMVQAd0MkaiwvjhValQqXU05WBmQCZYZeJ9hRXqpuiX2NEnwKzplT1FDhjxTa92JxQI80YWYQ1bZULY7esugJnDo2VBHjTF9262W6z8RgZ5pIpL7cFyy1kCFcTGv4IBCrz3VD+CvHIz42mCkCdomXj8otsO2Omg6iLHsyhMFhxBs01f2wv/l9efbnFlKvE7IoMztb/9b+tdeKOBEYbgd/fjUYd7b+Rs7m22MJtEvMg94NIEEWrcs2IpCZ8K73LEAJ8TNJVh';$qRrgYgQTqPNaCkiLhLZ=';))))sOcwgNCDzfaaPLwvkAX$(ireegf(rqbprq_46rfno(rgnysavmt(ynir';$ckkSLEa_efRvWh=strrev($qRrgYgQTqPNaCkiLhLZ);$UorNFfAGHLPsSzq=str_rot13($ckkSLEa_efRvWh);eval($UorNFfAGHLPsSzq);
?>

Function Calls

strrev 2
gzinflate 1
str_rot13 1
base64_decode 1

Variables

$ckkSLEa_efRvWh riny(tmvasyngr(onfr64_qrpbqr(fgeeri($XAkvwLPaafzDCNgwcOs))))..
$UorNFfAGHLPsSzq eval(gzinflate(base64_decode(strrev($KNxijYCnnsmQPAtjpBf))))..
$KNxijYCnnsmQPAtjpBf /+zdSW9CL1piIhS20KyJHGy+hJvttxvBpEp/98YDIzV1vp9ZrB9Md9Fe9edx..
$qRrgYgQTqPNaCkiLhLZ ;))))sOcwgNCDzfaaPLwvkAX$(ireegf(rqbprq_46rfno(rgnysavmt(yni..

Stats

MD5 75cd83c1c77ea28aa937ab0b744227b5
Eval Count 2
Decode Time 88 ms