fix: match safelink domains

avoid matching path
This commit is contained in:
MDLeom 2025-03-17 10:37:53 +00:00
parent ab5dca49b4
commit ec9288267c
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ cat "openphish.txt" "ipthreat.txt" "phishtank.txt" | \
sort -u > "phishing-temp.txt"
## Parse O365 safelink
safelinks="$(cat 'phishing-temp.txt' | grep -F 'safelinks.protection.outlook.com' || [ $? = 1 ])"
safelinks="$(cat 'phishing-temp.txt' | grep -P '^(?:[a-z]{3}\d{2}\.)?safelinks\.protection\.outlook\.com' || [ $? = 1 ])"
if [ -n "$safelinks" ]; then
echo "$safelinks" > "safelinks.txt"