diff --git a/.github/workflows/build-lists.yml b/.github/workflows/build-lists.yml index 5205215..d747e37 100644 --- a/.github/workflows/build-lists.yml +++ b/.github/workflows/build-lists.yml @@ -19,6 +19,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Cache cargo binaries + uses: actions/cache@v3 + id: cache-dns-ptr-resolver + with: + path: ~/.cargo/bin/dns-ptr-resolver + key: ${{ runner.os }}-cargo-bin-kbs-1.0.0 + - name: Set up toolchain + if: steps.cache-dns-ptr-resolver.outputs.cache-hit != 'true' + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.64.0 + override: true + - name: Install dns-ptr-resolver + if: steps.cache-dns-ptr-resolver.outputs.cache-hit != 'true' + run: cargo install dns-ptr-resolver@1.0.0 #- name: Build the binaryedge list # run: ./make-binaryedge.sh - name: Build the stretchoid list diff --git a/make-stretchoid.sh b/make-stretchoid.sh index 581dc54..5e11cc0 100755 --- a/make-stretchoid.sh +++ b/make-stretchoid.sh @@ -15,7 +15,7 @@ if [ ! -d ./reverse_revisions/ ]; then fi # With failure handling -cat stretchoid_digitalocean_possible_ips.txt | xargs -P 50 -I {} bash -c 'set -eu;rev="$(dig @9.9.9.9 +short +time=1 +tries=1 -x {})"; if [[ "$rev" == *";;"* ]]; then sleep 1; rev="$(dig @8.8.8.8 +short +time=1 +tries=1 -x {})"; fi; echo "{} # $rev";' 1> stretchoid_revisions/$REV.txt +dns-ptr-resolver $PWD/stretchoid_digitalocean_possible_ips.txt 1> stretchoid_revisions/$REV.txt grep -F "stretchoid" stretchoid_revisions/$REV.txt | sort -V > stretchoid_revisions/$REV.sorted.txt grep -v -F "stretchoid" stretchoid_revisions/$REV.txt | sort -V > reverse_revisions/$REV.sorted.txt