# Perform the dig command and capture the output
output=$(dig www.FB.com)
# Check if the output contains the specific string
if [[ $output != *"star-mini.c10r.FB.com"* ]]; then
# Restart the system if the string is not found
echo "String not found, restarting system..."
sudo reboot
else
# Print a message if the string is found
echo "String found, no restart required."
fi
chatgpt写的,这里是如果被污染是重启电脑, 自己改作者: dupit8 时间: 2024-1-9 12:51
host www.quora.com.oil.cootail.com|grep -v -e 127.127.127.127 -e "fefe:fefe:fefe:fefe:fefe:fefe:fefe:fefe"|grep addr
ess && mail -s "www.quora.com is fuck by 高墙" [email protected]