-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.IP-web2.php
55 lines (41 loc) · 1.4 KB
/
.IP-web2.php
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
47
48
49
50
51
52
53
54
55
<?php
system('clear');
system('sh .gwb.sh');
system('python2 .info.py');
echo "Input Ip : ";
$add = trim(fgets(STDIN));
class requests{
public $link;
public function set_link($link){
$this->link = $link;
}
public function get_link(){
return $this->link;
}
}
$req = new requests();
$req->set_link(file_get_contents("http://api.ipstack.com/$add?access_key=70ab8800007bd96cbc5fd3aa509fba22"));
$json = $req->get_link();
$ubah = json_decode($json);
system('clear');
system('sh .gwb.sh');
system('python2 .info.py');
echo "\033[92mIP : {$ubah->ip}\n";
echo "Type : {$ubah->type}\n";
echo "Continent code : {$ubah->continent_code}\n";
echo "Continent Name : {$ubah->continent_name}\n";
echo "Country Code : {$ubah->country_code}\n";
echo "Country Name : {$ubah->country_name}\n";
echo "Region Code : {$ubah->region_code}\n";
echo "Region Name : {$ubah->region_name}\n";
echo "City : {$ubah->city}\n";
echo "Zip : {$ubah->zip}\n";
echo "Latitude : {$ubah->latitude}\n";
echo "Longitude : {$ubah->longitude}\n";
echo "Geoname Id : {$ubah->location->geoname_id}\n";
echo "Flag Emoji : {$ubah->location->country_flag_emoji}\n";
echo "Calling Code : {$ubah->location->calling_code}\n";
echo "\033[33;1m___________________________________________________________________\033[37;1m\n";
echo "\n";
system('sh .gw.sh');
?>