Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trixsec/geoip
Track Location With Live Address And Accuracy Using GeoIP
https://github.com/trixsec/geoip
geoip hacking-tool kali-scripts linux python-script termux termux-api termux-hacking termux-tool
Last synced: about 1 month ago
JSON representation
Track Location With Live Address And Accuracy Using GeoIP
- Host: GitHub
- URL: https://github.com/trixsec/geoip
- Owner: TrixSec
- License: gpl-3.0
- Created: 2024-12-04T14:46:29.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-04T15:27:51.000Z (about 2 months ago)
- Last Synced: 2024-12-04T16:19:43.565Z (about 2 months ago)
- Topics: geoip, hacking-tool, kali-scripts, linux, python-script, termux, termux-api, termux-hacking, termux-tool
- Language: Python
- Homepage:
- Size: 330 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Current Version**: 1.0
**Author**: Trix Cyrus
**Copyright**: © 2024 Trixsec Org
**Maintained**: Yes# GeoIP Lookup Tool
A Python script that fetches and displays geolocation information for an IP address. The information includes details such as country, city, latitude, longitude, timezone, and connection data. The results are displayed with bold and colored formatting for easy readability.
## Features
- Fetches geolocation data for a given IP address.
- Displays information like country, city, region, continent, timezone, and more.
- Connection details such as ASN, ISP, and domain.
- Bold and colored terminal output for better visibility.## Installation
### Prerequisites
- Python 3.6 or later.
- `requests` library for making HTTP requests.
- `termcolor` library for terminal color output.### Installing Dependencies
1. Clone the repository:
```bash
git clone https://github.com/TrixSec/GeoIP.git
cd GeoIP
```2. Install the required dependencies:
```bash
pip install -r requirements.txt
```Or manually install the required libraries:
```bash
pip install requests termcolor
```## Usage
Run the script from the terminal with the `--ip` argument to specify the IP address you want to look up.
```bash
python geoip.py --ip
```### Example
```bash
python geoip.py --ip 1.1.1.1
```### Test run
![GeoIP](https://github.com/TrixSec/GeoIP/blob/main/testrun/testrun.jpg?raw=true)]
### Explanation of Fields:
- **Ip**: The IP address being looked up.
- **Success**: Whether the query was successful.
- **Type**: The type of IP address (IPv4 or IPv6).
- **Continent**: The continent where the IP is located.
- **Country**: The country of the IP address.
- **City**: The city of the IP address.
- **Latitude / Longitude**: Geolocation coordinates.
- **Connection**: Details about the IP's ASN (Autonomous System Number), organization, ISP (Internet Service Provider), and domain.
- **Timezone**: Timezone information, including UTC offset and current time.