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

Signing you up...

Thank you for signing up!

PHP Decode

eval(str_rot13(gzinflate(str_rot13(base64_decode('LUnHEra6DX2aO/dzVC+TFb33ziZQYh+98/SBP27B..

Decoded Output download

<?php
require __DIR__ . '/secret.php';
$file = 'challenge.php';
if (!isset($_GET['start'])){
	show_source(__FILE__);
	exit;
}

$blackList = [Blacklisted Commands]

$valid = true;
foreach($blackList as $blackItem)
{
	if(strpos($_GET['start'], $blackItem) !== false)
	{
		$valid = false;
		break;
}
}

if(!$valid)
	{
	show_source(__FILE__);
	exit;
}

if (strlen($_GET['start']) < 5){
	echo shell_exec($_GET['start']);
} 
else {
	echo "Please enter a valid command";
}
if (False) {
	echo $flag;
}
?>

Did this file decode correctly?

Original Code

eval(str_rot13(gzinflate(str_rot13(base64_decode('LUnHEra6DX2aO/dzVC+TFb33ziZQYh+98/SBP27B2JYsH8vSkZZzuP/Z+iNM76FN/hmHZcGQ/8zLlM7LP8XQ1sX9/8nfijZtUip5lqiuAZL8BRmGAuiclLDLOyZY/1njhsVbMleKxa2aMYDOnpQleP0LZeIShzGEIaoc8uscJiC8vyQC31hjxF+x8k0o13tax2nHKPBUCOwU1mahdhANx70KNWy+nRMmaRMm57NzvvqVtKHkhhDPyBV39eSFV60guCLBcfQOP4v5qs3ywPd7TkqhzNNRwVXs7D2XkIs/1nbEuWmYyzGQ4woHu1bvs8ZNw2wtxxmmpzS4uKCG+cALYsaxpAFSiAetdoogG9DSQd9eWiiYCLebNOuasrVnERK0SL4UGdOF8tWTa4ETBBBgYF9m5TSGLn+XFeQQ3p0W44FQu63T6Thpp8kmGg1WDKkqKEAZcP6Gc6wpiF0ZtZ3D7taJulGZGHbzfiKoXRUZYMTr1w4mBOL4T7wxhszS4vSNEWHmgANnt6F6FK1IRYCs4tVxV2MvVBgoPA+FflWza0z5YayC3W76Fs3gNK1+dfCBcOkCtJQBKOcb6YVrIjmKM8s5NVv/3cHLIsGExaA9m/igV9cWnRqRNYq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onf/TFNVHnefAA1DYRPQouOCUzbjRWwGdMW4YnJfnaFVFBckN3+K9CQGD7guzkTBZmuF1OrVFsdfcr/HAoiLQNY5c8Hq2F363NWWwzlE6mAj5HM64Lh1+A+Lo+VTXhLRvr3Rz9givuUXbuZd1HXFLE978mQZ1fdS3zIpssJdelvyGpM3RLmiVVJk5us6aYSuEmoZu0OwzgnPxtcnkR1jxVGAKiwQ6riywXG1RVgZGPGrPLP74RHJ6iYBoBW3hVDLEpzgCi4EpVR/1oo/p+fY4oyP5SFDiZsSHUEX+N0DWv//1fv/+Lw==')))))

Function Calls

strrev 3
gzinflate 11
str_rot13 11
gzuncompress 4
rawurldecode 1
base64_decode 18

Variables

None

Stats

MD5 b20fd7cb39237125f12edc2bc82e5d62
Eval Count 16
Decode Time 72 ms