CentOS6.2安装tripwire2.4.2.2配置sunney

当服务器遭到黑客攻击时,在多数情况下,黑客可能对系统文件等等一些重要的文件进行修改。对此,我们用Tripwire建立数据完整性监测系统。虽然它不能抵御黑客攻击以及黑客对一些重要文件的修改,但是可以监测文件是否被修改过以及哪些文件被修改过,从而在被攻击后有的放矢的策划出解决办法。Tripwire的原理是Tripwire被安装、配置后,将当前的系统数据状态建立成数据库,随着文件的添加、删除和修改等等变化,通过系统数据现状与不断更新的数据库进行比较,来判定哪些文件被添加、删除和修改过。正因为初始的数据库是在Tripwire本体被安装、配置后建立的原因,我们务必应该在服务器开放前,或者说操作系统刚被安装后用Tripwire构建数据完整性监测系统。

环境:OS:Centos6.2软件:tripwire-2.4.2.2-src.tar.bz2

二、安装

1、解压

#tar-jxvftripwire-2.4.2.2-src.tar.bz2#cdtripwire-2.4.2.2-src2、配置

#./configure--prefix=/opt/tripwire←设置安装目录注:如果出现这样的错误:

#yuminstallglibc-headers#yuminstallgcc-c++3、编译

#make--过程省略--

4、安装过程

#makeinstall--出现协议--

licenseagreement.[donotaccept]accept←输入“accept”同意协议。

--过程省略--

Continuewithinstallation[y/n]y←键入y继续安装。

Enterthesitekeyfilepassphrase:←输入“sitekeyfile”口令(输入后不会显示),并且记住这个口令。Verifythesitekeyfilepassphrase:←再次确认“sitekeyfile”口令。

Enterthelocalkeyfilepassphrase:←输入“localkeyfile”口令(输入后不会显示),并且记住这个口令。Verifythelocalkeyfilepassphrase:←再次确认“localkeyfile”口令。

Pleaseenteryoursitepassphrase:←输入“sitekeyfile”口令(输入后不会显示)第一次。

Pleaseenteryoursitepassphrase:←输入“sitekeyfile”口令(输入后不会显示)第二次。

安装完成。

三、文件说明

(1)、配置文件:定义数据库、策略文件和Tripwire可执行文件的位置:

/opt/tripwire/etc/twcfg.txt

(2)、策略:定义检测的对象及违规时采取的行为:

/opt/tripwire/etc/twpol.txt

(3)、数据库:用于存放生成的快照:

/opt/tripwire/lib/tripwire/$(HOSTNAME).twd

(4)、Tripwire为了自身的安全,防止自身被篡改,也会对自身进行加密和签名处理。其中,包括两个密钥:

(4.1)、site密钥:用于保护策略文件和配置文件,只要使用相同的策略和配置的机器,都可以使用相同的site密钥:

/usr/local/tripwire/etcsite.key

(4.2)、local密钥:用户保护数据库和分析报告,这肯定不会重复的:

/usr/local/tripwire/etc/$(HOSTNAME)-local.key

四、设置tripwire

4.1、编辑twcfg.txt文件

vi/opt/tripwire/etc/twcfg.txt←修改文本格式的Tripwire配置文件LOOSEDIRECTORYCHECKING=false←找到这一个行,将false的值变为true(不监测所属目录的数据完整性)LOOSEDIRECTORYCHECKING=true←变为此状态REPORTLEVEL=3←找到这一行,将3变为4(改变监测结果报告的等级)REPORTLEVEL=4←变为此状态#wq←保存退出4.2、建立加密格式

#cd/opt/tripwire/etc#/opt/tripwire/sbin/twadmin--create-cfgfile-Ssite.keytwcfg.txt←从文本配置文件建立加密格式配Pleaseenteryoursitepassphrase:←输入“sitekeyfile”口令Wroteconfigurationfile:/usr/local/tripwire/etc/tw.cfg完成。五、初始化数据库

#/opt/tripwire/sbin/tripwire--init←初始化数据库Pleaseenteryourlocalpassphrase:←输入“localkeyfile”口令六、更新数据库

当你更新了twpol.txt后需用此命令更新数据库

#cd/opt/tripwire#./sbin/tripwire--update-policy--secure-modelow/opt/tripwire/etc/twpol.txtPleaseenteryourlocalpassphrase:←输入“localkeyfile”口令Pleaseenteryoursitepassphrase:←输入“sitekeyfile”口令

Wrotedatabasefile:/usr/local/tripwire/lib/tripwire/localhost.localdomain.twdThedatabasewassuccessfullygenerated

七、检查文件异动

安装完tripwire后你可以定期检查文件是否存在异动。加上interactive在当前显示结果。

./sbin/tripwire--check--interactive八、查看报告

所有tripwire的报告以.twr后缀保存在lib/tripwire目录下,需要使用twprint命令来转化成文本格式。

#./sbin/twprint--print-report--twrfile/lib/tripwire/report/localhost.localdomain-20100225-164220.twr>/tmp/tripwire_readable.txt#vi/tmp/tripwire_readable.txt或直接查看#./sbin/twprint--print-report--twrfile/lib/tripwire/report/localhost.localdomain-20100225-164220.twr

THE END
1.CHATTERPronunciationinEnglishchatline chattel chattel real chatter chatterbox chattily chatty chauffeur Word of the Day bubble bath UK /?b?b.?l ?bɑ?θ/ US /?b?b.?l ?b?θ/ a special liquid soap with a pleasant smell, that you put in bath water to make a lot of bubblhttps://dictionary.cambridge.org/pronunciation/english/chatter
2.chat是什么意思chat的中文翻译音标读音用法例句chat是什么意思、chat怎么读 读音:美[tt]英[tt] 英汉翻译近义词典英英词典发音词典 chat中文翻译 vi.聊天;闲谈;参加网络闲聊 n.(尤指非正式的)谈话;鸣禽;[植] 柔荑花序(如柳絮) vt.与…攀谈;与…搭讪(或调情) chat是什么意思网络解释 https://danci.gei6.com/chat__t7bd10lb.html
3.ChattersDefinition&MeaningMerriamThe meaning of CHATTER is to utter rapid short sounds suggestive of language but inarticulate and indistinct. How to use chatter in a sentence.https://www.merriam-webster.com/dictionary/chatters
4.吱吱喳喳chatter登陆:畅享实时沟通新体验利玛资讯在数字化飞速发展的今天,人与人之间的连接不仅限于面对面的交流,网络社交平台的崛起使得“吱吱喳喳chatter”成为一种全新的沟通方式。本文将探讨这一概念的重要性和影响,分析如何在众多社交平台中实现有效的沟通与互动。 什么是“吱吱喳喳chatter”? “吱吱喳喳chatter”指的是人在社交媒体或即时通讯工具上进行的轻松、http://www.limakeji.info/goodarticle/73657.html
5.cloudchat正版下载cloudchat正版2025下载地址v2.27.0CloudChat(简称CC)是一款全球领先的即时通讯软件,提供了跨平台的通讯功能,致力于为用户创造高效、安全和便捷的沟通体验。 cloudchat正版简介 CloudChat是一款创新的多功能社交平台,适用于Android和iOS操作系统。用户可以通过文字、语音、视频等多种方式与全球好友进行交流,分享生活中的点滴,参与高质量的社区讨论。软件界面https://www.tvmao.com/hmsoft/333453.html
6.第3篇:使用ChatterBot创建基础聊天机器人在本篇文章中,我们将学习如何使用 Python 的ChatterBot库来创建一个简单的聊天机器人。我们将从安装库开始,到创建和训练一个基本的聊天机器人,最后展示如何与这个机器人进行对话。 1. 什么是ChatterBot? ChatterBot是一个机器学习库,旨在帮助开发者快速构建可以进行对话的聊天程序。该库可以通过学习已有对话数据,自主生成https://blog.csdn.net/weixin_44872675/article/details/145272236
7.科滕贝滕赫Chorweiler购物攻略,科滕贝滕赫Chorweiler购物清单/即将呈现 https://gs.ctrip.com/html5/you/shops/47400/list-s118642926-7.html
8.刘晓艳英语中的“challenge”竟如此抽象英语知识刘晓艳英语中的“challenge”竟如此抽象2025-01-25 05:17:00 据说说娱乐 辽宁 举报 0 分享至 0:00 / 0:00 速度 洗脑循环 Error: Hls is not supported. 视频加载失败 声明:取材网络、谨慎鉴别 据说说娱乐 1.1万粉丝 分享娱乐圈那些事。 02:58 哈哈!这段揭开下单部年会内幕,精彩不停 01:02 https://www.163.com/v/video/VVLPTGJA2.html
9.HP880G3TWR更换主板后出现的问题惠普支持社区信息 https://h30471.www3.hp.com/t5/tai-shi-dian-nao/HP-880G3-TWR-geng-huan-zhu-ban-hou-chu-xian-de-wen-ti/m-p/1102603
10.GitHubzhangyouzhi/awesomeiosiOS 资源大全中文版,内容包括:框架、组件、测试、Apple Store、SDK、XCode、网站、书籍等 - zhangyouzhi/awesome-ios-cnhttps://github.com/zhangyouzhi/awesome-ios-cn
11.Thebeginningofanewera:treatmentoferectiledysfunctionThis introductory manuscript aims to familiarize the concept of the ability of certain forces or energies applied on the penis. This concept is described and discussed in more detail for three optional applicative energies; shock wave energy via mechano-https://www.nature.com/articles/s41443-019-0142-y
12.mebxy.com/wpadmin/loadInNOWqBInRON3jYatfjQcjT5t2rXEBVH9lBValVUT8ZOL8DzxMKSK1lJIvBHZZ7qmQtwRnYWLo71+9H7rVB1Ol08c92q2uWCuViw3uUSqZE3Xuq+FS2M7LdJ6sKpaBMFHKEGd{content:"\f127"}.dashicons-format-chat:before{content:"\f125"}.dashicons-format-gallery:before{content:"\f161"}.dashicons-format-image:before{https://mebxy.com/wp-admin/load-styles.php?c=1&dir=ltr&load[]=dashicons,buttons,forms,l10n,login&ver=5.2
13.oauth.thu.edu.tw/v1/wpadmin/load/*! This file is auto-generated */ @font-face{font-family:dashicons;src:url("../wp-includes/fonts/dashicons.eot?99ac726223c749443b642ce33df8b800");src:url("../wp-includes/fonts/dashicons.eot?99ac726223c749443b642ce33df8b800#iefix") format("embedded-opentype"),https://oauth.thu.edu.tw/v1/wp-admin/load-styles.php?c=1&dir=ltr&load[]=dashicons,buttons,forms,l10n,login&ver=4.9.9
14.GelgoogEggTartCustardTartSkinMakingTartletMakerTop-ranking Products Secured Trading Service Supplier Buyer | Help Apps English | Rules US$5,000.00-8,000.001 Piece(MOQ) Product Details Customization:Available After-sales Service:1year Warranty:1year Start Order Request Contact Supplier Chat https://gelgoog.en.made-in-china.com/product/GwbtWRQdCHrF/China-Gelgoog-Egg-Tart-Custard-Tart-Skin-Making-Tartlet-Maker-Machine.html
15.Youarenotalone,ForIamherewithyouThoughwe'refarasorry,my computer is broken in Saturday,no wi can no twr iteany Chinese. 抱歉,我的计算机不是残破的在星期六,没有wi装twr iteany中国人于罐中。[translate] aVoltage drop estimates for modu 电压下落估计为modu[translate] athe one relating to perceived risk. This was probably due to the fact http://eyu.zaixian-fanyi.com/fan_yi_12387219
16.RotavirusNSP1InhibitsTypeIandTypeIIIInterferonviruses Article Rotavirus NSP1 Inhibits Type I and Type III Interferon Induction Gennaro Iaconis 1,2,? , Ben Jackson 1, Kay Childs 1, Mark Boyce 3, Stephen Goodbourn 4, Neil Blake 2, Miren Iturriza-Gomara 2 and Julian Seago 1,* 1 The Pirbright Institute, Ash Road, Woking, Surrey https://www.mdpi.com/1999-4915/13/4/589/pdf