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 (2)

Collapse
 
hanzla-baig profile image
Hanzla Baig

You can use the GeoIP API Key

Collapse
 
trixsec profile image
Trix Cyrus

This one works without api key!