docs(header): switch date format from RFC 5322 to ISO 8601

- universally readable
This commit is contained in:
MDLeom 2022-12-16 08:18:00 +00:00
parent 0f9696c4f5
commit 53c62b74c3
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 3 additions and 2 deletions

View File

@ -235,7 +235,7 @@ sort -u "phishing-notop-domains-temp.txt" > "phishing-notop-domains.txt"
## Merge malware domains and URLs
CURRENT_TIME="$(date -R -u)"
CURRENT_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
FIRST_LINE="! Title: Phishing URL Blocklist"
SECOND_LINE="! Updated: $CURRENT_TIME"
THIRD_LINE="! Expires: 1 day (update frequency)"
@ -353,7 +353,7 @@ grep -E "^([0-9]{1,3}[\.]){3}[0-9]{1,3}$" | \
sed '1 i\'"$COMMENT"'' | \
sed "1s/Domains/IPs/" > "../public/phishing-filter-dnscrypt-blocked-ips.txt"
## Temporarily disable command print
set +x
## Snort & Suricata rulesets
@ -394,6 +394,7 @@ while read URL; do
SID=$(( $SID + 1 ))
done < "phishing-url-top-domains-raw.txt"
## Re-enable command print
set -x
sed -i '1 i\'"$COMMENT"'' "../public/phishing-filter-snort2.rules"