This Python script performs a reverse IP lookup, providing valuable information such as hostname, ISP (Internet Service Provider), Reverse DNS details, and Country information. It leverages both the socket
module for basic reverse lookup and the "ipinfo.io" API for additional data.
- Reverse IP Lookup: Get the associated hostname for a given IP address.
- Additional Information: Retrieve ISP, Reverse DNS, and Country details.
- Error Handling: Gracefully handles errors for a smooth user experience.
- Python 3.x
- Required Python libraries:
requests
-
Clone the repository:
git clone https://github.com/emenmousavi/reverseiplookup
-
Install dependencies:
pip install -r requirements.txt
-
Navigate to the project directory:
cd reverse-ip-lookup
-
Run the script:
python reverse_ip_lookup.py
-
Enter the IP address when prompted.
Enter an IP address: 8.8.8.8