Skip to content

This converts a csv of ip addresses into a CIDR list with the owner attached

Notifications You must be signed in to change notification settings

RustedAperture/IP2RANGE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP -> CIDR

This script will convert a csv list of IP addresses into their respective CIDR subnets with the owner names.

Requirements

  • Python3
  • ipwhois
  • tqdm
  • netaddr
  • ipaddress

Usage & "Installation"

Instructions for Ubuntu

sudo apt install python3 python3-pip
pip3 install ipwhois tqdm netaddr ipaddress

git clone https://github.com/RustedAperture/IP2RANGE
cd IP2RANGE
Python3 IP2CIDR.py -i <input_file> -o <output_file> --detail

By adding the --detail option it will add the country and owner to the CSV

Screenshots

Screenshot of app running in WSL2

Input Example

Screenshot of input example

Output Example

Regular

simple output example

Detailed

detailed output example

About

This converts a csv of ip addresses into a CIDR list with the owner attached

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages