增加威胁域名审计
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
echo "=== 域名清理进度监控 ==="
|
||||
while true; do
|
||||
if [ -f /root/dns/static/domain-info/threats/threats-removed.csv ]; then
|
||||
removed=$(wc -l < /root/dns/static/domain-info/threats/threats-removed.csv)
|
||||
removed=$((removed - 1))
|
||||
else
|
||||
removed=0
|
||||
fi
|
||||
|
||||
if [ -f /root/dns/static/domain-info/threats/threats-database-cleaned.csv ]; then
|
||||
kept=$(wc -l < /root/dns/static/domain-info/threats/threats-database-cleaned.csv)
|
||||
kept=$((kept - 1))
|
||||
else
|
||||
kept=0
|
||||
fi
|
||||
|
||||
total=$((removed + kept))
|
||||
progress=$(echo "scale=2; $total * 100 / 89941" | bc)
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') - 已检查:$total/89941 ($progress%) | 移除:$removed | 保留:$kept"
|
||||
sleep 60
|
||||
done
|
||||
Reference in New Issue
Block a user