<?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://www.hmqq.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hmqq.net</link>
	<description>Xiaoqiao's Blog</description>
	<lastBuildDate>Sat, 13 Aug 2011 16:56:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Ngnix + PHP-FPM chroot</title>
		<link>http://www.hmqq.net/2011/06/ngnix-php-fpm-chroot/</link>
		<comments>http://www.hmqq.net/2011/06/ngnix-php-fpm-chroot/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 10:46:21 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=375</guid>
		<description><![CDATA[Nginx+PHP-FPM是目前用得比较多的组合，如果在一台服务器上面跑多个站点，当一个安全性比较差的站点被入侵之后，其他网站也就无安全性可言了。PHP-FPM支持chroot功能，能够解决前面提到的安全问题，只是这功能默认没启用，配置也稍有点麻烦。 PHP-FPM的chroot配置可以参考以下方式： 1、修改php-fpm配置文件，如A网站的配置文件为/etc/php-fpm.d/a.conf，在a.conf中增加 chroot = /var/www/a 2、修改nginx的虚拟主机配置 fastcgi_param SCRIPT_FILENAME /var/www/a/$fastcgi_script_name; 要改为 fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; 3、建立必要的目录，复制文件。 4、修改php应用配置，使用TCP连接MySQL数据库 5、使php mail()函数可用 下载femail源代码，编译成静态链接的二进制文件，复制到usr/sbin/sendmail。 建立etc/femail.conf文件，内容如下： smtphost = 127.0.0.1 myname = aa.me 找一个静态链接的ash.static文件，复制到bin/sh，测试发送邮件。]]></description>
			<content:encoded><![CDATA[<p>Nginx+PHP-FPM是目前用得比较多的组合，如果在一台服务器上面跑多个站点，当一个安全性比较差的站点被入侵之后，其他网站也就无安全性可言了。PHP-FPM支持chroot功能，能够解决前面提到的安全问题，只是这功能默认没启用，配置也稍有点麻烦。<br />
PHP-FPM的chroot配置可以参考以下方式：</p>
<p>1、修改php-fpm配置文件，如A网站的配置文件为/etc/php-fpm.d/a.conf，在a.conf中增加<br />
<strong>chroot = /var/www/a</strong></p>
<p>2、修改nginx的虚拟主机配置<br />
fastcgi_param  SCRIPT_FILENAME <strong> /var/www/a/</strong>$fastcgi_script_name;<br />
要改为<br />
fastcgi_param  SCRIPT_FILENAME  $fastcgi_script_name;<br />
<span id="more-375"></span><br />
3、建立必要的目录，复制文件。</p>
<pre class="brush: plain; title: ; notranslate">
mkdir tmp etc lib64 bin
cp /etc/hosts /etc/resolv.conf /etc/nsswitch.conf /etc/localtime etc
cp /lib64/libnss_dns.so.2 lib64  #域名解析需要，32位的系统就复制/lib/libnss_dns.so.2
chmod 1777 tmp
mkdir -p var/lib/php/session  #php.ini的session.save_path设置
chown root:apache var/lib/php/session
chmod 770 var/lib/php/session
mkdir -p usr/share/zoneinfo/Asia
cp /usr/share/zoneinfo/Asia/Shanghai usr/share/zoneinfo/Asia #跟php.ini配置的时区一致
</pre>
<p>4、修改php应用配置，使用TCP连接MySQL数据库</p>
<p>5、使php mail()函数可用<br />
下载<a href="http://quigon.bsws.de/femail/">femail</a>源代码，编译成静态链接的二进制文件，复制到usr/sbin/sendmail。<br />
建立etc/femail.conf文件，内容如下：<br />
smtphost = 127.0.0.1<br />
myname   = aa.me<br />
找一个静态链接的ash.static文件，复制到bin/sh，测试发送邮件。</p>
<pre class="brush: plain; title: ; notranslate">
echo 'Subject: test'|chroot /var/www/a /usr/sbin/sendmail -v  xx@aa.me
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2011/06/ngnix-php-fpm-chroot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>删除Android手机无主题短信</title>
		<link>http://www.hmqq.net/2011/03/%e5%88%a0%e9%99%a4android%e6%89%8b%e6%9c%ba%e6%97%a0%e4%b8%bb%e9%a2%98%e7%9f%ad%e4%bf%a1/</link>
		<comments>http://www.hmqq.net/2011/03/%e5%88%a0%e9%99%a4android%e6%89%8b%e6%9c%ba%e6%97%a0%e4%b8%bb%e9%a2%98%e7%9f%ad%e4%bf%a1/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 06:52:24 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[生活]]></category>
		<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=355</guid>
		<description><![CDATA[给HTC Desire手机刷了2.3.3的ROM，用MyBackup恢复软件、短信等备份。今天删除短信之后发现会话依然存在，只是显示“无主题”，日期是“1970-1-1”，而且这些无主题的短信无法删除。 在Google搜索之后，发现也有不少人遇到这个问题，机锋网的这个帖子介绍了解决的方法，但是帖子里面并没有提到mmssms.db文件的路径是什么。再次搜索后得知文件的路径是“/data/data/com.android.providers.telephony/databases/mmssms.db”。 拷贝mmssms.db文件到电脑上面处理麻烦了点，于是在手机上安装SQLite Editor来做这个事情。 用SQLite Editor打开“拨号器存储”，选择“mmssms.db”。 找到threads表，将date和snippet列数据为空的记录删除即可。]]></description>
			<content:encoded><![CDATA[<p>给HTC Desire手机刷了2.3.3的ROM，用MyBackup恢复软件、短信等备份。今天删除短信之后发现会话依然存在，只是显示“无主题”，日期是“1970-1-1”，而且这些无主题的短信无法删除。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135112.png"><img title="无主题短信" src="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135112-300x129.png" alt="" width="300" height="129" /></a></p>
<p>在Google搜索之后，发现也有不少人遇到这个问题，机锋网的<a href="http://bbs.gfan.com/android-556645-1-1.html">这个帖子</a>介绍了解决的方法，但是帖子里面并没有提到mmssms.db文件的路径是什么。再次搜索后得知文件的路径是“/data/data/com.android.providers.telephony/databases/mmssms.db”。<span id="more-355"></span><br />
拷贝mmssms.db文件到电脑上面处理麻烦了点，于是在手机上安装SQLite Editor来做这个事情。<br />
<a href="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135129.png"><img title="SQLite Editor" src="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135129-180x300.png" alt="" width="180" height="300" /></a><br />
用SQLite Editor打开“拨号器存储”，选择“mmssms.db”。<br />
<a href="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135156.png"><img title="拨号器存储" src="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135156-300x142.png" alt="" width="300" height="142" /></a></p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135207.png"><img title="mmssms.db" src="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135207-300x140.png" alt="" width="300" height="140" /></a></p>
<p>找到threads表，将date和snippet列数据为空的记录删除即可。<br />
<a href="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135252.png"><img class="alignleft size-medium wp-image-360" title="threads" src="http://www.hmqq.net/wp-content/uploads/2011/03/snap20110313_135252-180x300.png" alt="" width="180" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2011/03/%e5%88%a0%e9%99%a4android%e6%89%8b%e6%9c%ba%e6%97%a0%e4%b8%bb%e9%a2%98%e7%9f%ad%e4%bf%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Linux NAT服务器上做流量控制</title>
		<link>http://www.hmqq.net/2011/02/linux-nat-tc/</link>
		<comments>http://www.hmqq.net/2011/02/linux-nat-tc/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 02:44:11 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=349</guid>
		<description><![CDATA[公司用的是6M专线，如果有人在内网用迅雷之类的软件下载大的文件，就会把带宽全部占满，收发邮件、浏览网页都非常慢。于是把NAT服务器换成Linux系统，使用tc做流量控制。目前使用看上去还好，后面可能会再做一些优化。]]></description>
			<content:encoded><![CDATA[<p>公司用的是6M专线，如果有人在内网用迅雷之类的软件下载大的文件，就会把带宽全部占满，收发邮件、浏览网页都非常慢。于是把NAT服务器换成Linux系统，使用tc做流量控制。目前使用看上去还好，后面可能会再做一些优化。<br />
<a href="http://www.hmqq.net/wp-content/uploads/2011/02/tc.png"><img src="http://www.hmqq.net/wp-content/uploads/2011/02/tc-300x234.png" alt="Linux流量控制" title="Linux Traffic Control" width="300" height="234" class="alignleft size-medium wp-image-350" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2011/02/linux-nat-tc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APG，Android上的OpenPGP软件</title>
		<link>http://www.hmqq.net/2010/12/apg-android-openpgp/</link>
		<comments>http://www.hmqq.net/2010/12/apg-android-openpgp/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 14:07:11 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=328</guid>
		<description><![CDATA[Android系统没自带公钥加密功能，也不支持对存储在SD卡上的文件加密。如果在手机上存了包含敏感信息的文件，或者是用手机收发重要的邮件，一旦手机丢失，就可能造成信息泄漏。 Android Privacy Guard (APG)是Android系统上的OpenPGP软件，能够方便的管理密钥，对文件/邮件进行加解密操作。现在K-9 Mail邮件客户端也已经支持OpenPGP，可以使用APG对电子邮件进行签名和加密。 APG的界面很简单，运行后界面只有加密文件、解密文件、加密信息和解密信息这几个按钮。 在还没有密钥的情况下，可以用口令进行加解密。但通常还是用APG提供的密钥管理工具导入GnuPG生成的密钥，或者是用APG生成密钥，然后再用公钥对文件/邮件进行加密。 新版本的K9mail在“账户设置”-“加密”-“OpenGPG提供者”设置为APG就可以用APG进行邮件加解密了。 在K9mail新建邮件，在界面上的“签名”、“加密”打勾，就能选择私钥给邮件做签名或者是选择公钥对邮件加密。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.android.com/">Android</a>系统没自带公钥加密功能，也不支持对存储在SD卡上的文件加密。如果在手机上存了包含敏感信息的文件，或者是用手机收发重要的邮件，一旦手机丢失，就可能造成信息泄漏。<br />
<a href="http://www.thialfihar.org/projects/apg/">Android Privacy Guard (APG)</a>是Android系统上的OpenPGP软件，能够方便的管理密钥，对文件/邮件进行加解密操作。现在<a href="http://code.google.com/p/k9mail">K-9 Mail</a>邮件客户端也已经支持OpenPGP，可以使用APG对电子邮件进行签名和加密。<span id="more-328"></span><br />
APG的界面很简单，运行后界面只有加密文件、解密文件、加密信息和解密信息这几个按钮。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222601.png"><img title="APG程序界面" src="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222601-180x300.png" alt="" width="180" height="300" /></a></p>
<p>在还没有密钥的情况下，可以用口令进行加解密。但通常还是用APG提供的密钥管理工具导入GnuPG生成的密钥，或者是用APG生成密钥，然后再用公钥对文件/邮件进行加密。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222619.png"><img title="密钥管理菜单" src="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222619-180x300.png" alt="" width="180" height="300" /></a></p>
<p>新版本的K9mail在“账户设置”-“加密”-“OpenGPG提供者”设置为APG就可以用APG进行邮件加解密了。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222648.png"><img title="K9mail OpenPGP" src="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222648-180x300.png" alt="" width="180" height="300" /></a></p>
<p>在K9mail新建邮件，在界面上的“签名”、“加密”打勾，就能选择私钥给邮件做签名或者是选择公钥对邮件加密。<br />
<a href="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222717.png"><img class="alignleft size-medium wp-image-341" title="新邮件" src="http://www.hmqq.net/wp-content/uploads/2010/12/snap20101218_222717-180x300.png" alt="" width="180" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2010/12/apg-android-openpgp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>把Blog迁移到国外的VPS了</title>
		<link>http://www.hmqq.net/2010/10/blog-vps-hosting/</link>
		<comments>http://www.hmqq.net/2010/10/blog-vps-hosting/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 02:32:44 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=312</guid>
		<description><![CDATA[国内域名备案相当麻烦，现在把blog移到国外的VPS。]]></description>
			<content:encoded><![CDATA[<p>国内域名备案相当麻烦，现在把blog移到国外的VPS。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2010/10/blog-vps-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5的第三方软件仓库</title>
		<link>http://www.hmqq.net/2010/06/centos5-3rd-party-repo/</link>
		<comments>http://www.hmqq.net/2010/06/centos5-3rd-party-repo/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 03:08:08 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=286</guid>
		<description><![CDATA[http://centos.alt.ru/pub有一些给RHEL/CentOS 5用的RPM包，有较新版本的httpd、php、nginx、mysql、postfix等。这里还有php-fpm，如果配合nginx来跑php，应该是一个比较好的选择。]]></description>
			<content:encoded><![CDATA[<p><a href="http://centos.alt.ru/pub">http://centos.alt.ru/pub</a>有一些给RHEL/CentOS 5用的RPM包，有较新版本的httpd、php、nginx、mysql、postfix等。这里还有php-fpm，如果配合nginx来跑php，应该是一个比较好的选择。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2010/06/centos5-3rd-party-repo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>supervisor挺好用的</title>
		<link>http://www.hmqq.net/2010/05/python-supervisor/</link>
		<comments>http://www.hmqq.net/2010/05/python-supervisor/#comments</comments>
		<pubDate>Sun, 30 May 2010 12:24:43 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=283</guid>
		<description><![CDATA[supervisor是一个用Python写的程序，运行在UNIX-like操作系统，可以用来监控和管理多个进程。 在CentOS下，直接运行“yum install supervisor”即可完成安装，只是CentOS5带的supervisor版本比较老。。。 supervisor的配置文件是/etc/supervisord.conf，如果是用easy_install安装的话，可以用“echo_supervisord_conf > /etc/supervisord.conf”生成一个默认配置文件。配置文件里面的参数很容易看懂，主要修改[program:theprogramname]节的内容即可，需要设置正确的command和user参数。 对进程的控制是使用supervisorctl命令，比如：]]></description>
			<content:encoded><![CDATA[<p><a href="http://supervisord.org/">supervisor</a>是一个用Python写的程序，运行在UNIX-like操作系统，可以用来监控和管理多个进程。<br />
在CentOS下，直接运行“yum install supervisor”即可完成安装，只是CentOS5带的supervisor版本比较老。。。<br />
supervisor的配置文件是/etc/supervisord.conf，如果是用easy_install安装的话，可以用“echo_supervisord_conf > /etc/supervisord.conf”生成一个默认配置文件。配置文件里面的参数很容易看懂，主要修改[program:theprogramname]节的内容即可，需要设置正确的command和user参数。<br />
对进程的控制是使用supervisorctl命令，比如：</p>
<pre class="brush: plain; title: ; notranslate">
supervisorctl stop web
supervisorctl start web
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2010/05/python-supervisor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>某服务器被黑记录</title>
		<link>http://www.hmqq.net/2010/05/hacked-server/</link>
		<comments>http://www.hmqq.net/2010/05/hacked-server/#comments</comments>
		<pubDate>Sat, 22 May 2010 18:45:43 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=278</guid>
		<description><![CDATA[某网站不能正常访问，检查发现其WEB目录下面部分php文件被修改。因为服务器安装了Tripwire，根据Tripwire的文件完整性检查日志可以知道那些文件被修改了，替换被修改了的文件，网站业务恢复。 对比被修改的php文件，发现入侵者应该是该网站的竞争对手或者是竞争对手找的小黑，目的是让这个网站屏蔽Baidu爬虫，以利于他自己的业务推广。 日志分析发现入侵者留了一个PHP木马，并利用这个木马进行过文件编辑，可惜该木马对UTF-8编码的文件支持太差，修改后的文件中文都是乱码。 删除木马之后，发现入侵者还是尝试再次访问木马页面的，日志如下： 进一步检查这个IP还做什么事情，发现攻击者是能够查看文件目录的，于是继续寻找其他后门。发现同一台服务器上的其他虚拟主机确实还有木马文件，初步认为入侵是源自那里。 //update: 后来发现入侵者还是写入了新的shell，只是没办法在那些目录下面执行，呵呵。通过日志检查发现他们是利用了ECShop的安全漏洞，利用这个漏洞产生的日志如下： 攻击者提交的数据base64 decode的内容是：]]></description>
			<content:encoded><![CDATA[<p>某网站不能正常访问，检查发现其WEB目录下面部分php文件被修改。因为服务器安装了<a href="http://sourceforge.net/projects/tripwire/">Tripwire</a>，根据Tripwire的文件完整性检查日志可以知道那些文件被修改了，替换被修改了的文件，网站业务恢复。<br />
对比被修改的php文件，发现入侵者应该是该网站的竞争对手或者是竞争对手找的小黑，目的是让这个网站屏蔽Baidu爬虫，以利于他自己的业务推广。<br />
日志分析发现入侵者留了一个PHP木马，并利用这个木马进行过文件编辑，可惜该木马对UTF-8编码的文件支持太差，修改后的文件中文都是乱码。<span id="more-278"></span></p>
<pre class="brush: plain; title: ; notranslate">
60.182.70.x - - [22/May/2010:03:07:47 +0800] &quot;POST /administrator/images/help.php HTTP/1.1&quot; 200 233 &quot;http://www.xx.net/administrator/images/help.php&quot; &quot;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)&quot; &quot;-&quot;
</pre>
<p>删除木马之后，发现入侵者还是尝试再次访问木马页面的，日志如下：</p>
<pre class="brush: plain; title: ; notranslate">
122.243.131.x - - [22/May/2010:17:57:35 +0800] &quot;GET /administrator/images/help.php HT
TP/1.1&quot; 404 56 &quot;-&quot; &quot;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)&quot; &quot;
-&quot;
122.243.131.x - - [22/May/2010:18:03:56 +0800] &quot;GET /administrator/images/ HTTP/1.1&quot;
404 522 &quot;-&quot; &quot;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)&quot; &quot;-&quot;
122.243.131.x - - [22/May/2010:18:04:02 +0800] &quot;GET /administrator/images/help.php/x.
jpg HTTP/1.1&quot; 404 522 &quot;-&quot; &quot;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon
2.0)&quot; &quot;-&quot;
</pre>
<p>进一步检查这个IP还做什么事情，发现攻击者是能够查看文件目录的，于是继续寻找其他后门。发现同一台服务器上的其他虚拟主机确实还有木马文件，初步认为入侵是源自那里。<br />
<strong>//update:</strong><br />
后来发现入侵者还是写入了新的shell，只是没办法在那些目录下面执行，呵呵。通过日志检查发现他们是利用了<a href="http://www.ecshop.com/">ECShop</a>的<a href="http://www.38hack.com/news/loudong/855.html">安全漏洞</a>，利用这个漏洞产生的日志如下：</p>
<pre class="brush: plain; title: ; notranslate">
221.238.129.x - - [26/May/2010:18:28:40 +0800] &quot;GET /search.php?encode=YToxOntzOjQ6ImF0dHIiO2E6MTp7czoxMjU6IjEnKSBhbmQgMT0yIEdST1VQIEJZIGdvb2RzX2lkIHVuaW9uIGFsbCBzZWxlY3QgY29uY2F0KHVzZXJfbmFtZSwweDNhLHBhc3N3b3JkLCciXCcpIHVuaW9uIHNlbGVjdCAxIyInKSwxIGZyb20gZWNzX2FkbWluX3VzZXIjIjtzOjE6IjEiO319 HTTP/1.1&quot; 200 560 &quot;-&quot; &quot;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; QQDownload 638; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Media Center PC 5.0; SLCC1; Tablet PC 2.0)&quot; &quot;-&quot;
</pre>
<p>攻击者提交的数据base64 decode的内容是：</p>
<pre class="brush: sql; title: ; notranslate">
a:1:{s:4:&quot;attr&quot;;a:1:{s:125:&quot;1') and 1=2 GROUP BY goods_id union all select concat(user_name,0x3a,password,'&quot;\') union select 1#&quot;'),1 from ecs_admin_user#&quot;;s:1:&quot;1&quot;;}}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2010/05/hacked-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>云南腾冲</title>
		<link>http://www.hmqq.net/2009/10/yunnan-tengchong/</link>
		<comments>http://www.hmqq.net/2009/10/yunnan-tengchong/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 13:08:47 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=261</guid>
		<description><![CDATA[10.1长假过后到云南腾冲开会，顺便在腾冲逛了逛。腾冲县城海拔1600米，气温和华东相差不大，但是明显可以感觉到阳光比平原地区强不少。 先去的地方是火山，一座座的火山已经沉寂了很长时间，长满了各种植物，要不是山上一块块的火山石，近看很难让人感觉它是火山。 热海景区的主要景点是大滚锅，水温近100度，靠近就觉得热浪逼人，有一股很重的硫磺味。边上有人卖用大滚锅的热水蒸熟的鸡蛋，味道貌似也没什么特别的。 国殇墓园是滇西抗战期间腾冲收复战阵亡将士的纪念陵园，园内十分幽静，令人肃然起敬。 北海湿地属高原火山堰塞湖生态系统，乍一看感觉只是一片草地，细观才知道这一大片水草都是漂浮在湖面的，人踩在草上面也不会下沉，有点软软的感觉。]]></description>
			<content:encoded><![CDATA[<p>10.1长假过后到云南腾冲开会，顺便在腾冲逛了逛。腾冲县城海拔1600米，气温和华东相差不大，但是明显可以感觉到阳光比平原地区强不少。<br />
先去的地方是火山，一座座的火山已经沉寂了很长时间，长满了各种植物，要不是山上一块块的火山石，近看很难让人感觉它是火山。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1700.JPG"><img title="大空山" src="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1700-300x225.jpg" alt="大空山" width="300" height="225" /></a><br />
<span id="more-261"></span>热海景区的主要景点是大滚锅，水温近100度，靠近就觉得热浪逼人，有一股很重的硫磺味。边上有人卖用大滚锅的热水蒸熟的鸡蛋，味道貌似也没什么特别的。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1707.JPG"><img title="热海大滚锅" src="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1707-300x222.jpg" alt="热海大滚锅" width="300" height="222" /></a></p>
<p>国殇墓园是滇西抗战期间腾冲收复战阵亡将士的纪念陵园，园内十分幽静，令人肃然起敬。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1705.JPG"><img title="纪念碑" src="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1705-225x300.jpg" alt="纪念碑" width="225" height="300" /></a></p>
<p>北海湿地属高原火山堰塞湖生态系统，乍一看感觉只是一片草地，细观才知道这一大片水草都是漂浮在湖面的，人踩在草上面也不会下沉，有点软软的感觉。</p>
<p><a href="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1719.JPG"><img title="北海湿地" src="http://www.hmqq.net/wp-content/uploads/2009/10/IMG_1719-300x225.jpg" alt="北海湿地" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2009/10/yunnan-tengchong/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>黄山</title>
		<link>http://www.hmqq.net/2009/04/huangshan/</link>
		<comments>http://www.hmqq.net/2009/04/huangshan/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 16:07:28 +0000</pubDate>
		<dc:creator>小桥</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.hmqq.net/?p=243</guid>
		<description><![CDATA[上周末跟同学一起去黄山，周五晚上是在黄山市住的，周六一早到汤口镇。确定上山路线后，把车停到温泉，然后开始步行前往慈光阁。唉，才走一小段，就觉得走不动了，当年爬泰山感觉是很轻松的啊，不锻炼体力是不行。 到慈光阁，我选择了乘索道上山，周末去黄山的人太多了，排了3个小时的队才乘上索道。排队的队伍里面有人称，“黄山归来不看岳”是因为再也不愿意排队等几个小时。 到山上之后，本来还准备到迎客松看看的，但是看到前往迎客松方向的道路上挤满了人，而且根本看不到人在移动，就放弃了。于是往莲花峰方向走，后来很郁闷的发现莲花峰顶峰是关闭了的，上不去。再往后就是登一线天、过鳌鱼背、爬光明顶、摸飞来石。最后走到北海宾馆搭帐篷休息，比较寒的是晚上下雨&#8230; 第二天一早，收拾东西，乘索道下山，闪人。]]></description>
			<content:encoded><![CDATA[<p>上周末跟同学一起去黄山，周五晚上是在黄山市住的，周六一早到汤口镇。确定上山路线后，把车停到温泉，然后开始步行前往慈光阁。唉，才走一小段，就觉得走不动了，当年爬泰山感觉是很轻松的啊，不锻炼体力是不行。<br />
到慈光阁，我选择了乘索道上山，周末去黄山的人太多了，排了3个小时的队才乘上索道。排队的队伍里面有人称，“黄山归来不看岳”是因为再也不愿意排队等几个小时。<br />
到山上之后，本来还准备到迎客松看看的，但是看到前往迎客松方向的道路上挤满了人，而且根本看不到人在移动，就放弃了。于是往莲花峰方向走，后来很郁闷的发现莲花峰顶峰是关闭了的，上不去。再往后就是登一线天、过鳌鱼背、爬光明顶、摸飞来石。最后走到北海宾馆搭帐篷休息，比较寒的是晚上下雨&#8230;<br />
第二天一早，收拾东西，乘索道下山，闪人。<br />
<span id="more-243"></span><br />
<div id="attachment_244" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan10.jpg"><img class="alignleft size-medium wp-image-244" title="玉屏索道" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan10-300x225.jpg" alt="玉屏索道" width="300" height="225" /></a><p class="wp-caption-text">玉屏索道</p></div></p>
<div id="attachment_246" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan02.jpg"><img class="size-medium wp-image-246" title="huangshan02" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan02-300x225.jpg" alt="松树" width="300" height="225" /></a><p class="wp-caption-text">松树</p></div>
<div id="attachment_247" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan23.jpg"><img class="size-medium wp-image-247" title="huangshan23" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan23-300x225.jpg" alt="天都峰和莲花峰" width="300" height="225" /></a><p class="wp-caption-text">天都峰和莲花峰</p></div>
<div id="attachment_248" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan21.jpg"><img class="size-medium wp-image-248" title="huangshan21" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan21-300x225.jpg" alt="莲花峰" width="300" height="225" /></a><p class="wp-caption-text">莲花峰</p></div>
<div id="attachment_249" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan28.jpg"><img class="size-medium wp-image-249" title="huangshan28" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan28-300x225.jpg" alt="这是？？" width="300" height="225" /></a><p class="wp-caption-text">这是？？</p></div>
<div id="attachment_250" class="wp-caption alignleft" style="width: 235px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan29.jpg"><img class="size-medium wp-image-250" title="huangshan29" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan29-225x300.jpg" alt="某处" width="225" height="300" /></a><p class="wp-caption-text">某处</p></div>
<div id="attachment_251" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan16.jpg"><img class="size-medium wp-image-251" title="huangshan16" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan16-300x225.jpg" alt="一线天" width="300" height="225" /></a><p class="wp-caption-text">一线天</p></div>
<div id="attachment_252" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan14.jpg"><img class="size-medium wp-image-252" title="huangshan14" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan14-300x225.jpg" alt="爬山的人" width="300" height="225" /></a><p class="wp-caption-text">爬山的人</p></div>
<div id="attachment_253" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan19.jpg"><img class="size-medium wp-image-253" title="huangshan19" src="http://www.hmqq.net/wp-content/uploads/2009/04/huangshan19-300x225.jpg" alt="光明顶" width="300" height="225" /></a><p class="wp-caption-text">光明顶</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.hmqq.net/2009/04/huangshan/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

