<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>稀饭的国度</title>
	<atom:link href="http://blog.thematice.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.thematice.com</link>
	<description>发现自己的脑袋不好使了，用blog来记录真的很好用。</description>
	<lastBuildDate>Tue, 23 Feb 2010 02:30:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>XtraDB storage engine release 1.0.6-9</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1040/xtradb-storage-engine-release-1-0-6-9.html</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1040/xtradb-storage-engine-release-1-0-6-9.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:21:36 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[XtraDB]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1040</guid>
		<description><![CDATA[// ";
            jQuery('#votePlaceholder').html('Vote on ' + thumb_up + '');
        });
// ]]&#62;
Dear Community,
As of today Release 9 of XtraDB storage engine is available.
The release includes following new features:

The release is base on 1.0.6 version of InnoDB plugin.
MySQL 5.1.42 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1040/xtradb-storage-engine-release-1-0-6-9.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sed1line_zh-CN</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:13:11 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[sed&swk&shell]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1035</guid>
		<description><![CDATA[ 
?Download shell.sh1
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
-------------------------------------------------------------------------
SED单行脚本快速参考（Unix 流编辑器）                       2005年12月29日
&#160;
英文标题：USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)
原标题：HANDY ONE-LINERS FOR SED (Unix stream editor)
&#160;
整理：Eric Pement  - 电邮：pemente[at]northpark[dot]edu         版本5.5
译者：Joe Hong  [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyISAM和InnoDB的插入性能测试</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1032/myisam%e5%92%8cinnodb%e7%9a%84%e6%8f%92%e5%85%a5%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95.html</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1032/myisam%e5%92%8cinnodb%e7%9a%84%e6%8f%92%e5%85%a5%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:09:16 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[压力]]></category>
		<category><![CDATA[测试]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1032</guid>
		<description><![CDATA[测试表结构： 
CREATE TABLE `test` ( 
  `ID` bigint(20) NOT NULL auto_increment, 
  `INT_A` int(11) default NULL, 
  `INT_B` int(11) default NULL, 
  `INT_C` int(11) default NULL, 
  `STRING_A` varchar(50) default NULL, 
  `STRING_B` varchar(250) default NULL, 
  `STRING_C` varchar(700) default NULL, 
  PRIMARY KEY  (`ID`), 
 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1032/myisam%e5%92%8cinnodb%e7%9a%84%e6%8f%92%e5%85%a5%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>端口扫描程序nmap使用手册</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1030/%e7%ab%af%e5%8f%a3%e6%89%ab%e6%8f%8f%e7%a8%8b%e5%ba%8fnmap%e4%bd%bf%e7%94%a8%e6%89%8b%e5%86%8c.html</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1030/%e7%ab%af%e5%8f%a3%e6%89%ab%e6%8f%8f%e7%a8%8b%e5%ba%8fnmap%e4%bd%bf%e7%94%a8%e6%89%8b%e5%86%8c.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:03:37 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[linx]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1030</guid>
		<description><![CDATA[其实还是建议看英文的man，对以后学习其他东西很有帮助的：）
摘要
　　nmap是一个网络探测和安全扫描程序，系统管理者和个人可以使用这个软件扫描大型的网络，获取那台主机正在运行以及提供什么服务等信息。nmap支持很多扫描技术，例如：UDP、TCP connect()、TCP SYN(半开扫描)、ftp代理(bounce攻击)、反向标志、ICMP、FIN、ACK扫描、圣诞树(Xmas Tree)、SYN扫描和null扫描。从扫描类型一节可以得到细节。nmap还提供了一些高级的特征，例如：通过TCP/IP协议栈特征探测操作系统类型，秘密扫描，动态延时和重传计算，并行扫描，通过并行ping扫描探测关闭的主机，诱饵扫描，避开端口过滤检测，直接RPC扫描(无须端口影射)，碎片扫描，以及灵活的目标和端口设定.

&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
1.名称
nmap-网络探测和安全扫描工具
2.语法
nmap [Scan Type(s)] [Options]
3.描述
　　nmap是一个网络探测和安全扫描程序，系统管理者和个人可以使用这个软件扫描大型的网络，获取那台主机正在运行以及提供什么服务等信息。nmap支持很多扫描技术，例如：UDP、TCP connect()、TCP SYN(半开扫描)、ftp代理(bounce攻击)、反向标志、ICMP、FIN、ACK扫描、圣诞树(Xmas Tree)、SYN扫描和null扫描。从扫描类型一节可以得到细节。nmap还提供了一些高级的特征，例如：通过TCP/IP协议栈特征探测操作系统类型，秘密扫描，动态延时和重传计算，并行扫描，通过并行ping扫描探测关闭的主机，诱饵扫描，避开端口过滤检测，直接RPC扫描(无须端口影射)，碎片扫描，以及灵活的目标和端口设定。
　　为了提高nmap在non-root状态下的性能，软件的设计者付出了很大的努力。很不幸，一些内核界面(例如raw socket)需要在root状态下使用。所以应该尽可能在root使用nmap。
　　nmap运行通常会得到被扫描主机端口的列表。nmap总会给出well known端口的服务名(如果可能)、端口号、状态和协议等信息。每个端口的状态有：open、filtered、unfiltered。open状态意味着目标主机能够在这个端口使用accept()系统调用接受连接。filtered状态表示：防火墙、包过滤和其它的网络安全软件掩盖了这个端口，禁止 nmap探测其是否打开。unfiltered表示：这个端口关闭，并且没有防火墙/包过滤软件来隔离nmap的探测企图。通常情况下，端口的状态基本都是unfiltered状态，只有在大多数被扫描的端口处于filtered状态下，才会显示处于unfiltered状态的端口。
　　根据使用的功能选项，nmap也可以报告远程主机的下列特征：使用的操作系统、TCP序列、运行绑定到每个端口上的应用程序的用户名、DNS名、主机地址是否是欺骗地址、以及其它一些东西。
4.功能选项
　　功能选项可以组合使用。一些功能选项只能够在某种扫描模式下使用。nmap会自动识别无效或者不支持的功能选项组合，并向用户发出警告信息。
　　如果你是有经验的用户，可以略过结尾的示例一节。可以使用nmap -h快速列出功能选项的列表。
4.1 扫描类型
　　-sT
　　TCP connect()扫描：这是最基本的TCP扫描方式。connect()是一种系统调用，由操作系统提供，用来打开一个连接。如果目标端口有程序监听， connect()就会成功返回，否则这个端口是不可达的。这项技术最大的优点是，你勿需root权限。任何UNIX用户都可以自由使用这个系统调用。这种扫描很容易被检测到，在目标主机的日志中会记录大批的连接请求以及错误信息。
　　-sS
　　TCP同步扫描(TCP SYN)：因为不必全部打开一个TCP连接，所以这项技术通常称为半开扫描(half-open)。你可以发出一个TCP同步包(SYN)，然后等待回应。如果对方返回SYN&#124;ACK(响应)包就表示目标端口正在监听；如果返回RST数据包，就表示目标端口没有监听程序；如果收到一个SYN&#124;ACK包，源主机就会马上发出一个RST(复位)数据包断开和目标主机的连接，这实际上有我们的操作系统内核自动完成的。这项技术最大的好处是，很少有系统能够把这记入系统日志。不过，你需要root权限来定制SYN数据包。
　　-sF -sF -sN
　　秘密FIN数据包扫描、圣诞树(Xmas Tree)、空(Null)扫描模式：即使SYN扫描都无法确定的情况下使用。一些防火墙和包过滤软件能够对发送到被限制端口的SYN数据包进行监视，而且有些程序比如synlogger和courtney能够检测那些扫描。这些高级的扫描方式可以逃过这些干扰。这些扫描方式的理论依据是：关闭的端口需要对你的探测包回应RST包，而打开的端口必需忽略有问题的包(参考RFC 793第64页)。FIN扫描使用暴露的FIN数据包来探测，而圣诞树扫描打开数据包的FIN、URG和PUSH标志。不幸的是，微软决定完全忽略这个标准，另起炉灶。所以这种扫描方式对Windows95/NT无效。不过，从另外的角度讲，可以使用这种方式来分别两种不同的平台。如果使用这种扫描方式可以发现打开的端口，你就可以确定目标注意运行的不是Windows系统。如果使用-sF、-sX或者-sN扫描显示所有的端口都是关闭的，而使用SYN扫描显示有打开的端口，你可以确定目标主机可能运行的是Windwos系统。现在这种方式没有什么太大的用处，因为nmap有内嵌的操作系统检测功能。还有其它几个系统使用和windows同样的处理方式，包括Cisco、BSDI、HP/UX、MYS、IRIX。在应该抛弃数据包时，以上这些系统都会从打开的端口发出复位数据包。
　　-sP
　　ping扫描：有时你只是想知道此时网络上哪些主机正在运行。通过向你指定的网络内的每个IP地址发送ICMP echo请求数据包，nmap就可以完成这项任务。如果主机正在运行就会作出响应。不幸的是，一些站点例如：microsoft.com阻塞ICMP echo请求数据包。然而，在默认的情况下nmap也能够向80端口发送TCP ack包，如果你收到一个RST包，就表示主机正在运行。nmap使用的第三种技术是：发送一个SYN包，然后等待一个RST或者SYN/ACK包。对于非root用户，nmap使用connect()方法。
　　在默认的情况下(root用户)，nmap并行使用ICMP和ACK技术。
　　注意，nmap在任何情况下都会进行ping扫描，只有目标主机处于运行状态，才会进行后续的扫描。如果你只是想知道目标主机是否运行，而不想进行其它扫描，才会用到这个选项。
　　-sU
　　UDP扫描：如果你想知道在某台主机上提供哪些UDP(用户数据报协议,RFC768)服务，可以使用这种扫描方法。nmap首先向目标主机的每个端口发出一个0字节的UDP包，如果我们收到端口不可达的ICMP消息，端口就是关闭的，否则我们就假设它是打开的。
　　有些人可能会想UDP扫描是没有什么意思的。但是，我经常会想到最近出现的solaris rpcbind缺陷。rpcbind隐藏在一个未公开的UDP端口上，这个端口号大于32770。所以即使端口111(portmap的众所周知端口号) 被防火墙阻塞有关系。但是你能发现大于30000的哪个端口上有程序正在监听吗?使用UDP扫描就能！cDc Back Orifice的后门程序就隐藏在Windows主机的一个可配置的UDP端口中。不考虑一些通常的安全缺陷，一些服务例如:snmp、tftp、NFS 使用UDP协议。不幸的是，UDP扫描有时非常缓慢，因为大多数主机限制ICMP错误信息的比例(在RFC1812中的建议)。例如，在Linux内核中 (在net/ipv4/icmp.h文件中)限制每4秒钟只能出现80条目标不可达的ICMP消息，如果超过这个比例，就会给1/4秒钟的处罚。 solaris的限制更加严格，每秒钟只允许出现大约2条ICMP不可达消息，这样，使扫描更加缓慢。nmap会检测这个限制的比例，减缓发送速度，而不是发送大量的将被目标主机丢弃的无用数据包。
　　不过Micro$oft忽略了RFC1812的这个建议，不对这个比例做任何的限制。所以我们可以能够快速扫描运行Win95/NT的主机上的所有65K个端口。
　　-sA
　　ACK扫描：这项高级的扫描方法通常用来穿过防火墙的规则集。通常情况下，这有助于确定一个防火墙是功能比较完善的或者是一个简单的包过滤程序，只是阻塞进入的SYN包。
　　这种扫描是向特定的端口发送ACK包(使用随机的应答/序列号)。如果返回一个RST包，这个端口就标记为unfiltered状态。如果什么都没有返回，或者返回一个不可达ICMP消息，这个端口就归入filtered类。注意，nmap通常不输出unfiltered的端口，所以在输出中通常不显示所有被探测的端口。显然，这种扫描方式不能找出处于打开状态的端口。
　　-sW
　　对滑动窗口的扫描：这项高级扫描技术非常类似于ACK扫描，除了它有时可以检测到处于打开状态的端口，因为滑动窗口的大小是不规则的，有些操作系统可以报告其大小。这些系统至少包括：某些版本的AIX、Amiga、BeOS、BSDI、Cray、Tru64 UNIX、DG/UX、OpenVMS、Digital UNIX、OpenBSD、OpenStep、QNX、Rhapsody、SunOS 4.x、Ultrix、VAX、VXWORKS。从nmap-hackers邮件3列表的文档中可以得到完整的列表。
　　-sR
　　RPC扫描。这种方法和nmap的其它不同的端口扫描方法结合使用。选择所有处于打开状态的端口向它们发出SunRPC程序的NULL命令，以确定它们是否是RPC端口，如果是，就确定是哪种软件及其版本号。因此你能够获得防火墙的一些信息。诱饵扫描现在还不能和RPC扫描结合使用。
　　-b
　　FTP反弹攻击(bounce attack):FTP协议(RFC 959)有一个很有意思的特征，它支持代理FTP连接。也就是说，我能够从evil.com连接到FTP服务器target.com，并且可以要求这台 FTP服务器为自己发送Internet上任何地方的文件！1985年，RFC959完成时，这个特征就能很好地工作了。然而，在今天的Internet 中，我们不能让人们劫持FTP服务器，让它向Internet上的任意节点发送数据。如同Hobbit在1995年写的文章中所说的，这个协议&#8221;能够用来做投递虚拟的不可达邮件和新闻，进入各种站点的服务器,填满硬盘，跳过防火墙，以及其它的骚扰活动，而且很难进行追踪&#8221;。我们可以使用这个特征，在一台代理FTP服务器扫描TCP端口。因此，你需要连接到防火墙后面的一台FTP服务器，接着进行端口扫描。如果在这台FTP服务器中有可读写的目录，你还可以向目标端口任意发送数据(不过nmap不能为你做这些)。
　　传递给-b功能选项的参数是你要作为代理的FTP服务器。语法格式为：
　　-b username:password@server:port。
　　除了server以外，其余都是可选的。如果你想知道什么服务器有这种缺陷，可以参考我在Phrack 51发表的文章。还可以在nmap的站点得到这篇文章的最新版本。
4.2 通用选项
　　这些内容不是必需的，但是很有用。
　　-P0
　　在扫描之前，不必ping主机。有些网络的防火墙不允许ICMP echo请求穿过，使用这个选项可以对这些网络进行扫描。microsoft.com就是一个例子，因此在扫描这个站点时，你应该一直使用-P0或者-PT 80选项。
　　-PT
　　扫描之前，使用TCP ping确定哪些主机正在运行。nmap不是通过发送ICMP echo请求包然后等待响应来实现这种功能，而是向目标网络(或者单一主机)发出TCP ACK包然后等待回应。如果主机正在运行就会返回RST包。只有在目标网络/主机阻塞了ping包，而仍旧允许你对其进行扫描时，这个选项才有效。对于非 root用户，我们使用connect()系统调用来实现这项功能。使用-PT 来设定目标端口。默认的端口号是80，因为这个端口通常不会被过滤。
　　-PS
　　对于root用户，这个选项让nmap使用SYN包而不是ACK包来对目标主机进行扫描。如果主机正在运行就返回一个RST包(或者一个SYN/ACK包)。
　　-PI
　　设置这个选项，让nmap使用真正的ping(ICMP echo请求)来扫描目标主机是否正在运行。使用这个选项让nmap发现正在运行的主机的同时，nmap也会对你的直接子网广播地址进行观察。直接子网广播地址一些外部可达的IP地址，把外部的包转换为一个内向的IP广播包，向一个计算机子网发送。这些IP广播包应该删除，因为会造成拒绝服务攻击(例如 smurf)。
　　-PB
　　这是默认的ping扫描选项。它使用ACK(-PT)和ICMP(-PI)两种扫描类型并行扫描。如果防火墙能够过滤其中一种包，使用这种方法，你就能够穿过防火墙。
　　-O
　　这个选项激活对TCP/IP指纹特征(fingerprinting)的扫描，获得远程主机的标志。换句话说，nmap使用一些技术检测目标主机操作系统网络协议栈的特征。nmap使用这些信息建立远程主机的指纹特征，把它和已知的操作系统指纹特征数据库做比较，就可以知道目标主机操作系统的类型。
　　-I
　　这个选项打开nmap的反向标志扫描功能。Dave Goldsmith 1996年向bugtap发出的邮件注意到这个协议，ident协议(rfc 1413)允许使用TCP连接给出任何进程拥有者的用户名，即使这个进程并没有初始化连接。例如，你可以连接到HTTP端口，接着使用identd确定这个服务器是否由root用户运行。这种扫描只能在同目标端口建立完全的TCP连接时(例如：-sT扫描选项)才能成功。使用-I选项是，远程主机的 identd精灵进程就会查询在每个打开的端口上监听的进程的拥有者。显然，如果远程主机没有运行identd程序，这种扫描方法无效。
　　-f
　　这个选项使nmap使用碎片IP数据包发送SYN、FIN、XMAS、NULL。使用碎片数据包增加包过滤、入侵检测系统的难度，使其无法知道你的企图。不过，要慎重使用这个选项！有些程序在处理这些碎片包时会有麻烦，我最喜欢的嗅探器在接受到碎片包的头36个字节时，就会发生 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1030/%e7%ab%af%e5%8f%a3%e6%89%ab%e6%8f%8f%e7%a8%8b%e5%ba%8fnmap%e4%bd%bf%e7%94%a8%e6%89%8b%e5%86%8c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>6款 Twitter 的 WordPress插件</title>
		<link>http://blog.thematice.com/html/y2010/02/23/1026/6%e6%ac%be-twitter-%e7%9a%84-wordpress%e6%8f%92%e4%bb%b6.html</link>
		<comments>http://blog.thematice.com/html/y2010/02/23/1026/6%e6%ac%be-twitter-%e7%9a%84-wordpress%e6%8f%92%e4%bb%b6.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 01:57:52 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[碎碎念]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1026</guid>
		<description><![CDATA[6款 Twitter 的 WordPress插件
Twitter 作为一款微博客的网络社会化服务，正受到越来越多人的追捧，不管是美国大选时奥巴马通过Twitter开展网络宣传方式还是在最近的印度恐怖袭击中，Twitter 全球 600 万用户散发了大量目击资料和最新消息，都说明Twitter作为一种网络新宠正在渐渐进入主流视线。而Twitter也一直是WPer的常用服务，因为可能大多数的blogger会把自己成熟的想法或观点发表在自己的博客，而把一些零碎的思索和思绪张贴在Twitter上。所以今天介绍的6款插件对喜欢Twitter的WPer一定很实用。


Twitter for WordPress
在博客上显示你最新的 Twitter 更新，如果你有使用 WordPress 的 Widget 功能的话，可直接在后台添加此插件的 Widget 到你博客的侧边栏，当然你也可以使用下载代码来显示你的 Twitter 消息:
下载 Twitter for WordPress
twitterRSS WordPress plugin
此款插件通过获取 Twitter 的 Rss 地址来更新你的 Twitter 消息，而且把他显示在你的博客上。
下载 twitterRSS WordPress plugin
Twitter Tools
此插件能让你的 Twitter 和 WordPress 完全连在一起，你可选择当在 WordPress 发布新文章时，同时向 Twitter 发布一条关于你文章的消息。或者是当你在 Twitter 发布一条新的消息，同时在你的博客创建一篇新的文章，同时可指定文章的分类和标签。当然也能在博客侧边栏上显示你最新的 Twitter 消息。
下载 Twitter Tools
Twitpress
向你的好友或是 followers 发送一条通知消息，当你的博客发表新的文章或是有所编辑时。
下载 Twitpress
Twitter Widget Pro
一款侧边栏的 Wiget [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/23/1026/6%e6%ac%be-twitter-%e7%9a%84-wordpress%e6%8f%92%e4%bb%b6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows netstat 查看端口 进程占用</title>
		<link>http://blog.thematice.com/html/y2010/02/08/1004/windows-netstat-%e6%9f%a5%e7%9c%8b%e7%ab%af%e5%8f%a3-%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8.html</link>
		<comments>http://blog.thematice.com/html/y2010/02/08/1004/windows-netstat-%e6%9f%a5%e7%9c%8b%e7%ab%af%e5%8f%a3-%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 07:30:20 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[win]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1004</guid>
		<description><![CDATA[目标：在Windows环境下，用netstat命令查看某个端口号是否占用，为哪个进程所占用.
操作：操作分为两步：（1）查看该端口被那个PID所占用;方法一：有针对性的查看端口，使用命令
Netstat –ano&#124;findstr “&#60;端口号&#62;”,如图，最后一列为PID。图中的端口号为1068，所对应的PID为3840。

                     (a)图
方法二：查看所有的，然后找到对应的端口和PID。

(b)图
第一幅图中的5列就是上面(a)图对应的5列
（2）查看该PID对应的进程名称。
方法一：一直用命令查找，tasklist&#124;findstr “&#60;PID号&#62;”

 (c)图
从 (c)图 可以看出，PID为3840所对应的进程名字为msnmsgr.exe。
方法二：用任务管理器查看。
调出任务管理器，选择列，如d图。
    
             (d)图
       查看PID对应的进程名称。如(e)图中的msnmsgr.exe
 

   [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/02/08/1004/windows-netstat-%e6%9f%a5%e7%9c%8b%e7%ab%af%e5%8f%a3-%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>图片服务器的linux文件系统选型[转]</title>
		<link>http://blog.thematice.com/html/y2010/01/28/611/%e5%9b%be%e7%89%87%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e9%80%89%e5%9e%8b%e8%bd%ac.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/28/611/%e5%9b%be%e7%89%87%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e9%80%89%e5%9e%8b%e8%bd%ac.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 16:01:09 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[文件系统]]></category>
		<category><![CDATA[系统管理]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=611</guid>
		<description><![CDATA[  近来工作中要构建一个能够存储10T级左右别图片文件的图片存储系统，日增长6G左右的图片。面对这个系统，我又碰到了那个老问题，就是文件系统的选型。早在两年前，我就针对linux系统中几种流行的文件系统进行过考察和测试工作。当时的reiserfs 3.x 是让我非常满意的文件系统，reiserfs文件系统没有inode的局限，使用B+tree的索引形势来查找文件，效率是非常德高，特别是在小文件的存储效率上明显超出ext3很多（iozone测试佐证）。格式化效率和支持最大8T的文件系统容量上也都非常的不错，只是mount reiserfs的时候稍微显得有些缓慢。当时的reiserfs 3.x版本是对于linux 图片文件系统非常理想的选择。

     然而，就在我们期盼着reiser4的成熟之时，namesys的灵魂，reiser之父 Hans Reiser 因为感情问题翻了错误。（程序员还是应该多关心人家啊！）谋杀罪名成立，被判入狱。在我这次选型的时候，还是首先选择了reiser4，但是由于reiser4没有被众多的linux kernel引入，虽然据说官方网站有介绍用reiserfs 3.x的内核模块修改后来支持reiser4的文章，但是在我想做测试的时候官方网站也挂掉了，目前reiser4的小组仍然保持开发，但是有评价代码效率和质量都不够理想。个人能力有限，在AS5 64bit系统上尝试编译reiserfs 3.19的progs的时候也碰到了问题，没有人维护的代码我最终还是放弃了选型候选。
     那么让我们来看看现在我们还有什么可以选择吧。ext3 ext4 jfs xfs这四种文件系统中ext4现在还只有beta版本，所以暂时放弃列入候选，不过目前从口碑上来看ext4并没有什么让大家眼前一亮的性能提升。下面再来看xfs，这个文件系统诞生于sgi图形工作站上，被移植到linux上依赖表现还是比较稳定的，特别是在500M以上大文件的IO性能上非常突出，然而，我们今天要选型的是图片文件系统，我们常用的网络图片尺寸在16K~256K之间。而且xfs的大量删除效率非常差，所以在这个系统的选择中，我也放弃了xfs，备份系统上针对大文件的存储到是非常不错的选择。
     剩下就是ext3和jfs了，ext3大家再熟悉不过了，一个中庸的文件系统，但是广为流传。jfs是来自于IBM的手笔，早在5，6年前在AIX上面使用它的时候，我就对他的动态伸缩扩展能力表示钦佩，下面我们用测试数据来说明我们的选择吧。在展示结果之前，我先介绍一下两个文件系统，ext3最大支持8T的linux文件系统，是一个基于预分配inode的文件系统，由于linux文件系统最大的block为4K，所以他在linux最大支持8T，另外也是由于它的inode是预分配死的。所以如果你大量存储小于4K的文件，你文件系统的空间利用率会非常的低。从实践中大家也都有所了解吧？用df -h看看你们的大文件系统吧，你们就清楚了。另外在创建6.9T的测试ext3文件系统的时候，我实在无法忍受创建inode table的速度，6.9T文件系统，要创建5万多个inode table 在一台双志强，4G内存的 HP DL 360G5 RedHat AS5 64的服务器上，花去了足足15分钟以上去做inode table的创建，这一点实在是难以忍受。相反的同样的环境条件下jfs的创建速度不超过5S，这和他的动态文件系统，动态inode创建的设计优势不无关系。另外jfs是64bit unix上面移植而来，真正的64bit文件系统，可以支持最大512T的文件系统，动态扩展收缩文件系统。这些优势都是ext3所不能媲美的。
测试命令/usr/local/bin/iozone -g 256k -n 16k -a  针对16K致256K的文件测试。
Using maximum file size [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/28/611/%e5%9b%be%e7%89%87%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e9%80%89%e5%9e%8b%e8%bd%ac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux超级终端minicom设置</title>
		<link>http://blog.thematice.com/html/y2010/01/27/635/linux%e8%b6%85%e7%ba%a7%e7%bb%88%e7%ab%afminicom%e8%ae%be%e7%bd%ae.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/27/635/linux%e8%b6%85%e7%ba%a7%e7%bb%88%e7%ab%afminicom%e8%ae%be%e7%bd%ae.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:59:07 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[minicom]]></category>
		<category><![CDATA[超级终端]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=635</guid>
		<description><![CDATA[linux minicom 是linux 下串口调试工具，类似于windows下的超级终端。
一、安装minicom：
确认一下系统是否已经安装minicom，如果没有请自行安装。
[root@web Server]# rpm -q minicom
minicom-2.1-3

二、配置（需要root用户）
执行minicom –s后出现配置界面
       ==========================
[configuration]
Filename and paths
File transfer and protocols
Serial port setup
Modem and dialing
Screen and keyboard
Save setup as df1
Save setup as……
Exit
Exit from minicom
       ==========================
使用向下键选择serial port setup（串口设置），按回车出现设置界面
==========================
   A — Serial Device: /dev/ttyS0
   B — lockfile [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/27/635/linux%e8%b6%85%e7%ba%a7%e7%bb%88%e7%ab%afminicom%e8%ae%be%e7%bd%ae.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用awk进行大小写转换</title>
		<link>http://blog.thematice.com/html/y2010/01/27/938/%e4%bd%bf%e7%94%a8awk%e8%bf%9b%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%86%99%e8%bd%ac%e6%8d%a2.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/27/938/%e4%bd%bf%e7%94%a8awk%e8%bf%9b%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%86%99%e8%bd%ac%e6%8d%a2.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:58:08 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[sed&swk&shell]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[echo]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=938</guid>
		<description><![CDATA[echo abc&#124;tr a-z A-Z
文件大小写转换
awk &#8216;{print tolower($1)}&#8217; up.txt
awk &#8216;{print toupper($1)}&#8217; up.txt 

]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/27/938/%e4%bd%bf%e7%94%a8awk%e8%bf%9b%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%86%99%e8%bd%ac%e6%8d%a2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUNC &#124; Fedora特性-Smolt 解决硬件兼容烦恼</title>
		<link>http://blog.thematice.com/html/y2010/01/27/987/fedora%e7%89%b9%e6%80%a7-smolt-%e8%a7%a3%e5%86%b3%e7%a1%ac%e4%bb%b6%e5%85%bc%e5%ae%b9%e7%83%a6%e6%81%bc.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/27/987/fedora%e7%89%b9%e6%80%a7-smolt-%e8%a7%a3%e5%86%b3%e7%a1%ac%e4%bb%b6%e5%85%bc%e5%ae%b9%e7%83%a6%e6%81%bc.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:44:21 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[certmaster]]></category>
		<category><![CDATA[func]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[python-ctypes]]></category>
		<category><![CDATA[python-paste]]></category>
		<category><![CDATA[python-simplejson]]></category>
		<category><![CDATA[smolt]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=987</guid>
		<description><![CDATA[    许多Linux爱好者购买新电脑时首先考虑的就是硬件配置是否与Linux系统兼容，实际上更多的人只是购买自己喜欢的外形和配置的电脑硬件，当他们回家安装Linux发行版时却发现很多硬件不能被系统识别和正确支持。情理之中，这些人可能就会到论坛和别人抱怨Linux是一个如何土的系统，“怎么连xx都不支持？”。

    如果有一个软件能够跟踪和记录所有硬件对Linux发行版的支持和兼容性，那对用户将是一个非常体贴和诱人的事。在Fedora里，你的需求就能够得到满足。

    Fedora里面有个叫做Smolt的项目，他的详细描述可以在http://smolts.org/wiki/Main_Page 得到，已经收集超过7万9000个硬件配置信息。所有数据都可以在Smolt网站看到，这些配置信息将用于促进厂商合作，改进用户的硬件使用体验，评测系统和更好的报告工具，并为常用硬件提高开发和质量检测优先级。访问Smolt主页：http://smolt.fedoraproject.org/
Smolt and
Func: Fedora Unified Network Controller
Smolt是一款常用硬件剖析工具, 现在已经收集超过7万9000个硬件配置信息. 所有数据都可以在Smolt网站看到. 这些配置信息将用于促进厂商合作, 改进用户的硬件使用体验, 评测系统和更好的报告工具, 并为常用硬件提高开发和质量检测优先级
当前状态:
http://smolt.fedoraproject.org/
项目主页:
https://hosted.fedoraproject.org/projects/smolt/
https://fedorahosted.org/func/wiki

]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/27/987/fedora%e7%89%b9%e6%80%a7-smolt-%e8%a7%a3%e5%86%b3%e7%a1%ac%e4%bb%b6%e5%85%bc%e5%ae%b9%e7%83%a6%e6%81%bc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUNC &#124; 终于找到问题了(about func)  [转载]</title>
		<link>http://blog.thematice.com/html/y2010/01/27/976/%e7%bb%88%e4%ba%8e%e6%89%be%e5%88%b0%e9%97%ae%e9%a2%98%e4%ba%86about-func-%e8%bd%ac%e8%bd%bd.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/27/976/%e7%bb%88%e4%ba%8e%e6%89%be%e5%88%b0%e9%97%ae%e9%a2%98%e4%ba%86about-func-%e8%bd%ac%e8%bd%bd.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:37:17 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[certmaster]]></category>
		<category><![CDATA[func]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[python-ctypes]]></category>
		<category><![CDATA[python-paste]]></category>
		<category><![CDATA[python-simplejson]]></category>
		<category><![CDATA[smolt]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=976</guid>
		<description><![CDATA[故障现象
1、在客户端安装好func及certmaster，配好certmaster参数。
2、service funcd start，端口及进程都起来了。
3、在certmaster server 运行certmaster-ca &#8211;list死活看不到客户端的主机名。

排查过程
1、将certmaster的主机名换成IP，无效。
2、更新客户端的func及certmaster版本，无效。
3、运行/usr/bin/certmaster-request，提示：socket.error: (111, &#8216;Connection refused&#8217;)，将certmaster修改成localhost就正常了。原因可以就在这里，因为certmaster是双向的，发现在/etc/hosts中有主机名指向127.0.0.1，此时连接不上certmaster server了。将/etc/hosts中的主机名删除，再用/usr/bin/certmaster-request来测试连接，成功！！在certmaster也能看到主机了，大功告成。 

]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/27/976/%e7%bb%88%e4%ba%8e%e6%89%be%e5%88%b0%e9%97%ae%e9%a2%98%e4%ba%86about-func-%e8%bd%ac%e8%bd%bd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUNC &#124; FUNC模块学习笔记[转载]</title>
		<link>http://blog.thematice.com/html/y2010/01/27/974/func%e6%a8%a1%e5%9d%97%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e8%bd%ac%e8%bd%bd.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/27/974/func%e6%a8%a1%e5%9d%97%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e8%bd%ac%e8%bd%bd.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:34:58 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[certmaster]]></category>
		<category><![CDATA[func]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[python-ctypes]]></category>
		<category><![CDATA[python-paste]]></category>
		<category><![CDATA[python-simplejson]]></category>
		<category><![CDATA[smolt]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=974</guid>
		<description><![CDATA[* BridgeModule &#8212; Allows for simple network bridge management
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
功能：操作网桥
方法：
list() Returns a dictionary containing the bridges and their connected interfaces.
add_bridge(brname) Creates a new bridge named brname.
add_interface(brname, ifname) Adds interface ifname to bridge brname.
delete_bridge(brname) Deletes bridge brname.
delete_interface(brname, ifname) Removes interface ifname from bridge brname.
add_promisc_bridge(brname, ifname) Creates a new bridge brname, attaches interface ifname to it and sets [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/27/974/func%e6%a8%a1%e5%9d%97%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e8%bd%ac%e8%bd%bd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUNC &#124; Func：系统管理员的终极利器</title>
		<link>http://blog.thematice.com/html/y2010/01/27/971/func%ef%bc%9a%e7%b3%bb%e7%bb%9f%e7%ae%a1%e7%90%86%e5%91%98%e7%9a%84%e7%bb%88%e6%9e%81%e5%88%a9%e5%99%a8.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/27/971/func%ef%bc%9a%e7%b3%bb%e7%bb%9f%e7%ae%a1%e7%90%86%e5%91%98%e7%9a%84%e7%bb%88%e6%9e%81%e5%88%a9%e5%99%a8.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:26:52 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[certmaster]]></category>
		<category><![CDATA[func]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[python-ctypes]]></category>
		<category><![CDATA[python-paste]]></category>
		<category><![CDATA[python-simplejson]]></category>
		<category><![CDATA[smolt]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=971</guid>
		<description><![CDATA[我们经常需要编写内容重复的脚本，使用大同小异的正则表达式，解析花样百出的各种命令输出。我们为了实现操作审计，建立了命令行监控系统，但实际上只能起到事后追查责任的作用。我们想要监控所有新增系统，但完全依靠人执行的制度流程，难免会出现疏漏。
这些令系统管理员头疼不已的问题，可能已经有了终极解决方案。Red Hat 最近正式发布的 Fedora 统一网络控制器 Func（Fedora Unified Network Controller https://fedorahosted.org/func），就是为了解决这一系列统一管理监控问题，而设计开发的系统管理基础框架。

Func 有一个长长的功能特性列表，大致要点如下：
 • Func 可以让你在主控机上一次管理任意多台服务器，或任意多个服务器组。
 • Func 基于 Certmaster（https://fedorahosted.org/certmaster/）建立了 Master &#8211; Slaves 主从 SSL 证书管控体系，可以将证书自动分发到所有受控服务器。新装服务器也可以在 Kickstart 文件中自动安装 Func，自动注册到主控服务器。
 • Func 命令行可以直接发送远程命令或者远程获取数据。
 • Func 开发者已经完成了大多数常用任务模块的开发：CommandModule、FileTrackerModule、JBossModule、 IPtablesModule、HardwareModule、MountModule、NagiosCheck、NetappModule、 NetworkTest、ProcessModule、ServiceModule、SysctlModule、RebootModule、 RpmModule、VirtModule、YumModule 等等，这些模块的作用都可以顾名思义，或者参考： https://fedorahosted.org/func/wiki/ModulesList 。
 • 任何人都可以通过 Func 提供的 Python API 轻松编写自己的模块，以实现具体功能扩展。而且任何 Func 命令行能完成的工作，都能通过 API 编程实现。
 • Func 通讯基于 XMLRPC 和 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/27/971/func%ef%bc%9a%e7%b3%bb%e7%bb%9f%e7%ae%a1%e7%90%86%e5%91%98%e7%9a%84%e7%bb%88%e6%9e%81%e5%88%a9%e5%99%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用script记录Linux终端会话</title>
		<link>http://blog.thematice.com/html/y2010/01/27/968/%e4%bd%bf%e7%94%a8script%e8%ae%b0%e5%bd%95linux%e7%bb%88%e7%ab%af%e4%bc%9a%e8%af%9d.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/27/968/%e4%bd%bf%e7%94%a8script%e8%ae%b0%e5%bd%95linux%e7%bb%88%e7%ab%af%e4%bc%9a%e8%af%9d.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:15:33 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2010/01/27/968/%e4%bd%bf%e7%94%a8script%e8%ae%b0%e5%bd%95linux%e7%bb%88%e7%ab%af%e4%bc%9a%e8%af%9d.html</guid>
		<description><![CDATA[许多系统管理员都知道保留一个包含各种任务、配置改变等活动日志的重要性。对一些组织而言，保留“我做了这件事”或“约翰做了那件事”的简单日志就已足够；但另一些组织则需要记录所有改变。

对终端输出进行复制粘贴可能非常乏味，我们使用一个叫做script的鲜为人知的程序来解决这个问题，它是大多数Linux产品util-linux软件包的一部分。
script记录会话的一切内容：你输入的内容和你看到的内容。它甚至记录颜色；因此如果你的命令提示符或程序输出中包含颜色，script将记录它。
要使用script，简单执行以下命令：
$ script
默认情况下，它向当前目录的typescript文件中写入内容。然后，你输入的一切内容都被记录到那个文件中。要往另一个文件中记录日志，只需使用script/path/to/file命令。
完成记录后，输入exit退出。这个命令将关闭script会话并保存文件。现在你可以使用cat或其它任何程序来检查日志文件。
使用script的缺点在于，它记录所有特殊的字符；因此你输入的文件中将充满控制字符和ANSI转义序列。你可以在script中使用一个非常简单的shell来解决这个问题：
$ SHELL=/bin/sh PS1=&#8221;$ &#8221; script
使用script时，不要使用交互式程序或处理窗口的程序，如vior top。它们会破坏会话的输出结果。另外，日志文件会记录你使用的任何命令行程序和你完成一项任务所采取的步骤。如果你需要在脚本中编辑一个文件，考虑退出script会话，然后用script –a（它在旧会话后添加新会话）对文件进行编辑后再重新启动会话。
SCRIPT(1)                 BSD General Commands Manual                SCRIPT(1)
NAME
     script &#8211; make typescript of terminal session
SYNOPSIS
 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/27/968/%e4%bd%bf%e7%94%a8script%e8%ae%b0%e5%bd%95linux%e7%bb%88%e7%ab%af%e4%bc%9a%e8%af%9d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUNC &#124; Fedora 统一网络控制器 func 介绍</title>
		<link>http://blog.thematice.com/html/y2010/01/22/965/fedora-%e7%bb%9f%e4%b8%80%e7%bd%91%e7%bb%9c%e6%8e%a7%e5%88%b6%e5%99%a8-func-%e4%bb%8b%e7%bb%8d.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/22/965/fedora-%e7%bb%9f%e4%b8%80%e7%bd%91%e7%bb%9c%e6%8e%a7%e5%88%b6%e5%99%a8-func-%e4%bb%8b%e7%bb%8d.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 09:16:41 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[func]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[certmaster]]></category>
		<category><![CDATA[python-ctypes]]></category>
		<category><![CDATA[python-paste]]></category>
		<category><![CDATA[python-simplejson]]></category>
		<category><![CDATA[smolt]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=965</guid>
		<description><![CDATA[ 
1. Func 简介:

Fedora 统一网络控制器
Fedora Unified Network Controller
可以用在RedHat系列产品上
是为了解决统一管理监控问题，而设计开发的系统管理基础框架
 
1.1. Func 功能特性

Func 可以让你在主控机上一次管理任意多台服务器，或任意多个服务器组
Func 命令行可以直接发送远程命令或者远程获取数据
Func 通讯基于 XMLRPC 和 SSL 标准协议
新装服务器也可以在 Kickstart 文件中自动安装 Func，自动注册到主控服务器
 
1.2. Func 基于主控端与被控端

建立了 Master &#8211; Slaves 主从 SSL 证书管控体系，可以将证书自动分发到所有受控服务器
 
1.3. Func 网络架构图 

 
1.4. Func 安装

主控端与被控端都需安装&#160; &#160;Certmaster&#160;&#160;Func
下载：[http://download.fedora.redhat.com/pub/epel/]
 
1.5. Func 服务端配置

/etc/certmaster/certmaster.conf 编辑，允许autosign == yes
让certmaster启动
 
1.6. Func 客户端配置

在 /etc/certmaster/minion.conf 指定certmaster服务器
让funcd服务器启动
 
1.7. 查看客户端是否注册成功

在服务端上看有多少台客户端注册&#160; &#160;certmaster-ca &#8211;list-sign&#160;&#160;或&#160;&#160;ls /var/lib/certmaster/certmaster/certs/
 
1.8. [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/22/965/fedora-%e7%bb%9f%e4%b8%80%e7%bd%91%e7%bb%9c%e6%8e%a7%e5%88%b6%e5%99%a8-func-%e4%bb%8b%e7%bb%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下如何安装 *.src.rpm 这样格式的软件包</title>
		<link>http://blog.thematice.com/html/y2010/01/22/960/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-src-rpm-%e8%bf%99%e6%a0%b7%e6%a0%bc%e5%bc%8f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/22/960/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-src-rpm-%e8%bf%99%e6%a0%b7%e6%a0%bc%e5%bc%8f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 07:56:08 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpmbuild]]></category>
		<category><![CDATA[src.rpm]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=960</guid>
		<description><![CDATA[有些软件包是以.src.rpm结尾的, 这类软件包是包含了源代码的rpm包, 在安装时需要进行编译. 这类软件包有两种安装方法.
方法一:

?Download shell.sh1
2
3
4
5
6
7
1. 执行 rpm -i your-package.src.rpm
2. cd /usr/src/redhat/SPECS
3. rpmbuild -bp your-package.specs 一个和软件包同名的specs文件
4. cd /usr/src/redhat/BUILD/your-package/ 一个和软件包同名的目录
5. ./configure 这一步和编译普通的源码软件一样, 可以加上参数, 也可以具体看该目录下的INSTALL文件, 按照指导进行安装
6. make
7. make install


方法二:

?Download shell.sh1
2
3
4
5
6
1. 执行 rpm -i you-package.src.rpm
2. cd /usr/src/redhat/SPECS
前两步和方法一相同.
3. rpmbuild -bb your-package.specs 一个和软件包同名的specs文件
4. 这时, 在/usr/src/redhat/RPMS/i386/(根据具体包的不同,也可能是i686,noarch,x86_64等等)这个目录下, 有一个新的rpm包, 这个是编译好的二进制文件. 
5. 执行rpm -i new-package.rpm即可安装完成.

以下是通过方法一安装htop的过程:

?Download shell.sh1
2
3
4
5
6
# rpm -i htop-0.7-1.rf.src.rpm
# cd /usr/src/redhat/SPECS
# rpmbuild -bp htop.spec
# cd [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/22/960/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-src-rpm-%e8%bf%99%e6%a0%b7%e6%a0%bc%e5%bc%8f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim使用tab补全php函数</title>
		<link>http://blog.thematice.com/html/y2010/01/21/952/vim%e4%bd%bf%e7%94%a8tab%e8%a1%a5%e5%85%a8php%e5%87%bd%e6%95%b0.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/21/952/vim%e4%bd%bf%e7%94%a8tab%e8%a1%a5%e5%85%a8php%e5%87%bd%e6%95%b0.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 03:38:54 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tab]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=952</guid>
		<description><![CDATA[来自网络：
1，下载php函数列表。进入funclist.txt下载并把文件放入vim目录。
2，设置vimrc


?Download shell.sh1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
&#34;You can obtain the completion dictionary file from: 
&#34;   http://cvs.php.net/viewvc.cgi/phpdoc/funclist.txt 
set dictionary-=$VIM/funclist.txt dictionary+=$VIM/funclist.txt 
&#160;
&#34;Use the dictionary completion 
set complete-=k complete+=k
&#160;
&#160;
&#34;Auto completion using the TAB key 
&#34;This function determines, wether we are on 
&#34;the start of the line text(then tab indents) 
&#34;or if we want to try auto completion 
function! InsertTabWrapper() 
  [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/21/952/vim%e4%bd%bf%e7%94%a8tab%e8%a1%a5%e5%85%a8php%e5%87%bd%e6%95%b0.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redis, Memcached, Tokyo Tyrant and MySQL comparision</title>
		<link>http://blog.thematice.com/html/y2010/01/14/944/redis-memcached-tokyo-tyrant-and-mysql-comparision.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/14/944/redis-memcached-tokyo-tyrant-and-mysql-comparision.html#comments</comments>
		<pubDate>Thu, 14 Jan 2010 06:11:44 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[DBM]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[MySQL comparision]]></category>
		<category><![CDATA[Redis]]></category>
		<category><![CDATA[Tokyo Tyrant]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=944</guid>
		<description><![CDATA[I wanted to compare the following DBs, NoSQLs and caching solutions for speed and connections. Tested the following

Redis
Memcached
Tokyo Tyrant / Tokyo Cabinet
MySQL 5.1.40 (MyISAM)
MySQL 5.1.40 (with Innodb Plugin 1.0.4), compiled into source of MySQL


	My test had the following criteria

2 client boxes
All clients connecting to the server using Python
Used Python&#8217;s threads to create concurrency
Each thread made [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/14/944/redis-memcached-tokyo-tyrant-and-mysql-comparision.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>easyLife, Fedora 下的 Ubuntu Tweak</title>
		<link>http://blog.thematice.com/html/y2010/01/12/942/easylife-fedora-%e4%b8%8b%e7%9a%84-ubuntu-tweak.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/12/942/easylife-fedora-%e4%b8%8b%e7%9a%84-ubuntu-tweak.html#comments</comments>
		<pubDate>Tue, 12 Jan 2010 14:13:10 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[easyLife]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=942</guid>
		<description><![CDATA[
easyLife 是一款专为 Fedora 开发的快速配置工具，相当于 TualatriX 为 Ubuntu 开发的 Ubuntu Tweak ，它可以帮助 Fedora 新手顺利搞定新装系统配置，帮助老手节约时间，不过，鉴于 Ubuntu Tweak 的强大功能，将 easyLife 跟 Lazybuntu 对比更贴切与准确一点。
 
Fedora 12 将在 2 天后发布，作为全球最受欢迎的第三大 Linux 桌面发行版，届时肯定会掀起另一波下载、安装、测评、体验狂潮，这样的快速配置工具对新手还是非常有用的，有了它，新手不会对复杂的配置望而生畏，如果有兴趣，请帮助该项目完成汉化工作。
easyLife 的主要功能，是帮助 Fedora 新手在全新安装的 Fedora 系统上，顺利、快速、简单的安装和配置软件，将复杂的事情简单化，通过鼠标点击就能轻松完成一大堆复杂的任务。
easyLife 主要特性有：

Sets &#8220;sudo&#8221; command up for your regular user;
对普通用户启用 &#8220;sudo&#8221; 命令；
Configures RPMFusion repository for extra and non-free software;
为 Fedora 不提供的额外及非自由软件启用 RPMFusion 软件仓库；
Installs Flash Player [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/12/942/easylife-fedora-%e4%b8%8b%e7%9a%84-ubuntu-tweak.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>重燃你的PHP安全之火</title>
		<link>http://blog.thematice.com/html/y2010/01/11/939/%e9%87%8d%e7%87%83%e4%bd%a0%e7%9a%84php%e5%ae%89%e5%85%a8%e4%b9%8b%e7%81%ab.html</link>
		<comments>http://blog.thematice.com/html/y2010/01/11/939/%e9%87%8d%e7%87%83%e4%bd%a0%e7%9a%84php%e5%ae%89%e5%85%a8%e4%b9%8b%e7%81%ab.html#comments</comments>
		<pubDate>Mon, 11 Jan 2010 09:24:24 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Linux  web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[安全]]></category>
		<category><![CDATA[提权]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=939</guid>
		<description><![CDATA[　　关于脚本安全这个话题好像永远没完没了，如果你经常到国外的各种各样的bugtraq上，你会发现有一半以上都和脚本相关，诸如SQL injection,XSS,Path Disclosure,Remote commands execution这样的字眼比比皆是，我们看了之后的用途难道仅仅是抓肉鸡？对于我们想做web安全的人来说，最好就是拿来学习，可是万物抓根源，我们要的不是鱼而是渔。在国内，各种各样的php程序1.0版,2.0版像雨后春笋一样的冒出来，可是，大家关注的都是一些著名的cms,论坛,blog程序，很少的人在对那些不出名的程序做安全检测，对于越来越多的php程序员和站长来说，除了依靠服务器的堡垒设置外，php程序本身的安全多少你总得懂点吧。
　　有人说你们做php安全无非就是搞搞注入和跨站什么什么的，大错特错，如果这样的话，一个magic_quotes_gpc或者服务器里的一些安全设置就让我们全没活路了。我今天要说的不是注入，不是跨站，而是存在于php程序中的一些安全细节问题。OK!切入正题。
　　注意一些函数的过滤
　　有些函数在程序中是经常使用的,像include(),require(),fopen(),fwrite(),readfile(),unlink(),eval()以及它们的变体函数等等。这些函数都很实用，实用并不代表让你多省心，你还得为它们多费点心。
　　1、include(),require()和fopen(),include_once(),require_once()这些都可以远程调用文件，对于它们的危害，google搜一下你就会很明了，对于所包含调用的变量没过滤好，就可以任意包含文件从而去执行。举个例子，看print.php
　　以下为引用的内容：
　　&#8230; 
　　if (empty ($bn) ) { //检查是变量$bn是否为空 
　　include (&#8221;$cfg_dir/site_$.php&#8221;); //把$cfg_dir这个路径里的site_$.php包含进来 
　　&#8230;

　　不管存不存在$cfg_dir目录，$site这个变量你可以很自然的去使用，因为他根本没检查$site变量啊。可以把变量$site指定远程文件http://evil.com/cmd.gif去调用，也可以是本地的一个文件，你所指定的文件里写上php的语句，然后它就去包含执行这个含有php语句的文件了。
　　列出文件目录
　　甚至可以扩展到包含一些管理员文件，提升权限，典型的像以前phpwind,bo-blog的漏洞一样。除了依靠php.ini里的allow_url_fopen设为off禁止远程使用文件和open_base_dir禁止使用目录以外的文件外，你还得事先声明好只能包含哪些文件，这里就不多说废话了。
　　2、fopen(),file(),readfile(),openfile(),等也是该特别留意的地方。函数本身并没什么,它们的作用是去打开文件，可是如果对变量过滤不彻底的话，就会泄露源代码。这样的函数文本论坛里会有很多。
　　以下为引用的内容：
　　&#8230; 
　　$articlearray=openfile(&#8221;$dbpath/$fid/$tid.php&#8221;); //打开$dbpath/$fid这个路径的$tid.php文件 
　　$topic_detail=explode(&#8221;&#124;&#8221;,$articlearray[0]); //用分割符&#124;读出帖子的内容 
　　&#8230; 
　　很眼熟吧，这是ofstar以前版本的read.php,$fid和$tid没有任何过滤，$tid指定为某个文件提交，就发生了原代码泄露。
　　http://explame.com/ofstar/read.php?fid=123&#038;tid=../index
　　$tid会被加上php的后缀，所以直接写index。这仅仅是个例子，接着看吧。
　　3、fwrite()和它的变体函数这种漏洞想想都想得出，对于用户提交的字符没过滤的话，写入一段php后门又不是不可以。
　　4、unlink()函数，前段时间，phpwind里任意删除文件就是利用这个函数，对于判断是否删除的变量没过滤，变量可以指定为任意文件，当然就可以删除任意文件的变量。
　　5、eval(),preg_replace()函数，它们的作用是执行php代码，如果字符串没被经过任何过滤的话，会发生什么呢，我就常看见一些cms里面使用，想想，一句话的php木马不就是根据eval()原理制作的吗？
　　6、对于system()这些系统函数，你会说在php.ini里禁止系统函数，对，这也是好办法，可是象一些程序里需要，那是不是就不用了呢？就像上次我看到的一套很漂亮的php相册一样。另外对于popen(),proc_open(),proc_close()函数你也得特别注意，尽管他们执行命令后并没有直接的输出，但你想这到底对黑客们有没有用呢。再这里php提供提供了两个函数，escapeshellarg(),escapeshellcmd(),这两个函数用来对抗系统函数的调用攻击，也就是过滤。
　　对于危害，来举个例子，我们来看某论坛prod.php
　　以下为引用的内容：
　　07 $doubleApp = isset($argv[1]); //初始化变量$doubleApp
　　&#8230; 
　　14 if( $doubleApp ) //if语句 
　　15 { 
　　16 $appDir = $argv[1]; //初始化$appDir 
　　17 system(&#8221;mkdir $prodDir/$appDir&#8221;); //使用系统函数system来创建目录$prodDir/$appDir 
　　本来是拿来创建$prodDir/$appDir目录的，再接着看上去，程序仅仅检测是否存在$argv[1]，缺少对$argv[1]的必要过滤，那么你就可以这样 
　　/prod.php?argv[1]=&#124;ls%20-la或者/prod.php?argv[1]=&#124;cat%20/etc/passwd（分割符 &#124; 在这里是UNIX的管道参数，可以执行多条命令。）
　　到这里，常见的漏洞类型应该知道点了吧。
　　对于特殊字符的重视
　　对于特殊字符，有句话叫All puts is invalid.外国人文章里这句话很常见的。所有输入都是有害的。你永远不要对用户所输入的东西省心，为了对付这些危害，程序员都在忙着过滤大把大把的字符，唯恐漏了什么。而有些程序员呢？好像从没注意过这些问题，从来都是敞开漏洞大门的。不说废话，还是先看看下面这些东西吧。
　　1、其实程序的漏洞里最关键，最让开发者放心不下的就是带着$符号的美元符号，变量，对于找漏洞的人来说，抓着变量两个字就是一切。就像目录遍历这个bug，很多邮件程序都存在，开发者考虑的很周全，有的甚至加上了网络硬盘这个东西，好是好，就像http://mail.com/file.php?id=1&#038;put=list&#038;tid=1&#038;file=./
　　要是我们把file这个变量换成./../甚至更上层呢？目录就这样被遍历了。
　　2、尖括号&#8221;&#8220;跨站你不会不知道吧，一些搜索栏里，文章，留言，像前段时间phpwind附件那里的跨站等等。当然，对于跨站问题，你要过滤的远远不止尖括号。不怕过滤时漏掉什么，而是怕你想不起要去过滤。
　　3、斜杆和反斜杆：对于/和的过滤，记得魔力论坛的附件下载处的原代码泄露吗？
　　attachment.php?id=684&#038;u=3096&#038;extension=gif&#038;attach=&#8230;&#8230;&#8230;&#8230;.includesconfig.php&#038;filename=1.gif
　　对于过滤.. / 的问题，像windows主机不仅要过滤../还要过滤..,windows主机对会解析为/,这些细节跟SQL injection比起来，什么才叫深入呢？
　　4、对于反引号(&#8220;),反引号在php中很强大，它可以执行系统命令，就像system()这些系统函数一样，如果用户的恶意语句被它所执行的话就会危害服务器，我想除了服务器设置的很好以外，对于它们，你还是老老实实的过滤好吧。
　　5、对于换行符,NULL字符等等，像&#8221; ,x0B, , ,这些，这些都是很有用的，像动网以前的上传漏洞就是因为上传中的NULL()字符引起的，对于这些能随意截断程序流程的字符，你说我们在检测的时候应该有多细心呢？
　　6、分号(;)和分割符(&#124;)
　　分号截断程序流程，shell_exec(&#8221;del ./yourpath/$file&#8221;); [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/01/11/939/%e9%87%8d%e7%87%83%e4%bd%a0%e7%9a%84php%e5%ae%89%e5%85%a8%e4%b9%8b%e7%81%ab.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
