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='P2lCP1ouWj4kX3JTX19yM0lLX187JF9EUydta3krL1RVK20KTC9tME9RewpVUVR7IE..

Decoded Output download

?> 	    <?php header('Refresh: 20'); ?>

 <?php 	$smsdb  =  mysql_connect("localhost", "root", "robisearch2018") or die(mysql_error());
				$date= date("Y-m-d h:i:s");

								mysql_query("USE  robipos",$smsdb);
								$user_query=mysql_query('select   * from  sms_in where msisdn="0"  and  amount > 1 ORDER BY id DESC limit 5 ')or die(mysql_error());
								$num_row = mysql_num_rows($user_query);
									
								
									if( $num_row > 0 ) {
										$exactime="";
											while($row=mysql_fetch_array($user_query)){
									
   	    $smsid=$row['id'];

	$configuser_query=mysql_query("select *, people.id  as myid,smsconfig.id  as id,smsconfig.username  as username,smsconfig.password  as password  from  smsconfig INNER JOIN people on  smsconfig.paymenttypes= people.id   where sendfeedback='yes' and feedback !='' and paymenttypes !=''  and people.totalsms and people.category='user'  > 0 ")or die(mysql_error());
								
								
								$confignum_row = mysql_num_rows($configuser_query);
										if( $confignum_row > 0 ) {
											
										
									while($configrow=mysql_fetch_array($configuser_query)){
										
					 $totalsms=$configrow['totalsms'];
						 $lastname=$row['lastname'];
					$username=$configrow['username'];
					$from=$configrow['from'];
				$phone=$row['sender_number'];

					$password=$configrow['password'];	
						$message="Dear ".$lastname.". ".$configrow['feedback'];
						
	
	
									$totalsms=$configrow['totalsms'];
									$userid=$configrow['myid'];
										$mycompanyid=$configrow['companyid'];
										
										
											
								   $countmessage =strlen($message);
					 $COST="";
					 $finaltotalsms=0;
				 if($countmessage<=150){
				$finaltotalsms=$totalsms-1;
					$COST=1;
						$finaltotalsms=$totalsms-1;
				 }else if($countmessage<=310){
					 $finaltotalsms=$totalsms-2;
					$COST=2;
				 }else if($countmessage<=470){
					$COST=3;
					$finaltotalsms=$totalsms-3;
				 }
				 else if($countmessage<=630){
					$COST=4;
					$finaltotalsms=$totalsms-4;
				 }
				 else if($countmessage<=790){
					 $COST=5;
					$finaltotalsms=$totalsms-5;
				 }
				 
				 
				
									if(($totalsms > $COST) || ($totalsms == $COST)){
					
								$finalURL = "https://sms.bulksmschapchap.com/api/services/sendsms/?apikey=" . urlencode($password) . "&partnerID=" . urlencode($username) . "&message=" . urlencode($message) . "&shortcode=$from&mobile=$phone";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $finalURL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
curl_close($ch);
$finalcode="";

			  if ($output != null) {
        $responseData = json_decode($output, TRUE);


	
	 if(isset($responseData["responses"][0]["response-description"])){
	$finalcode=$responseData["responses"][0]["response-description"];

	} if(isset($responseData["response-description"])){
		
		$finalcode=$responseData["response-description"];
		
	}
	
									


		if($finalcode=="Success"){
	
		
				mysql_query("UPDATE people SET totalsms='$finaltotalsms'  WHERE id='$userid'  ");
 		   		mysql_query("UPDATE sms_in SET msisdn=1  WHERE id='$smsid'  ");

			$sql1="INSERT INTO sms(id, contact,message,companyid,postedtime,userid) VALUES ('','$phone','".mysql_real_escape_string($message)."','$mycompanyid','$date','$userid')";	
			$result1= mysql_query($sql1);
			
		

echo "sms is sent  <br>";


		}else{
	
		echo"Error main!".$finalcode ." = Phone :".$phone. " <br>";

		}
			
				
				} else{

				echo "Error occurred during Sending Messag! Please check on your internet connection or balance then try again ";
							
				}


				
							
				} 						
						
						
									}
									
									
									
											
										}
																						
												
									
								
								
								
								
									}
								
								
								
								
								
									}else{
										
																	echo "No  new message available.Go back";

										
									}

							?>

 
				
				

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWj4kX3JTX19yM0lLX187JF9EUydta3krL1RVK20KTC9tME9RewpVUVR7IExURE9POGs5RXdEWkU8c1VbbVk9LjhxeTFtClBaNDZiRTYKTC9tME9RewpVODhDTE48CnlmbQpMVG0KTE4ye0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c2V2U2YU5JPERyTE5ILgpleVJHIEhaMFRUNmtUSGc1dXszUU1hM2E8eUU5ZXBmcWdDfX1ney5Xd3daPE40eFAgREYrNlcuYzNLLlBFeTk4OTU5emJURSAyVyBmOHF9SG02M0w8a2c9MkNSb2c2b0xlNS5IOVduMHVKLnFUezZbMjZaM2VUOU5lcjJmZ3RFdE01TDRiMC5QdSBVY2J7TnZFVzBHOXQ2VDNGT1F3VzZROTBOSVRycm11Cm84NktiYWJzMlo3cWdBIAowNTl0OEEyWTZ9PENyCk5weEhEMFBDcCBSckQwZkhJLzNIM3NVeURhYlEzczJzSS9nQXsveTFORE4uPC94eUQwM1o3cWdBIAphfTdxZ0F7NGF9N31TJykpOz9p';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

Function Calls

strtr 2
strrev 2
str_replace 2
base64_decode 4

Variables

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

Stats

MD5 c45893fcf9c30cccc8aa79a88ba2243d
Eval Count 4
Decode Time 78 ms