Falcon PHP 服务器安全.pptVIP

  • 5
  • 0
  • 约7.89千字
  • 约 32页
  • 2017-12-28 发布于湖北
  • 举报
Falcon PHP 服务器安全.ppt

* * 这个我把逻辑对照代码说出来 1.从病毒特征文件读取字符串数组 2.依次匹配每个病毒的特征字符串数组 3.直到匹配到满足某个病毒的全部特征 * * * * * * * Inotify使用watch descriptor这个数据结构来对应某个被监控的文件或者目录。每个需要被监控的文件系统对象(文件,目录)都需要一个wd对象来表示。可以看到一个复杂文件目录需要维护多少wd。 * Falcon关键函数分析 只处理php文件(后续版本将完善其他类型文件) struct inotify_event * event = inotifytools_next_event(-1); while (event) { if (((strstr(event-name, .php) != NULL strstr(event-name, .swp) == NULL strstr(event-name, .swx) == NULL strstr(event-name, ~) == NULL) || (event-mask IN_ISDIR))) { if (virusHandler(event, phpVirusfeature, php_virus_num) != 1) { eventHandler(event, phpKeywords, php_keyword_num); }

文档评论(0)

1亿VIP精品文档

相关文档