diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 6b0b7fa7..4c6bd237 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -3,7 +3,7 @@ name: "Update" on: workflow_dispatch: schedule: - - cron: '8 */8 * * *' # At minute 8 past every 8th hour + - cron: '8 3/8 * * *' # At minute 8 past every 8th hour jobs: updater: diff --git a/beeline/downloader.sh b/beeline/downloader.sh new file mode 100755 index 00000000..f561ab3b --- /dev/null +++ b/beeline/downloader.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +set -euo pipefail +set -x + + +# get from Autonomous System +get_maintained() { + whois -h whois.ripe.net -- "-i mnt-by $1" >/tmp/ripe.txt + cat /tmp/ripe.txt | grep '^route' | awk '{ print $2; }' + whois -h whois.radb.net -- "-i mnt-by $1" | grep '^route' | awk '{ print $2; }' + whois -h rr.ntt.net -- "-i mnt-by $1" | grep '^route' | awk '{ print $2; }' + cat /tmp/ripe.txt | grep inetnum|awk '{$1=""; system("ipcalc -b -r "$2" "$4"| tail +2");}' +} + + + + +#get_maintained 'MNT-CLOUDMTS' > /tmp/beeline.txt || echo 'failed' +get_maintained 'BEE-MNT' > /tmp/beeline.txt || echo 'failed' + + +# save ipv4 +grep -v ':' /tmp/beeline.txt > /tmp/beeline-ipv4.txt + + +# sort & uniq +sort -h /tmp/beeline-ipv4.txt | uniq > beeline/ipv4.txt diff --git a/beeline/ipv4.txt b/beeline/ipv4.txt new file mode 100644 index 00000000..9d1320bd --- /dev/null +++ b/beeline/ipv4.txt @@ -0,0 +1,113 @@ +31.13.144.0/21 +31.13.144.0/23 +31.13.144.0/24 +31.13.145.0/24 +31.13.146.0/23 +31.13.148.0/22 +37.9.240.0/21 +37.9.240.0/22 +37.9.244.0/23 +37.9.244.0/24 +37.9.245.0/24 +37.9.246.0/24 +37.9.247.0/24 +46.16.100.0/22 +46.16.96.0/21 +46.16.96.0/22 +46.250.52.0/22 +81.9.12.0/22 +83.220.224.0/19 +83.220.224.0/24 +83.220.225.0/24 +83.220.226.0/24 +83.220.227.0/24 +83.220.228.0/24 +83.220.228.0/25 +83.220.228.128/27 +83.220.229.0/24 +83.220.229.0/25 +83.220.229.128/27 +83.220.230.0/24 +83.220.230.0/25 +83.220.230.128/27 +83.220.231.0/24 +83.220.231.0/25 +83.220.231.128/27 +83.220.232.0/22 +83.220.236.0/22 +83.220.236.0/23 +83.220.238.0/23 +83.220.240.0/20 +85.115.224.0/19 +85.115.234.0/23 +85.115.234.0/24 +85.115.235.0/24 +85.115.236.0/22 +85.115.240.0/21 +85.115.240.0/23 +85.115.240.0/24 +85.115.241.0/25 +85.115.241.128/25 +85.115.242.0/24 +85.115.243.0/24 +85.115.244.0/23 +85.115.246.0/24 +85.115.247.0/26 +85.115.247.128/27 +85.115.247.160/28 +85.115.247.176/28 +85.115.247.64/27 +85.115.247.96/27 +85.115.248.0/24 +85.115.249.0/24 +85.115.250.0/25 +85.115.250.128/25 +85.115.251.0/24 +85.115.252.0/22 +89.113.0.0/22 +89.113.12.0/22 +89.113.4.0/22 +89.113.8.0/22 +91.193.176.0/22 +91.193.176.0/23 +91.193.178.0/23 +109.197.200.0/22 +109.197.204.0/22 +109.197.204.0/24 +109.197.205.0/24 +194.186.221.0/24 +194.186.78.0/24 +212.119.238.0/23 +217.118.64.0/19 +217.118.64.0/20 +217.118.64.0/22 +217.118.64.0/24 +217.118.65.0/24 +217.118.66.0/24 +217.118.67.0/24 +217.118.68.0/22 +217.118.72.0/22 +217.118.76.0/24 +217.118.77.0/24 +217.118.78.0/24 +217.118.79.0/24 +217.118.80.0/22 +217.118.80.0/24 +217.118.81.0/24 +217.118.82.0/24 +217.118.83.0/24 +217.118.84.0/22 +217.118.84.0/24 +217.118.85.0/24 +217.118.86.0/24 +217.118.87.0/24 +217.118.88.0/22 +217.118.88.0/24 +217.118.89.0/24 +217.118.90.0/24 +217.118.91.0/24 +217.118.92.0/24 +217.118.93.0/24 +217.118.94.0/24 +217.118.95.0/24 +217.170.87.0/24 diff --git a/linkedin/downloader.sh b/linkedin/downloader.sh new file mode 100755 index 00000000..8fbad513 --- /dev/null +++ b/linkedin/downloader.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -euo pipefail +set -x + + +curl -s https://download.microsoft.com/download/B/2/A/B2AB28E1-DAE1-44E8-A867-4987FE089EBE/msft-public-ips.csv | cut -d',' -f1|awk 'NR > 1' > /tmp/microsoft.txt + +cat /tmp/microsoft.txt | grep -v ":" > /tmp/microsoft-ipv4.txt +cat /tmp/microsoft.txt | grep ":" > /tmp/microsoft-ipv6.txt + +sort -h /tmp/microsoft-ipv4.txt | uniq > microsoft/ipv4.txt +sort -h /tmp/microsoft-ipv6.txt | uniq > microsoft/ipv6.txt +