You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

515 B

У становка зависимостей

pip install ipaddress argparse

Получение списка IP адресов с сумаризацией до /24

wget -q --show-progress -nv -O - https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv|iconv -f cp1251 -t utf-8|grep -E -o '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(/3[0-2]|/[1-2]?[0-9])?'|./subnets.py -s24