#trustedkey 4 8 42 # Specify the key identifier to use with the ntpdc utility....cryptostats loopstats peerstats # Disable the monitoring facility to prevent amplification attacks using ntpdc...#trustedkey 4 8 42 # Specify the key identifier to use with the ntpdc utility....cryptostats loopstats peerstats # Disable the monitoring facility to prevent amplification attacks using ntpdc
在这种情况下,就要借助一下已有的一些软件帮帮忙了,在这里我们可以使用ntpdc来帮忙。...我用的是kali,上面已经安装好了这个工具,这个工具的作用就是能发出想要的ntp报文,我用它发一个ntp monlist请求先看看情况,用 ntpdc -c monlist *.*.*.* 命令查看...我发现我构造的数据包跟ntpdc的数据包就差了一堆00,于是我加上了180个00后整个世界都豁然开朗了。。。。
ntpd -rwxr-xr-x 1 root root 110896 Oct 26 23:32 ntpdate -rwxr-xr-x 1 root root 250312 Oct 26 23:32 ntpdc
#trustedkey 4 8 42 # Specify the key identifier to use with the ntpdc utility....cryptostats loopstats peerstats # Disable the monitoring facility to prevent amplification attacks using ntpdc
413656 Nov 9 19:53 /usr/local/bin/ntpdate -rwxr-xr-x 1 root root 859156 Nov 9 19:53 /usr/local/bin/ntpdc
identifiers which are trusted. 44 #trustedkey 4 8 42 45 46 # Specify the key identifier to use with the ntpdc
413656 Nov 10 10:01 /usr/local/bin/ntpdate -rwxr-xr-x 1 root root 859156 Nov 10 10:01 /usr/local/bin/ntpdc
#trustedkey 4 8 42 # Specify the key identifier to use with the ntpdc utility.
identifiers which are trusted. 58 #trustedkey 4 8 42 59 60 # Specify the key identifier to use with the ntpdc
notrap nopeer limited restrict -6default kod noquery nomodify notrap nopeer limited #Allow ntpq and ntpdc
客户端不能更改服务端的时间参数,但是客户端可以通过服务端进行网络校时 notrust:客户端除非通过认证,否则该客户端来源将被视为不信任子网 noquery:不提供客户端的时间查询,即用户端不能使用ntpq,ntpdc
具体操作方法: # ntpq -c rv # ntpdc -c sysinfo # ntpdc
NTPDC 工具可用于尝试对远程服务执行 monlist 命令: root@KaliLinux:~# ntpdc -n -c monlist 172.16.36.224 172.16.36.224:...这表明服务器不易受攻击,并且 monlist 命令只能在本地执行: root@KaliLinux:~# ntpdc -c monlist 172.16.36.3 remote address
类似的显示可以使用ntpdc程序的kerninfo命令。
如果不这样做,你的服务器可以在NTP反射攻击中使用,也可能会受到ntpq和ntpdc试图修改服务器状态。
重新启动 ntp 服务:service ntpd restart 设置开机自启:systemctl enable ntpd.service ntpdc -c loopinfo #查看与时间同步服务器的时间偏差