Know more about location and info of IP

Know more about location and info of IP

The first thing for a hacker is to know more about a particular IP for this he may use tools such as nmap which is used for port scanning, OS fingerprinting and know what services target is running.

For some cases you may require to know that where exactly your target lives i.e Location, i know in some cases target may be using VPN which may led you to wrong information. but these may be useful if our target is not using VPN.

#!/bin/bash
#test.sh
read -p "Enter Target's Public IP : " ip;
curl https://ipinfo.io/$ip

the above command is simple it just talks to the sites API and get the information back in JSON format

lets have a Example here

user@kali~$ chmod +x test.sh
user@kali~$ ./test.sh
Enter Target's Public IP : 51.68.152.226
{
  "ip": "53.68.156.226",
  "city": "Stuttgart",
  "region": "Baden-Württemberg",
  "country": "DE",
  "loc": "48.7823,9.1770",
  "org": "AS31399 Daimler AG",
  "postal": "70173",
  "timezone": "Europe/Berlin",
  "readme": "https://ipinfo.io/missingauth"
}

Ok the above command gets results which contains location,region,city etc...

well i am also using a VPN so the information here is not correct. if you check it with your public IP then it might be correct.