|
| 1 | +name: Wordlist Updater - directories |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - 'Discovery/Web-Content/raft-small-directories.txt' |
| 7 | + - 'Discovery/Web-Content/raft-small-directories-lowercase.txt' |
| 8 | + - 'Discovery/Web-Content/directory-list-2.3-small.txt' |
| 9 | + - 'Discovery/Web-Content/raft-medium-directories-lowercase.txt' |
| 10 | + - 'Discovery/Web-Content/raft-medium-directories.txt' |
| 11 | + - 'Discovery/Web-Content/directory-list-2.3-medium.txt' |
| 12 | + - 'Discovery/Web-Content/apache.txt ' |
| 13 | + - 'Discovery/Web-Content/directory-list-2.3-big.txt' |
| 14 | + - 'Discovery/Web-Content/raft-large-directories-lowercase.txt' |
| 15 | + - 'Discovery/Web-Content/raft-large-directories.txt ' |
| 16 | + - 'Discovery/Web-Content/directory-list-1.0.txt' |
| 17 | + - 'Discovery/Web-Content/combined_words.txt' |
| 18 | + |
| 19 | +jobs: |
| 20 | + update_combined_words: |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v2 |
| 24 | + - name: Generate combined_directories.txt |
| 25 | + run: cd Discovery/Web-Content/ && cat raft-small-directories* directory-list-2.3-small.txt raft-medium-directories* directory-list-2.3-medium.txt apache.txt combined_words.txt directory-list-2.3-big.txt raft-large-directories* directory-list-1.0.txt | awk '! seen[$0]++' > combined_directories.txt |
| 26 | + - name: Switching from HTTPS to SSH |
| 27 | + run: git remote set-url origin [email protected]:danielmiessler/SecLists.git |
| 28 | + - name: Check for changes |
| 29 | + run: git status |
| 30 | + - name: Stage changed files |
| 31 | + run: git add Discovery/Web-Content/combined_directories.txt |
| 32 | + - name: Configure git email and username |
| 33 | + run: | |
| 34 | + git config --local user.email "[email protected]" |
| 35 | + git config --local user.name "GitHub Action" |
| 36 | + - name: Commit changed files |
| 37 | + run: git commit -m "[Github Action] Updated combined_directories.txt" |
| 38 | + - name: Push changes # push the output folder to your repo |
| 39 | + uses: ad-m/github-push-action@master |
| 40 | + with: |
| 41 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 42 | + force: true |
0 commit comments