This script allows users to easily retrieve geolocation information for a specified IP address using the ipinfo.io API. It provides detailed information such as the IP address, hostname, city, region, country, geographical coordinates, and the organization associated with the IP.
- User Input: Prompts the user to enter an IP address for lookup.
- Formatted Output: Displays the results with colored formatting for better readability.
- Sorted Information: Presents the retrieved data in a neatly organized manner.
To run this script, ensure you have the following installed:
- Node.js (version 12 or higher)
- Required npm packages:
axios
: For making HTTP requestschalk
: For colored terminal output
-
Clone this repository:
git clone https://github.com/FrenchEthicalsHackers/IP-Lookup.git cd Ip-Lookup
-
Install the required packages:
npm install axios chalk
- Run the script using Node.js:
node Ip-Lookup.js
- Enter the IP address when prompted.
- View the geolocation data displayed in the terminal.
Enter the IP address to look up: 8.8.8.8
Geolocation Data:
[+] IP Address: 8.8.8.8
[+] Hostname: dns.google
[+] City: Mountain View
[+] Region: California
[+] Country: US
[+] Location: 37.3860,-122.0838
[+] Organization: Google LLC
Contributions are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.
- ipinfo.io for providing the geolocation API.
- The open-source community for providing libraries that make this project possible.