Skip to content

Commit

Permalink
stricter regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas authored Dec 17, 2023
1 parent ea15721 commit 49b5d62
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/filter_parse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,24 +149,24 @@ jobs:
cd "$GITHUB_WORKSPACE/main/Data/np_ccTLDs"
#(ALL)
#Last 24 Hr
grep -Ei 'com\.np|coop\.np|edu\.np|gov\.np|info\.np|mil\.np|name\.np|net\.np|org\.np' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_all_24h.txt"
grep -Ei '\.com\.np$|\.coop\.np$|\.edu\.np$|\.gov\.np$|\.info\.np$|\.mil\.np$|\.name\.np$|\.net\.np$|\.org\.np$' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_all_24h.txt"
#Last 7 Days
grep -Ei 'com\.np|coop\.np|edu\.np|gov\.np|info\.np|mil\.np|name\.np|net\.np|org\.np' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_all_7days.txt"
grep -Ei '\.com\.np$|\.coop\.np$|\.edu\.np$|\.gov\.np$|\.info\.np$|\.mil\.np$|\.name\.np$|\.net\.np$|\.org\.np$' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_all_7days.txt"
#(Gov & Mil)
#Last 24 Hr
grep -Ei 'gov\.np|mil\.np' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_gov_mil_24h.txt"
grep -Ei '\.gov\.np$|\.mil\.np$' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_gov_mil_24h.txt"
#Last 7 Days
grep -Ei 'gov\.np|mil\.np' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_gov_mil_7days.txt"
grep -Ei '\.gov\.np$|\.mil\.np$' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_gov_mil_7days.txt"
#(Edu)
#Last 24 Hr
grep -Ei 'edu\.np' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_edu_24h.txt"
grep -Ei '\.edu\.np$' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_edu_24h.txt"
#Last 7 Days
grep -Ei 'edu\.np' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_edu_7days.txt"
grep -Ei '\.edu\.np$' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_edu_7days.txt"
#(ISP)
#Last 24 Hr
grep -i 'cgnet.com.np\|classic.com.np\|ncell.axiata.com\|ncell.com.np\|nettv.com.np\|ntc.net.np\|snpl.net.np\|subisu.net.np\|vianet.com.np\|via.net.np\|viatv.com.np\|wlink.com.np\|wlinktech.com.np\|worldlink.com.np' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_isp_24h.txt"
grep -Ei '\.cgnet\.com\.np$|\.classic\.com\.np$|\.ncell\.axiata\.com$|\.ncell\.com\.np$|\.nettv\.com\.np$|\.ntc\.net\.np$|\.snpl\.net\.np$|\.subisu\.net\.np$|\.vianet\.com\.np$|\.via\.net\.np$|\.viatv\.com\.np$|\.wlink\.com\.np$|\.wlinktech\.com\.np$|\.worldlink\.com\.np$' "/tmp/certstream_domains.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_isp_24h.txt"
#Last 7 Days
grep -i 'cgnet.com.np\|classic.com.np\|ncell.axiata.com\|ncell.com.np\|nettv.com.np\|ntc.net.np\|snpl.net.np\|subisu.net.np\|vianet.com.np\|via.net.np\|viatv.com.np\|wlink.com.np\|wlinktech.com.np\|worldlink.com.np' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_isp_7days.txt"
grep -Ei '\.cgnet\.com\.np$|\.classic\.com\.np$|\.ncell\.axiata\.com$|\.ncell\.com\.np$|\.nettv\.com\.np$|\.ntc\.net\.np$|\.snpl\.net\.np$|\.subisu\.net\.np$|\.vianet\.com\.np$|\.via\.net\.np$|\.viatv\.com\.np$|\.wlink\.com\.np$|\.wlinktech\.com\.np$|\.worldlink\.com\.np$' "/tmp/certstream_domains_7days.txt" | sort -u -o "$GITHUB_WORKSPACE/main/Data/np_ccTLDs/certstream_domains_np_isp_7days.txt"
continue-on-error: true

- name: rClone Upload to R2
Expand Down

0 comments on commit 49b5d62

Please sign in to comment.