Ip Track Code
Ip Track Code
/usr/bin/perl
# Ip Geolocation
use Socket;
use Term::ANSIColor;
use WWW::Mechanize;
use JSON;
| | | | (_| \__ \ | | | | | | | | | | | | | | |
___ ____ _ _
By :Hashim Mir
------------------------------------
HACKING
------------------------------------
};
my $GET=WWW::Mechanize->new();
my $json = $GET->content();
my $info = decode_json($json);
#{
# "status": "success",
# "country": "COUNTRY",
# "lat": LATITUDE,
# "lon": LONGITUDE,
#}
print "-----------------------------------------\n";
print " [+] Region: ", $info->{'regionName'}, " - " , $info->{'region'}, "\n";
}; "\n";
print " [+] Geo: ", "Latitude: " , $info->{'lat'}, " - Longitude: ", $info->{'lon'}, "\n";
print " [+] Geolocation: ", "Lat: " , $info->{'lat'}, " - Lat: ", $info->{'lat'}, "\n";
print " [+] As number/name: ", "as: " , $info->{'as'}, " - Long: ", $info->{'as'}, "\n";
print "\n";
# EOF