diff --git a/.github/workflows/daily-axfr.yml b/.github/workflows/daily-axfr.yml index 6658c8f..102c04b 100644 --- a/.github/workflows/daily-axfr.yml +++ b/.github/workflows/daily-axfr.yml @@ -18,9 +18,19 @@ jobs: # Full git history needed to track changes fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install dnspython + - name: Set up environment run: | - chmod +x ./mdaxfr + chmod +x ./extras/mdaxfr.py mkdir -p axfrout - name: Run AXFR scan @@ -28,7 +38,9 @@ jobs: curl -s 'https://data.iana.org/TLD/tlds-alpha-by-domain.txt' | \ tail -n +2 | \ tr '[:upper:]' '[:lower:]' | \ - ./mdaxfr + while read domain; do + python ./extras/mdaxfr.py -d "$domain" + done - name: Configure Git run: |