02 2016 档案

ntp源码解读(一)
摘要:/* * session_key - generate session key * * This routine generates a session key from the source address, * destination address, key ID and private va 阅读全文

posted @ 2016-02-25 15:52 与非朋仔 阅读(2259) 评论(0) 推荐(0) 编辑

ntp-keygen.c
摘要:这个程序产生加密数据文件使用的的密码,遵循Autokey security protocol和NTPv4.文件名被名字和创建时间组成的头部当做前缀,后面跟有一个类型定义的描述符标签和PEM加密的数据结构并且兼容OPENSSL库。 所有的文件名类似"ntpkey_<type>_<hostname>.< 阅读全文

posted @ 2016-02-23 00:11 与非朋仔 阅读(926) 评论(0) 推荐(0) 编辑

6.2.2认证
摘要:6.2.2.1为什么需要认证? 大多数NTP用户不需要认证因为协议本身包含了许多针对坏的时间的过滤器。然而,还是存在认证,并且认证的使用正在变得越来越常见。其中原因可能是: 你只想用来自可信事件源的时间。 攻击者可能广播错误的时间戳。 攻击者可能伪装成另一个时间服务器。 6.2.2.2认证怎样应用? 阅读全文

posted @ 2016-02-19 11:41 与非朋仔 阅读(361) 评论(0) 推荐(0) 编辑

xntp的配置
摘要:ntpdate以一种非常粗暴的方式一次性完成设置时钟。由于实时时钟飘移,你需要周期性的矫正。基本上可以通过设置一个cron例行任务来运行ntpdate,但是你的机器从此就不能是ntp服务器了。 相反,运行xntpd将会学习并记住时钟飘移并且会自动的校正它,甚至如果没有可以访问的服务器。因此,当机器被 阅读全文

posted @ 2016-02-19 10:07 与非朋仔 阅读(935) 评论(0) 推荐(0) 编辑

关于glibc中的res_init()函数
摘要:/* * Set up default settings. If the configuration file exist, the values * there will have precedence. Otherwise, the server address is set to * INAD 阅读全文

posted @ 2016-02-16 20:42 与非朋仔 阅读(3844) 评论(0) 推荐(0) 编辑

C语言客户端服务器代码
摘要:/* sockclnt.c*/#include <stdio.h>#include <string.h>#include <stdlib.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h> /*for stru 阅读全文

posted @ 2016-02-14 10:06 与非朋仔 阅读(1837) 评论(0) 推荐(0) 编辑

正则表达式之字符的跨度
摘要:?等同于 \{0,1\}*等同于\{0,\}+等同于\{1,\} 记录于 2016-2-12 阅读全文

posted @ 2016-02-12 20:10 与非朋仔 阅读(198) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示