DEV Community

Trix Cyrus
Trix Cyrus

Posted on

🌍 GeoIP Lookup Tool: Easily Get Geolocation Information of Any IP Address.

Author: Trix Cyrus

Waymap Pentesting tool: Click Here
TrixSec Github: Click Here
TrixSec Telegram: Click Here
GeoIP Tool Click Here


🚀 Key Features

  • Instant Geolocation Info: Get details such as country, city, continent, timezone, and more for any IP address.
  • Beautiful Output: Clean, colorful, and bold terminal output that makes the data easy to read.
  • No API Key Required: Fetch data without worrying about API rate limits or requiring a key.
  • Random X-Forwarded Header: The tool sends a randomized X-Forwarded header, making it more dynamic.
  • Cross-Platform: Works seamlessly on any machine with Python installed.

⚡ Installation

1. Install Dependencies

You’ll need to install Python 3 and the requests and termcolor libraries. You can install them using pip:

pip install requests termcolor
Enter fullscreen mode Exit fullscreen mode

2. Download the Script

Clone or download the script from my GitHub repository:

git clone https://github.com/TrixSec/GeoIP.git
cd GeoIP
Enter fullscreen mode Exit fullscreen mode

3. Run the Script

To fetch the geolocation information for an IP address, use the following command:

python geoip.py --ip <IP_ADDRESS>
Enter fullscreen mode Exit fullscreen mode

Replace <IP_ADDRESS> with the IP address you want to look up.


Test Run

Image description


💬 Let me know in the comments what other features you'd like to see or if you have any questions.


Happy Coding!

~Trixsec

Top comments (1)

Collapse
 
hanzla-baig profile image
Hanzla Baig

You can use the GeoIP API Key