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 eval("?>".base64_decode("PD9waHAgDQpleHRyYWN0KCRfUE9TVCk7DQppZihpc3NldCgkc2F2ZSkpDQo..

Decoded Output download

?>b'<?php 
extract($_POST);
if(isset($save))

	switch($chose)
	{
		case \'+\':
		$res=$fn+$sn;
		break;
		
		case \'-\':
		$res=$fn-$sn;
		break;
		
		case \'*\':
		$res=$fn*$sn;
		break;
		
	}
	


?>
<!DOCTYP html>
<html>
	<head>
		<title>Calculator- switch</title>
		
	</head>
	<body>
		<form method="post" action="shell.php" >
		<table border="1" align="center">
			<tr>
				<th>Your Result</th>
				<th><input type="number" readonly="readonly" disabled="disabled" value="<?php  echo @$res;?>"/></th>
			</tr> 
			
			<tr>
				<th>Enter your First num</th>
				<th><input type="number" name="fn" value="<?php  echo $fn;?>"/></th>
			</tr> 
			<tr>
				<th>Enter your Second num</th>
				<th><input type="number" name="sn" value="<?php  echo $sn;?>"/></th>
			</tr>
			<tr>
				<th>Select Your Choice</th>
				<th>
				<select name="chose">
					<option>+</option>
					<option>-</option>
					<option>*</option>
				</select>
				</th>
			</tr>
			<tr>
				
				<th colspan="2">
				<input type="submit" 
				name="save" value="Show Result"/>
				</th>
			</tr>
		</table>
		</form>
	</body>
</html>'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHAgDQpleHRyYWN0KCRfUE9TVCk7DQppZihpc3NldCgkc2F2ZSkpDQoNCglzd2l0Y2goJGNob3NlKQ0KCXsNCgkJY2FzZSAnKyc6DQoJCSRyZXM9JGZuKyRzbjsNCgkJYnJlYWs7DQoJCQ0KCQljYXNlICctJzoNCgkJJHJlcz0kZm4tJHNuOw0KCQlicmVhazsNCgkJDQoJCWNhc2UgJyonOg0KCQkkcmVzPSRmbiokc247DQoJCWJyZWFrOw0KCQkNCgl9DQoJDQoNCg0KPz4NCjwhRE9DVFlQIGh0bWw+DQo8aHRtbD4NCgk8aGVhZD4N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