Add a more simple DigitalOcean form of IPs (all /24)

This commit is contained in:
2023-08-13 00:27:31 +02:00
parent fe25fdcbf2
commit 1f83fa40c7
3 changed files with 11161 additions and 1 deletions

View File

@ -67,4 +67,11 @@ cat stretchoid_revisions/v*-reversed.txt | sort | uniq -c > stretchoid_revisions
cat stretchoid_revisions/v*-reversed.txt | sort | uniq -c | sort > stretchoid_revisions/count-reversed.txt
# Generate the list of full IPs of stretchoid
cat stretchoid_revisions/v*-reversed.txt | sort | uniq | awk -F'#' '{print $2" # "$1}' OFS='#' | awk '{$1=$1;print}' > ../stretchoid.txt
cat stretchoid_revisions/v*-reversed.txt | sort | uniq | awk -F'#' '{print $2" # "$1}' OFS='#' | awk '{$1=$1;print}' > ../stretchoid.txt
# Find missing IPs in the ranges file
# WARNING: does not work as expected
cat binaryedge_revisions/v*-reversed.txt | LC_ALL=C.UTF-8 sort -t "-" -n | uniq | cut -d ' ' -f 3 | sort -V | cut -d " " -f 1 | cut -d '.' -f -3 | sort | uniq | xargs -I {} grep -F "{}" digitalocean_announced_ips.txt | sort | grep -F -x -v -f ./binaryedge_ranges.txt