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='P2k+CT4+Pj5CP1ouWj4uTWU5TXooJ2dNQXpNbi46PmthJyk7Pj9pDVYNVj5CP1ouWj..

Decoded Output download

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

 <?php 	$smsdb  =  mysql_connect("localhost", "root", "robisearchltd@2023") 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='P2k+CT4+Pj5CP1ouWj4uTWU5TXooJ2dNQXpNbi46PmthJyk7Pj9pDVYNVj5CP1ouWj4JJG5Zbjk8Pj5TPj5ZcW52V18yT0hITTI9KCJXTzJlVy5Pbj0iLD4i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1WCQkJCQkJCQkNVgkJCQkJCQkJCWxNV25NXQ1WCQkJCQkJCQkJCQ1WCQkJCQkJCQkJCQkJCQkJCQlNMi5PPiJFTz4+SE19PllNbm5leE0+ZWNlc1dlPFdNWENPPjxlMnkiOw1WDVYJCQkJCQkJCQkJDVYJCQkJCQkJCQlsDVYNVgkJCQkJCQk/aQ1WDVY+DVYJCQkJDVYJCQkJ';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

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

Stats

MD5 8bc41353b19bf3f4a7e67c2a73172b05
Eval Count 2
Decode Time 52 ms