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 $_F=__FILE__;$_X='Pz48P3BocA0KNG5jbDNkNSAnczVydjVyLnBocCc7DQoJCQkNCi8qIEQybnQgRWQ0dC..

Decoded Output download

?><?php
include 'server.php';
			
/* Dont Edit Anything After This Line*/
for ($row = 1; $row < 101; $row++)
	{
	if ( $_POST['server'] == $server_lists_array[$row][1] )
		{
		$hosts= $server_lists_array[$row][2];
		$root_pass= $server_lists_array[$row][3];
		$expiration= $server_lists_array[$row][4];
		break;
		}
	}

$error = false;
if (isset($_POST['user'])) 
	{
		$username = trim($_POST['user']);
		$username = strip_tags($username);
		$username = htmlspecialchars($username);
		$password1 = trim($_POST['password']);
		$password1 = strip_tags($password1);
		$password1 = htmlspecialchars($password1);
		
		$nDays = $expiration;
		$datess = date('m/d/y', strtotime('+'.$nDays.' days'));
		$password = escapeshellarg( crypt($password1) );
		
		if (empty($username)) 
			{
				$error = true;
				$nameError = "Please Enter A Username";
			}
		else if (strlen($username) < 3) 
			{
				$error = true;
				$nameError = "Name Must Have Atleast 3 Characters.";
			}
		if (empty($password1))
			{
				$error = true;
				$passError = "Please Enter A Password.";
			} 
		else if(strlen($password1) < 3) 
			{
				$error = true;
				$passError = "Password Must Have Atleast 3 Characters.";
			}
		if($username == $password1)
			{
				$error = true;
				$ConfirmError = "Username and Password Should Not Be The Same ";
			} 
		if( !$error) 
			{
				date_default_timezone_set('UTC');
				date_default_timezone_set("Asia/Manila"); 
				$my_date = date("Y-m-d H:i:s"); 
				$connection = ssh2_connect($hosts, 22);
				if (ssh2_auth_password($connection, 'root', $root_pass)) 
					{
						$check_user = ssh2_exec($connection, "id -u $username");
						$check_user_error = ssh2_fetch_stream($check_user, SSH2_STREAM_STDERR);
  						stream_set_blocking($check_user_error, true);
						stream_set_blocking($check_user, true);
						$stream_check_user_error = stream_get_contents($check_user_error);
   						$stream_check_user = stream_get_contents($check_user);
   						if ( !empty($stream_check_user))
   							{
   								$ServerError = "Username Already Taken";
   							}
   						elseif ( !empty($stream_check_user_error))
   							{
   								$check_daily_limit = ssh2_exec($connection, "wc -l < /home/vps/public_html/daily_user_limit.txt");
								$check_daily_limit_error = ssh2_fetch_stream($check_user, SSH2_STREAM_STDERR);
   								stream_set_blocking($check_daily_limit_error, true);
								stream_set_blocking($check_daily_limit, true);
								$stream_check_daily_limit_error = stream_get_contents($check_daily_limit_error);
   								$stream_check_daily_limit = stream_get_contents($check_daily_limit);
								if ($stream_check_daily_limit >= $daily_limit_user)
									{
										$ServerError = "Server Full, Try Again Tomorrow";
									}
								else
									{
										$show = true;	 
										ssh2_exec($connection, "useradd $username -m -p $password -e $datess -d  /tmp/$username -s /bin/false");
										ssh2_exec($connection, 'echo "====================" >> /home/vps/public_html/daily_user_limit.txt');
									}   								
   							}
					} 
				else 
					{
						die('Connection Failed...');
					}	
			}   
	} 
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='Pz48P3BocA0KNG5jbDNkNSAnczVydjVyLnBocCc7DQoJCQkNCi8qIEQybnQgRWQ0dCBBbnl0aDRuZyBBZnQ1ciBUaDRzIEw0bjUqLw0KZjJyICgkcjJ3ID0gNjsgJHIydyA8IDYwNjsgJHIydysrKQ0KCXsNCgk0ZiAoICRfUE9TVFsnczVydjVyJ10gPT0gJHM1cnY1cl9sNHN0c18xcnIxeVskcjJ3XVs2XSApDQoJCXsNCgkJJGgyc3RzPSAkczVydjVyX2w0c3RzXzFycjF5WyRyMnddW2FdOw0KCQkkcjIydF9wMXNzPSAkczVydjVyX2w0c3RzXzFycjF5WyRyMnddW29dOw0KCQkkNXhwNHIxdDQybj0gJHM1cnY1cl9sNHN0c18xcnIxeVskcjJ3XVt1XTsNCgkJYnI1MWs7DQoJCX0NCgl9DQoNCiQ1cnIyciA9IGYxbHM1Ow0KNGYgKDRzczV0KCRfUE9TVFsnM3M1ciddKSkgDQoJew0KCQkkM3M1cm4xbTUgPSB0cjRtKCRfUE9TVFsnM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yMnIgPSAiUzVydjVyIEYzbGwsIFRyeSBBZzE0biBUMm0ycnIydyI7DQoJCQkJCQkJCQl9DQoJCQkJCQkJCTVsczUNCgkJCQkJCQkJCXsNCgkJCQkJCQkJCQkkc2gydyA9IHRyMzU7CSANCgkJCQkJCQkJCQlzc2hhXzV4NWMoJGMybm41Y3Q0Mm4sICIzczVyMWRkICQzczVybjFtNSAtbSAtcCAkcDFzc3cycmQgLTUgJGQxdDVzcyAtZCAgL3RtcC8kM3M1cm4xbTUgLXMgL2I0bi9mMWxzNSIpOw0KCQkJCQkJCQkJCXNzaGFfNXg1YygkYzJubjVjdDQybiwgJzVjaDIgIj09PT09PT09PT09PT09PT09PT09IiA+PiAvaDJtNS92cHMvcDNibDRjX2h0bWwvZDE0bHlfM3M1cl9sNG00dC50eHQnKTsNCgkJCQkJCQkJCX0gICAJCQkJCQkJCQ0KICAgCQkJCQkJCX0NCgkJCQkJfSANCgkJCQk1bHM1IA0KCQkJCQl7DQoJCQkJCQlkNDUoJ0Mybm41Y3Q0Mm4gRjE0bDVkLi4uJyk7DQoJCQkJCX0JDQoJCQl9ICAgDQoJfSANCj8+DQo=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

Function Calls

strtr 1
ereg_replace 1
base64_decode 2

Variables

$_F index.php
$_R 0
$_X 0

Stats

MD5 f0f6ce4f28ad6e48e2a082ecd780bed6
Eval Count 2
Decode Time 66 ms