Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dan-duran/ip-calc

IP Calculator for IP RANGE, HEX, BINARY, CIDR
https://github.com/dan-duran/ip-calc

ip-calculator ip-checker ip-generator python3-tools

Last synced: 19 days ago
JSON representation

IP Calculator for IP RANGE, HEX, BINARY, CIDR

Awesome Lists containing this project

README

        

# IP Conversion Tool
**IP Calculator for IP RANGE, HEX, BINARY, CIDR**

This quick Python script provides a command-line interface for converting IP addresses and ranges between different formats. It supports converting between decimal, hexadecimal, binary, and CIDR notation. The tool also allows for converting CIDR notation to IP ranges and finding the smallest CIDR block that encompasses a given IP range.

- **👉 Checkout some more awesome tools at [GetCyber](https://getcyber.me/tools)**
- **👉 Subscribe to my YouTube Channel [GetCyber - YouTube](https://youtube.com/getCyber)**
- **👉 Discord Server [GetCyber - Discord](https://discord.gg/YUf3VpDeNH)**

## Features
- Convert IP addresses to hexadecimal format.
- Convert IP addresses to binary format.
- Convert binary IP addresses back to decimal format.
- Convert hexadecimal IP addresses back to decimal format.
- Convert CIDR notation to IP range.
- Convert an IP range to the smallest possible CIDR block that covers the entire range.

## Usage
Run the script in your terminal, and you will be presented with a menu of options:

Menu:
1. Convert IP to HEX
2. Convert IP to Binary
3. Convert Binary to IP
4. Convert HEX to IP
5. Convert CIDR to IP Range
6. Convert IP Range to the smallest CIDR block
7. Exit

Enter the number corresponding to the action you want to perform and follow the prompts.

## Requirements
- Python 3

## Installation
Clone this repository to your local machine:

```bash
git clone https://github.com/Dan-Duran/ip-calc.git && cd ip-calc/
```
```bash
python3 ip-calc.py
```

If you want colored output, install the termcolor library:

## License
- This project is licensed under the MIT License - see the LICENSE file for details. https://opensource.org/license/mit