全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 499|回复: 4
打印 上一主题 下一主题

有没有方法监控dns污染

[复制链接]
跳转到指定楼层
1#
发表于 2024-1-9 12:01:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
然后发邮件
2#
发表于 2024-1-9 12:33:33 | 只看该作者
同志,dig @8.8.8.8 xxx.com,然后将解析到的 ip 与实际做对比,python 的话直接用 pydig
3#
发表于 2024-1-9 12:35:20 | 只看该作者
自己写一个,没几行代码
4#
发表于 2024-1-9 12:40:10 | 只看该作者
#!/bin/bash

# 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写的,这里是如果被污染是重启电脑, 自己改
5#
发表于 2024-1-9 12:51:04 | 只看该作者
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]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-3 21:22 , Processed in 0.059483 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表