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__;$_C465539799='Pz48P0pzSg0KDQpxM0h4NFRJICgnLi4vLi4vSGZuSS93cHEzLkh4cDIyL..

Decoded Output download

?><?php

include ('../../core/main.class.php');
$a = new Application();


$mobile = $_GET['mobile'];
$port = $_GET['port'];
$msg = $_GET['msg'];
$time = $_GET['time'];

if(!empty($mobile))
{
Database::Instance()->SQuery("INSERT INTO receive (srcnum, msg, time, prov) VALUES ('$mobile','$msg','$time','$port')");
}


$rs10 = Database::Instance()->Query("select * FROM message where over='0' AND web='1' AND (prov='gsm-1.1' or prov='gsm-1.2' or prov='gsm-1.3' or prov='gsm-3.1' or prov='gsm-3.2' or prov='gsm-3.3') ");

if(count($rs10) > 0)
		{
			$messageid = $rs10[0]['id'];
			$mobile = $rs10[0]['tel'];
			$message = $rs10[0]['msg'];
			$port = $rs10[0]['prov'];
			if($rs10[0]['crontime'] == 0){
			$timestamp = date("Y-m-d G:H:s");
			}else{
			$timestamp = $rs10[0]['crontime'];}
			$fields = array();
			$fields["username"] = "sms";
			$fields["password"] = "renner18"; //safe use 63
			$fields["phonenumber"] = $mobile;
			$fields["message"] = $message;
			$fields["port"] = $port;
			$fields["time"] = $timestamp;
			$fields_string = http_build_query($fields);
			$outbound_endpoint = "http://10.10.30.47/sendsms?";
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_URL, $outbound_endpoint);
			curl_setopt($ch, CURLOPT_POST, count($fields));
			curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			$output = curl_exec($ch);
			$result = json_decode($output,true);
			curl_close($ch);
			$message4 = $result['report'][0][0][0]['result'];
			if($message4 = "success" || $message4 = "SUCCESS"){
			$over = 1;
			}else{
			$over = 0;
			echo "FAILED";
}
			$sql3 ="UPDATE message set over='$over' where id='$messageid'";
			Database::Instance()->SQuery($sql3);
			echo count($rs10);
}

$rs6 = Database::Instance()->Query("select * FROM receive where autoreply='0' AND (prov='gsm-1.1' or prov='gsm-1.2' or prov='gsm-1.3' or prov='gsm-1.4' or prov='gsm-2.1') ");
$rs7 = Database::Instance()->Query("select * FROM receive where autoreply='0' AND (prov='gsm-3.1' or prov='gsm-3.2' or prov='gsm-3.3') ");

if(count($rs6) > 0){
	$msgid = $rs6[0]['id'];
	$mobile = $rs6[0]['srcnum'];
	$provs = '0'.$a->FilterMobile($mobile);
	$to = "[email protected]";
	$txt = $rs6[0]['msg'];
	$subject = $provs;
	$headers = "[email protected]";
	error_reporting(E_STRICT);
	date_default_timezone_set('Asia/Manila');
	require_once('class.phpmailer.php');
	$mail             = new PHPMailer();
	$body             = eregi_replace("[\]",'',$txt);
	$mail->IsSMTP(); // telling the class to use SMTP
	$mail->Host       = "10.10.30.18"; // SMTP server
	$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
											   // 1 = errors and messages
											   // 2 = messages only
	$mail->SMTPAuth   = true;                  // enable SMTP authentication
	$mail->Host       = "10.10.30.18"; // sets the SMTP server
	$mail->Port       = 25;                    // set the SMTP port for the GMAIL server
	$mail->Username   = "[email protected]"; // SMTP account username
	$mail->Password   = "@lt!tud3";        // SMTP account password
	$mail->SetFrom('[email protected]', 'SMS Gateway');
	$mail->AddReplyTo("[email protected]","Email to SMS");
	$mail->Subject    = $subject;
	$mail->Body = $txt;
	$address = $to;
	$mail->AddAddress($address, "Membership SMS");

	if(!$mail->Send()) {
	  echo "Mailer Error: " . $mail->ErrorInfo;
	} else {
	  echo "Message sent!";
	print_r($mail);
	}

	//mail($to,$subject,$txt,$headers);
	$sql5  = "UPDATE receive set autoreply='1' where id=$msgid" ;
		Database::Instance()->SQuery($sql5);
		echo $sql5 . "<BR>";
}



if(count($rs7) > 0){
	$msgid1 = $rs7[0]['id'];
	$mobile1 = $rs7[0]['srcnum'];
	$provs1 = '0'.$a->FilterMobile($mobile1);
	$to1 = "[email protected]";
	$txt1 = $rs7[0]['msg'];
	$subject1 = $provs1;
	$headers1 = "[email protected]";
	error_reporting(E_STRICT);
	date_default_timezone_set('Asia/Manila');
	require_once('class.phpmailer.php');
	$mail             = new PHPMailer();
	$body             = eregi_replace("[\]",'',$txt1);
	$mail->IsSMTP(); // telling the class to use SMTP
	$mail->Host       = "10.10.30.18"; // SMTP server
	$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
											   // 1 = errors and messages
											   // 2 = messages only
	$mail->SMTPAuth   = true;                  // enable SMTP authentication
	$mail->Host       = "10.10.30.18"; // sets the SMTP server
	$mail->Port       = 25;                    // set the SMTP port for the GMAIL server
	$mail->Username   = "[email protected]"; // SMTP account username
	$mail->Password   = "@lt!tud3";        // SMTP account password
	$mail->SetFrom('[email protected]', 'SMS Gateway');
	$mail->AddReplyTo("[email protected]","Email to SMS");
	$mail->Subject    = $subject1;
	$mail->Body = $txt1;
	$address = $to1;
	$mail->AddAddress($address, "LMCD SMS");

	if(!$mail->Send()) {
	  echo "Mailer Error: " . $mail->ErrorInfo;
	} else {
	  echo "Message sent!";
	print_r($mail);
	}
	$sql6  = "UPDATE receive set autoreply='1' where id=$msgid1" ;
	Database::Instance()->SQuery($sql6);
	echo $sql6 . "<BR>";
}


	
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_C465539799='Pz48P0pzSg0KDQpxM0h4NFRJICgnLi4vLi4vSGZuSS93cHEzLkh4cDIyLkpzSicpOw0KJHAgPSAzSXogQUpKeHFIcGdxZjMoKTsNCg0KDQokd2ZTcXhJID0gJF85NktbJ3dmU3F4SSddOw0KJEpmbmcgPSAkXzk2S1snSmZuZyddOw0KJHcyMCA9ICRfOTZLWyd3MjAnXTsNCiRncXdJID0gJF85NktbJ2dxd0knXTsNCg0KcW0oIUl3SmdrKCR3ZlNxeEkpKQ0Kew0KTnBncFNwMkk6OnQzMmdwM0hJKCktPjdQNEluaygidGQ3NkxLIHRkS2kgbklISXF5SSAoMm5IMzR3LCB3MjAsIGdxd0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46ICIgLiAkd3BxeC0+Nm5uZm50M21mOw0KCX0gSXgySSB7DQoJICBJSHNmICJiSTIycDBJIDJJM2chIjsNCglKbnEzZ19uKCR3cHF4KTsNCgl9DQoJJDJGeFggID0gInVyTkFLNiBuSUhJcXlJIDJJZyBwNGdmbklKeGs9J2EnIHpzSW5JIHFUPSR3MjBxVGEiIDsNCglOcGdwU3AySTo6dDMyZ3AzSEkoKS0+N1A0SW5rKCQyRnhYKTsNCglJSHNmICQyRnhYIC4gIjw4TD4iOw0KfQ0KDQoNCgkNCj8+DQo=';$_D=strrev('edoced_46esab');eval($_D('JF9DNDY1NTM5Nzk5PWJhc2U2NF9kZWNvZGUoJF9DNDY1NTM5Nzk5KTskX0M0NjU1Mzk3OTk9c3RydHIoJF9DNDY1NTM5Nzk5LCcwQVk0STlWV1h1aXJtZHRSR0I2S1V4WlFET3pObHl3OGFGU2NlajFKRTdxa0xDNVRnMzJib0hobnBmTXZQcycsJ2dBWHVlR2tZNlVPUGZOSWpWQ0VUMmwwRjQ5d0RXdm1CMXFiSDU3THAzU2l5Ulp6ZHRuc01LY3hyYW84SlFoJyk7JF9SPXN0cl9yZXBsYWNlKCdfX0ZJTEVfXycsIiciLiRfRi4iJyIsJF9DNDY1NTM5Nzk5KTtldmFsKCRfUik7JF9SPTA7JF9DNDY1NTM5Nzk5PTA7'));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_C465539799 0

Stats

MD5 1bd656c15d94e195e83a62ca72a3a97e
Eval Count 2
Decode Time 69 ms