refactor: reorganise
This commit is contained in:
parent
d36ee81a86
commit
62d3cde73e
20
script.sh
20
script.sh
|
@ -116,6 +116,17 @@ FIFTH_LINE="! License: https://creativecommons.org/publicdomain/zero/1.0/"
|
|||
SIXTH_LINE="! Source: https://urlhaus.abuse.ch/api/"
|
||||
COMMENT_ABP="$FIRST_LINE\n$SECOND_LINE\n$THIRD_LINE\n$FOURTH_LINE\n$FIFTH_LINE\n$SIXTH_LINE"
|
||||
|
||||
|
||||
cat "malware-domains.txt" "malware-url-top-domains.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' > "../urlhaus-filter.txt"
|
||||
|
||||
cat "malware-domains-online.txt" "malware-url-top-domains-online.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' | \
|
||||
sed "1s/Malicious/Online Malicious/" > "../urlhaus-filter-online.txt"
|
||||
|
||||
|
||||
# Adguard Home (#19, #22)
|
||||
cat "malware-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
|
@ -136,15 +147,6 @@ sed '1 i\'"$COMMENT_ABP"'' | \
|
|||
sed "1s/Malicious/Online Malicious/" | \
|
||||
sed "1s/Blocklist/Blocklist (AdGuard Home)/" > "../urlhaus-filter-agh-online.txt"
|
||||
|
||||
cat "malware-domains.txt" "malware-url-top-domains.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' > "../urlhaus-filter.txt"
|
||||
|
||||
cat "malware-domains-online.txt" "malware-url-top-domains-online.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' | \
|
||||
sed "1s/Malicious/Online Malicious/" > "../urlhaus-filter-online.txt"
|
||||
|
||||
|
||||
# Adguard browser extension
|
||||
cat "malware-domains.txt" | \
|
||||
|
|
Loading…
Reference in New Issue