04 2015 档案

Python 的 encode 和 decode
摘要:记一下,备忘。Python 使用unicode,所以无论encode还是decode都是针对unicode来说的。encode:把unicode转为其他编码(gbk、utf8、gb2312等)。decode:把其他编码转为unicode码。比如字符串a为gb2312,想转为utf8:a.decode... 阅读全文

posted @ 2015-04-24 15:12 记不住 阅读(299) 评论(0) 推荐(0)

Tripwire配置和运行
摘要:#cd/usr/local/etc#lldrwxr-xr-x2rootroot40962012-10-1320:50./drwxr-xr-x13rootroot40962012-10-1217:16../-rw-r-----1rootroot9312012-10-1217:17noi-linux-l... 阅读全文

posted @ 2015-04-22 15:45 记不住 阅读(413) 评论(0) 推荐(0)

man twadmin
摘要:twadmin:Tripwireadministrativetool.OpenSoureTripwire(R)2.4.2.2.2builtfori686-pc-linux-gnuOpenSourceTripwire2.4Portionscopyright2000Tripwire,Inc.Tripwi... 阅读全文

posted @ 2015-04-22 15:44 记不住 阅读(232) 评论(0) 推荐(0)

Tripwire策略说明
摘要:在/usr/local/doc/tripwire/目录下有个policyguide.txt文件,是策略示例。/etc/hosts->+pinugs意为如果/etc/hosts文件被改动,Tripwire将发出警告。!/etc/init.d前面的!意为不扫描/etc/init.d文件“/home/fr... 阅读全文

posted @ 2015-04-22 15:42 记不住 阅读(426) 评论(0) 推荐(0)

Tripwire安装
摘要:系统Ubuntu10.10,linux-2.6.35,gcc4.4.5安装包tripwire-2.4.2.2-src.tar.bz2。解压,./configuremakemakeinstall按Enter继续,License肯定同意啊,按q退出,输入accept同意,按y继续,出现输入site口令,... 阅读全文

posted @ 2015-04-22 15:40 记不住 阅读(309) 评论(0) 推荐(0)

[部分翻译] tripwire(8) - Linux man page
摘要:Nametripwire-afileintegritycheckerforUNIXsystemsSynopsis//简介tripwire{-mi|--init}[options...]tripwire{-mc|--check}[options...][object1[object2...]]trip... 阅读全文

posted @ 2015-04-22 15:38 记不住 阅读(267) 评论(0) 推荐(0)

snort-2.9.3.1安装
摘要:Ubuntu10.10下载好snort-2.9.3.1.tar.gz包,开始安装:#./configure遇到ERROR:checkingforpfring_openin-lpcap...noERROR!Libpcaplibrary/headers(libpcap.a(or.so)/pcap.h)n... 阅读全文

posted @ 2015-04-22 15:35 记不住 阅读(1372) 评论(0) 推荐(0)

[转载] snort中文手册
摘要:转自:http://man.chinaunix.net/network/snort/Snortman.htmSnort中文手册摘要snort有三种工作模式:嗅探器、数据包记录器、网络入侵检测系统。嗅探器模式仅仅是从网络上读取数据包并作为连续不断的流显示在终端上。数据包记录器模式把数据包记录到硬盘上。... 阅读全文

posted @ 2015-04-22 15:33 记不住 阅读(390) 评论(1) 推荐(0)

wireshark_1.2.11安装
摘要:Ubuntu10.10和wireshark_1.2.11-6+squeeze7_i386.deb#sudodpkg-iwireshark_1.2.11-6+squeeze7_i386.debdpkg:依赖关系问题使得wireshark的配置工作不能继续:wireshark依赖于libc-ares2(... 阅读全文

posted @ 2015-04-22 15:26 记不住 阅读(303) 评论(0) 推荐(0)

Ubuntu 12.04 安装tpm-emulator
摘要:访问http://tpm-emulator.berlios.de/download.html,打开终端,输入svncheckoutsvn://svn.berlios.de/tpm-emulator/trunktpm-emulator自动下载到主文件夹下了。#cdtpm-emulator#mkdirb... 阅读全文

posted @ 2015-04-22 15:24 记不住 阅读(706) 评论(0) 推荐(0)

C++Primer类学习笔记
摘要:1) 静态类成员在类定义之外被初始化,也就是不能放到头文件中。例: 1 // 头文件中 2 class Account { 3 Account(double amount, const string &owner); 4 string owner() {return _owner;}... 阅读全文

posted @ 2015-04-22 15:21 记不住 阅读(158) 评论(0) 推荐(0)

[转载] GB2312和UTF8转换,URLencode,C++,windows
摘要:1 //UTF-8到GB2312的转换 2 char* U2G(const char* utf8) 3 { 4 int len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0); 5 wchar_t* wstr = new w... 阅读全文

posted @ 2015-04-22 14:43 记不住 阅读(346) 评论(0) 推荐(0)

[转载]虚拟键码对照表
摘要:转自:http://www.cnblogs.com/del/archive/2007/12/07/987364.html虚拟键码对应值对应键VK_LBUTTON1鼠标左键VK_RBUTTON2鼠标右键VK_CANCEL3CancelVK_MBUTTON4鼠标中键VK_XBUTTON15VK_XBUT... 阅读全文

posted @ 2015-04-17 14:11 记不住 阅读(187) 评论(0) 推荐(0)

导航