<?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>56博</title>
	<atom:link href="http://www.56bo.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.56bo.com</link>
	<description>创意多姿生活,尽享博客乐趣</description>
	<lastBuildDate>Thu, 26 Jan 2012 04:24:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iOS黑客手册(iOS Hacker&#8217;s Handbook)</title>
		<link>http://www.56bo.com/danpin/552</link>
		<comments>http://www.56bo.com/danpin/552#comments</comments>
		<pubDate>Thu, 26 Jan 2012 04:24:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[单品推荐]]></category>
		<category><![CDATA[Hacker]]></category>
		<category><![CDATA[iOS]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=552</guid>
		<description><![CDATA[iOS黑客手册(iOS Hacker&#8217;s Handbook)

]]></description>
			<content:encoded><![CDATA[<p>iOS黑客手册(iOS Hacker&#8217;s Handbook)<br />
<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=56bo-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;ref=tf_til&#038;asins=1118204123" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/danpin/552/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINKSYS E3000路由优惠购物连接，优惠码</title>
		<link>http://www.56bo.com/danpin/550</link>
		<comments>http://www.56bo.com/danpin/550#comments</comments>
		<pubDate>Thu, 26 Jan 2012 04:21:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[单品推荐]]></category>
		<category><![CDATA[E3000]]></category>
		<category><![CDATA[LINKSYS]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=550</guid>
		<description><![CDATA[LINKSYS E3000路由优惠购物连接，优惠码

]]></description>
			<content:encoded><![CDATA[<p>LINKSYS E3000路由优惠购物连接，优惠码<br />
<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=56bo-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;ref=tf_til&#038;asins=B003VY83HO" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/danpin/550/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>京东圣诞大优惠</title>
		<link>http://www.56bo.com/taobaodian/549</link>
		<comments>http://www.56bo.com/taobaodian/549#comments</comments>
		<pubDate>Tue, 14 Dec 2010 04:03:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[淘宝酷店]]></category>

		<guid isPermaLink="false">http://www.56bo.com/taobaodian/549</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><iframe id="baiduSpFrame" border="0" vspace="0" hspace="0" marginWidth="0" marginHeight="0" frameSpacing="0" frameBorder="0" scrolling="no" width="640" height="60" src="http://spcode.baidu.com/spcode/spstyle/style1894.jsp?tn=yetiddbb_sp&#038;ctn=0&#038;styleid=1894"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/taobaodian/549/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Debian上建立基于PPTP的VPN</title>
		<link>http://www.56bo.com/jishu/547</link>
		<comments>http://www.56bo.com/jishu/547#comments</comments>
		<pubDate>Sat, 28 Aug 2010 09:22:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术大类]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[PPTP]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=547</guid>
		<description><![CDATA[VPN的英文全称是“Virtual Private Network”，翻译过来就是“虚拟专用网络”。顾名思义，虚拟专用网络可以把它理解成是虚拟出来的企业内部专线。
    今天我们的目的是在自己的debian系统上构造一个VPN系统,废话不多说,下面开始配置系统.
    首先我们编辑/etc/network/interfaces,为系统新增一个虚拟网卡,加上如下部分
view sourceprint?1 auto eth0:0  
2 iface eth0:0 inet static  
3 address 192.168.10.1  
4 netmask 255.255.255.0  
5 broadcast 192.168.10.255 
    保存之后我们运行/etc/init.d/networking restart如果没有错误,说明虚拟网卡新增成功,这个时候,我们如果运行ifconfig,应该会看到如下信息:
view sourceprint?1 eth0:0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
2      [...]]]></description>
			<content:encoded><![CDATA[<p>VPN的英文全称是“Virtual Private Network”，翻译过来就是“虚拟专用网络”。顾名思义，虚拟专用网络可以把它理解成是虚拟出来的企业内部专线。</p>
<p>    今天我们的目的是在自己的debian系统上构造一个VPN系统,废话不多说,下面开始配置系统.</p>
<p>    首先我们编辑/etc/network/interfaces,为系统新增一个虚拟网卡,加上如下部分</p>
<p>view sourceprint?1 auto eth0:0  </p>
<p>2 iface eth0:0 inet static  </p>
<p>3 address 192.168.10.1  </p>
<p>4 netmask 255.255.255.0  </p>
<p>5 broadcast 192.168.10.255 <span id="more-547"></span></p>
<p>    保存之后我们运行/etc/init.d/networking restart如果没有错误,说明虚拟网卡新增成功,这个时候,我们如果运行ifconfig,应该会看到如下信息:</p>
<p>view sourceprint?1 eth0:0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  </p>
<p>2           inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0  </p>
<p>3           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 </p>
<p>    下面我们继续编辑文件/etc/network/if-up.d/iptables(如果不存在,新建即可),将其内容修改为:</p>
<p>view sourceprint?01 #! /bin/sh  </p>
<p>02 # External Interface , Public Interface  </p>
<p>03 EXTIF=&#8221;eth0&#8243; </p>
<p>04 # Internal Interface, Private Interface  </p>
<p>05 INIF=&#8221;eth0:0&#8243; </p>
<p>06 # Internal Network  </p>
<p>07 INNET=&#8221;192.168.10.0/24&#8243; </p>
<p>08 # Enable IP forwarding  </p>
<p>09 echo 1 > /proc/sys/net/ipv4/ip_forward  </p>
<p>10 # Flush all rules.  </p>
<p>11 iptables -F  </p>
<p>12 iptables -t nat -F  </p>
<p>13 # Set up NAT.  </p>
<p>14 iptables -t nat -A POSTROUTING -s $INNET -o $EXTIF -j MASQUERADE  </p>
<p>15 # for MSN  </p>
<p>16 iptables -A FORWARD -o $EXTIF -p tcp -m tcp &#8211;tcp-flags SYN,RST SYN -m tcpmss &#8211;mss 1400:1536 -j TCPMSS &#8211;clamp-mss-to-pmtu </p>
<p>    如果是新建该文件,别忘了给其加上执行权限:</p>
<p>view sourceprint?1 chmod +x /etc/network/if-up.d/iptables </p>
<p>    继续重启网络,运行/etc/init.d/networking restart,如果没有错误,恭喜,nat部分的配置完成.如果有错误,请详细检查以上步骤,找出错误,直到该命令成功执行即可.</p>
<p>    下面开始配置PPTP,在debian下,我们直接通过执行apt-get install pptpd即可安装pptp.然后我们需要进行一些设置.</p>
<p>    首先修改/etc/ppp/pptpd-options,如果过滤掉繁杂的注释,最终的配置文件如下所示:</p>
<p>view sourceprint?01 name pptpd  </p>
<p>02 refuse-pap  </p>
<p>03 refuse-chap  </p>
<p>04 refuse-mschap  </p>
<p>05 require-mschap-v2  </p>
<p>06 require-mppe-128  </p>
<p>07 proxyarp  </p>
<p>08 lock  </p>
<p>09 nobsdcomp  </p>
<p>10 novj  </p>
<p>11 novjccomp  </p>
<p>12 nologfd  </p>
<p>13 ms-dns 8.8.8.8  </p>
<p>14 ms-dns 8.8.4.4 </p>
<p>    在本配置文件中使用了google的免费公众dns系统,当然,最佳情况,你应该配置为当前主机的dns系统.</p>
<p>    然后我们继续修改文件/etc/pptpd.conf,如果过滤掉繁杂的注释,最终的配置文件如下所示:</p>
<p>view sourceprint?1 option /etc/ppp/pptpd-options  </p>
<p>2 logwtmp  </p>
<p>3 localip 192.168.10.1  </p>
<p>4 remoteip 192.168.10.10-255 </p>
<p>    在此处,我们将vpn主机的ip设置为192.168.10.1,客户端可分配ip范围是192.168.1.10-255,这部分需要和nat设置部分的ip严格对应,如果您设置的是其它ip端请注意核对.</p>
<p>    最后,我们需要修改文件/etc/ppp/chap-secrets来新建vpn用户,比如我们新建一个用户名为leven,密码为levenvpn的用户,如下:</p>
<p>view sourceprint?1 leven    pptpd    levenvpn    * </p>
<p>   到此为止,vpn系统配置完毕,如果要新增其它用户,按照上面的格式继续修改/etc/ppp/chap-secrets即可.</p>
<p>   如果有部分机器在客户端连接vpn的时候报619错误,可以尝试下面的命令:</p>
<p>view sourceprint?1 mknod /dev/ppp c 108 0 </p>
<p>  这样一般就成功配置一个基于pptp的vpn主机啦.祝你好运</p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/jishu/547/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>卓越当当购买链接</title>
		<link>http://www.56bo.com/danpin/542</link>
		<comments>http://www.56bo.com/danpin/542#comments</comments>
		<pubDate>Mon, 16 Aug 2010 00:40:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[单品推荐]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=542</guid>
		<description><![CDATA[卓越当当购买链接:

&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-

]]></description>
			<content:encoded><![CDATA[<p>卓越当当购买链接:<br />
<iframe id="baiduSpFrame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="600" height="60" src="http://spcode.baidu.com/spcode/spstyle/style3104.jsp?tn=yetiddbb_sp&#038;ctn=0&#038;styleid=3104"></iframe><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<iframe id="baiduSpFrame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="600" height="60" src="http://spcode.baidu.com/spcode/spstyle/style2858.jsp?tn=yetiddbb_sp&#038;ctn=0&#038;styleid=2858"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/danpin/542/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>中国工商银行台州分行各支行营业网点及联系电话大全－最新</title>
		<link>http://www.56bo.com/sharing/539</link>
		<comments>http://www.56bo.com/sharing/539#comments</comments>
		<pubDate>Tue, 27 Jul 2010 04:45:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[资源分享]]></category>
		<category><![CDATA[台州]]></category>
		<category><![CDATA[工商]]></category>
		<category><![CDATA[工商银行]]></category>
		<category><![CDATA[营业网点]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=539</guid>
		<description><![CDATA[中国工商银行浙江分行台州市分行椒江支行 椒江区前所台电厂区 (0576)88923216
中国工商银行浙江分行台州市分行开发区支行 椒江枫南小区办公大楼一楼 (0576)88528526
中国工商银行浙江分行台州市分行温岭支行 温岭支行钱江摩托 (0576)86206503
中国工商银行浙江分行台州市分行温岭支行 温岭市政府 (0576)86206503
中国工商银行浙江分行台州市分行营业部 台州市椒江区市府大道609号 (0576)88588292
中国工商银行浙江分行台州市分行营业部 市政府大楼二楼 (0576)88510919
中国工商银行浙江分行台州市分行营业部 台州市中心医院门诊大厅 (0576)88588293
中国工商银行浙江分行台州市分行营业部（储蓄专柜） 台州市椒江区市府大道609号 (0576)88588293
中国工商银行浙江分行台州市分行营业部市府大楼分理处 台州市市政府大楼2楼 (0576)88510919
中国工商银行浙江分行台州市黄岩区支行北门支行 台州市黄岩区县前街85#县前街B幢一楼 (0576)84291502
中国工商银行浙江分行台州市黄岩区支行东城支行 台州市黄岩区桔乡大道210号 (0576)84271137
中国工商银行浙江分行台州市黄岩区支行横街路分理处 台州市黄岩区横街路100号 (0576)84119501
中国工商银行浙江分行台州市黄岩区支行九峰分理处 台州市黄岩区横街东路121号 (0576)84293950
中国工商银行浙江分行台州市黄岩区支行南城分理处 台州市黄岩区劳动南路208号 (0576)84228792 
中国工商银行浙江分行台州市黄岩区支行青年路储蓄所 台州市黄岩区青年东路122号 (0576)84222638
中国工商银行浙江分行台州市黄岩区支行青年西路分理处 黄岩青年西路78-84号 (0576)84223895
中国工商银行浙江分行台州市黄岩区支行天长北路分理处 台州市黄岩区天长北路148号 (0576)84291225
中国工商银行浙江分行台州市黄岩区支行西城分理处 台州市黄岩区青年西路162号 (0576)84222926
中国工商银行浙江分行台州市黄岩区支行营业部 台州市黄岩区青年东路122号 (0576)84224456
中国工商银行浙江分行台州市椒江区支行(储蓄专柜) 椒江区解放北路1号 (0576)88228373
中国工商银行浙江分行台州市椒江区支行东海大道分理处 东海大道600号 (0576)88536372
中国工商银行浙江分行台州市椒江区支行葭芷分理处 葭中路14-2 (0576)88223576
中国工商银行浙江分行台州市椒江区支行椒北支行 椒江区前所前中路4号 (0576)88923216
中国工商银行浙江分行台州市椒江区支行解放路支行 椒江解放南路71号 (0576)88222688
中国工商银行浙江分行台州市椒江区支行蓝天支行 台州市椒江区中山西路179号 (0576)88882374
中国工商银行浙江分行台州市椒江区支行青年路分理处 青年路380号 (0576)88223493
中国工商银行浙江分行台州市椒江区支行阳光分理处 椒江花园新村34号楼 [...]]]></description>
			<content:encoded><![CDATA[<p>中国工商银行浙江分行台州市分行椒江支行 椒江区前所台电厂区 (0576)88923216<br />
中国工商银行浙江分行台州市分行开发区支行 椒江枫南小区办公大楼一楼 (0576)88528526<br />
中国工商银行浙江分行台州市分行温岭支行 温岭支行钱江摩托 (0576)86206503<br />
中国工商银行浙江分行台州市分行温岭支行 温岭市政府 (0576)86206503<br />
中国工商银行浙江分行台州市分行营业部 台州市椒江区市府大道609号 (0576)88588292<br />
中国工商银行浙江分行台州市分行营业部 市政府大楼二楼 (0576)88510919<br />
中国工商银行浙江分行台州市分行营业部 台州市中心医院门诊大厅 (0576)88588293<br />
中国工商银行浙江分行台州市分行营业部（储蓄专柜） 台州市椒江区市府大道609号 (0576)88588293<br />
中国工商银行浙江分行台州市分行营业部市府大楼分理处 台州市市政府大楼2楼 (0576)88510919<br />
中国工商银行浙江分行台州市黄岩区支行北门支行 台州市黄岩区县前街85#县前街B幢一楼 (0576)84291502<br />
中国工商银行浙江分行台州市黄岩区支行东城支行 台州市黄岩区桔乡大道210号 (0576)84271137<br />
中国工商银行浙江分行台州市黄岩区支行横街路分理处 台州市黄岩区横街路100号 (0576)84119501<br />
中国工商银行浙江分行台州市黄岩区支行九峰分理处 台州市黄岩区横街东路121号 (0576)84293950<br />
中国工商银行浙江分行台州市黄岩区支行南城分理处 台州市黄岩区劳动南路208号 (0576)84228792 <span id="more-539"></span><br />
中国工商银行浙江分行台州市黄岩区支行青年路储蓄所 台州市黄岩区青年东路122号 (0576)84222638<br />
中国工商银行浙江分行台州市黄岩区支行青年西路分理处 黄岩青年西路78-84号 (0576)84223895<br />
中国工商银行浙江分行台州市黄岩区支行天长北路分理处 台州市黄岩区天长北路148号 (0576)84291225<br />
中国工商银行浙江分行台州市黄岩区支行西城分理处 台州市黄岩区青年西路162号 (0576)84222926<br />
中国工商银行浙江分行台州市黄岩区支行营业部 台州市黄岩区青年东路122号 (0576)84224456<br />
中国工商银行浙江分行台州市椒江区支行(储蓄专柜) 椒江区解放北路1号 (0576)88228373<br />
中国工商银行浙江分行台州市椒江区支行东海大道分理处 东海大道600号 (0576)88536372<br />
中国工商银行浙江分行台州市椒江区支行葭芷分理处 葭中路14-2 (0576)88223576<br />
中国工商银行浙江分行台州市椒江区支行椒北支行 椒江区前所前中路4号 (0576)88923216<br />
中国工商银行浙江分行台州市椒江区支行解放路支行 椒江解放南路71号 (0576)88222688<br />
中国工商银行浙江分行台州市椒江区支行蓝天支行 台州市椒江区中山西路179号 (0576)88882374<br />
中国工商银行浙江分行台州市椒江区支行青年路分理处 青年路380号 (0576)88223493<br />
中国工商银行浙江分行台州市椒江区支行阳光分理处 椒江花园新村34号楼 (0576)88889560<br />
中国工商银行浙江分行台州市椒江区支行营业部 椒江区解放北路1号 (0576)88226049<br />
中国工商银行浙江分行台州市椒江区支行中山支行 台州市椒江中山东路238号 (0576)88897252<br />
中国工商银行浙江分行台州市经济开发区支行机场路分理处 台州市开发区市府大道东段1号 (0576)88528327<br />
中国工商银行浙江分行台州市开发区支行商业街所 台州市开发区商业街经中路112号 (0576)88522950<br />
中国工商银行浙江分行台州市开发区支行营业部 台州市开发区市府大道299号 (0576)88528521<br />
中国工商银行浙江分行台州市开发区支行营业部（储蓄专柜） 台州市开发区市府大道299号 (0576)88528526<br />
中国工商银行浙江分行台州市路桥区卖芝桥路分理处 路桥区永跃街73-77号 (0576)82441762<br />
中国工商银行浙江分行台州市路桥区商城支行 路桥区商城东区1号 (0576)82405596<br />
中国工商银行浙江分行台州市路桥区邮电路分理处 台州市路桥区邮电路28号 (0576)82457276<br />
中国工商银行浙江分行台州市路桥区镇中南路分理处 台州市路桥区镇中南路120号 (0576)82463036<br />
中国工商银行浙江分行台州市路桥区支行下里桥路分理处 路桥区下里桥路26号 (0576)82437885<br />
中国工商银行浙江分行台州市路桥区支行营业部 路桥区西大道150号 (0576)82588181<br />
中国工商银行浙江分行台州市路桥区支行营业部 路桥区西大道150号 (0576)82588190<br />
中国工商银行浙江分行台州市路桥区中心菜场分理处 台州市路桥区富仕路中心菜市场旁 (0576)82441878<br />
中国工商银行浙江分行台州市天台支行营业部 天台县城关劳动路65号 (0576)83881035<br />
中国工商银行浙江分行台州市温岭城区支行 温岭三星大道225号 (0576)86136886<br />
中国工商银行浙江分行台州市仙居支行营业部 仙居城北西路1号 (0576)87772915<br />
中国工商银行浙江分行台州市玉环支行营业部 玉环县珠港镇广陵路107号 (0576)87250627</p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/sharing/539/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GoDaddy $7.49的.COM域名优惠</title>
		<link>http://www.56bo.com/sharing/536</link>
		<comments>http://www.56bo.com/sharing/536#comments</comments>
		<pubDate>Sat, 24 Jul 2010 12:42:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[资源分享]]></category>
		<category><![CDATA[Godaddy]]></category>
		<category><![CDATA[Godaddy优惠券]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=536</guid>
		<description><![CDATA[GoDaddy新优惠l链接：Go Daddy $7.49 .com Sale!
.COM域名第一年 $7.49
优惠码/优惠券有效期：未知
]]></description>
			<content:encoded><![CDATA[<p>GoDaddy新优惠l链接：<a title="Go Daddy $7.49 .com Sale!" href="http://affiliate.godaddy.com/redirect/40D4E2BE54E4E501010E8ED591AA7311C540B380B4F18FC72D562C4B024BDA87">Go Daddy $7.49 .com Sale!</a><br />
.COM域名第一年 $7.49<br />
优惠码/优惠券有效期：未知</p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/sharing/536/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Struts2/XWork &lt; 2.2.0 Remote Command Execution Vulnerability</title>
		<link>http://www.56bo.com/jishu/532</link>
		<comments>http://www.56bo.com/jishu/532#comments</comments>
		<pubDate>Sat, 17 Jul 2010 00:09:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术大类]]></category>
		<category><![CDATA[Struts2]]></category>
		<category><![CDATA[XWork]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=532</guid>
		<description><![CDATA[测试方法:
本站提供程序(方法)可能带有攻击性,仅供安全研究与教学之用,风险自负!
Friday, July 9, 2010
CVE-2010-1870: Struts2/XWork remote command execution
Update Tue Jul 13 2010: Added proof of concept
Apache Struts team has announced uploaded but has not released, due to an unreasonably prolonged voting process, the 2.2.0 release of the Struts2 web framework which fixes vulnerability that I&#8217;ve reported to them on May 31st 2010. Apache Struts team [...]]]></description>
			<content:encoded><![CDATA[<p>测试方法:<br />
本站提供程序(方法)可能带有攻击性,仅供安全研究与教学之用,风险自负!<br />
Friday, July 9, 2010<br />
CVE-2010-1870: Struts2/XWork remote command execution<br />
Update Tue Jul 13 2010: Added proof of concept</p>
<p>Apache Struts team has announced uploaded but has not released, due to an unreasonably prolonged voting process, the 2.2.0 release of the Struts2 web framework which fixes vulnerability that I&#8217;ve reported to them on May 31st 2010. Apache Struts team is ridiculously slow in releasing the fixed version and all of my attempts to expedite the process have failed.<br />
<span id="more-532"></span><br />
Introduction<br />
Struts2 is Struts + WebWork. WebWork in turn uses XWork to invoke actions and call appropriate setters/getters based on HTTP parameter names, which is achieved by treating each HTTP parameter name as an OGNL statement. OGNL (Object Graph Navigation Language) is what turns:</p>
<p>user.address.city=Bishkek&amp;user['favoriteDrink']=kumys</p>
<p>into</p>
<p>action.getUser().getAddress().setCity(&#8220;Bishkek&#8221;)<br />
action.getUser().setFavoriteDrink(&#8220;kumys&#8221;)</p>
<p>This is performed by the ParametersInterceptor, which calls ValueStack.setValue() with user-supplied HTTP parameters as arguments.<br />
NOTE: If you are using XWork&#8217;s ParametersInterceptor or operate with OGNL ValueStack in a similar way then you are vulnerable (ParametersInterceptor is on by default in struts-default.xml).</p>
<p>In addition to property getting/setting, OGNL supports many more features:</p>
<p>* Method calling: foo()<br />
* Static method calling: @java.lang.System@exit(1)<br />
* Constructor calling: new MyClass()<br />
* Ability to work with context variables: #foo = new MyClass()<br />
* And more&#8230;</p>
<p>Since HTTP parameter names are OGNL statements, to prevent an attacker from calling arbitrary methods via HTTP parameters XWork has the following two variables guarding methods execution:</p>
<p>* OgnlContext&#8217;s property &#8216;xwork.MethodAccessor.denyMethodExecution&#8217; (set to true by default)<br />
* SecurityMemberAccess private field called &#8216;allowStaticMethodAccess&#8217; (set to false by default)</p>
<p>OGNL Context variables<br />
To make it easier for developer to access various frequently needed objects XWork provides several predefined context variables:</p>
<p>* #application<br />
* #session<br />
* #request<br />
* #parameters<br />
* #attr</p>
<p>These variables represent various server-side objects, such as session map. To prevent attackers from tampering with server-side objects XWork&#8217;s ParametersInterceptor disallowed # in parameter names. About a year ago I found a way to bypass that protection(XW-641) using Java&#8217;s unicode String representation: \u0023. At the time I felt like the fix that was implemented (OGNL value stack clearing) was insufficient, but had not time to investigate this further.</p>
<p>CVE-2010-1870<br />
Earlier this year I finally got a chance to look at this again and found that in addition to the above mentioned context variables there were more:</p>
<p>* #context &#8211; OgnlContext, the one guarding method execution based on &#8216;xwork.MethodAccessor.denyMethodExecution&#8217; property value.<br />
* #_memberAccess &#8211; SecurityMemberAccess, whose &#8216;allowStaticAccess&#8217; field prevented static method execution.<br />
* #root<br />
* #this<br />
* #_typeResolver<br />
* #_classResolver<br />
* #_traceEvaluations<br />
* #_lastEvaluation<br />
* #_keepLastEvaluation</p>
<p>You can probably see the problem already. Using XW-641 trick I was able to modify the values that were guarding Java methods execution and run arbitrary Java code:</p>
<p>#_memberAccess['allowStaticMethodAccess'] = true<br />
#foo = new java .lang.Boolean(&#8220;false&#8221;)<br />
#context['xwork.MethodAccessor.denyMethodExecution'] = #foo<br />
#rt = @java.lang.Runtime@getRuntime()<br />
#rt.exec(&#8216;mkdir /tmp/PWNED&#8217;)</p>
<p>Actual proof of concept had to use OGNL&#8217;s expression evaluation when crafting HTTP request. PoC for this bug will be published on July 12 2010. To test whether your application is vulnerable you can use the following proof of concept, which will call java.lang.Runtime.getRuntime().exit(1):</p>
<p>http://mydomain/MyStruts.action?(&#8216;\u0023_memberAccess[\'allowStaticMethodAccess\']&#8216;)(meh)=true&amp;(aaa)((&#8216;\u0023context[\'xwork.MethodAccessor.denyMethodExecution\']\u003d\u0023foo&#8217;)(\u0023foo\u003dnew%20java.lang.Boolean(&#8220;false&#8221;)))&amp;(asdf)((&#8216;\u0023rt.exit(1)&#8217;)(\u0023rt\u003d@java.lang.Runtime@getRuntime()))=1</p>
<p>Fixing CVE-2010-1870<br />
Struts2 users must upgrade to the 2.2.0, which whitelists a set of characters that excludes characters required to exploit this vulnerability.</p>
<p>In cases where upgrade isn&#8217;t possible you can use ParameterInterceptor&#8217;s &#8220;excludeParams&#8221; parameter to whitelist the characters required for your application to operate correctly(usually A-z0-9_.&#8217;&#8221;[]) alternatively you can blacklist \()@ which are the characters required to exploit this bug.</p>
<p>Timeline<br />
May 31st &#8211; email to security@struts.apache.org with vulnerability report.<br />
June 4th &#8211; no response received, contacted developers again.<br />
June 5th &#8211; had to find an XWork developer on IRC to look at this.<br />
June 16th &#8211; Atlassian fixes vulnerability in its products. Atlassian and Struts developers worked together in coming up with the fix.<br />
June 20th &#8211; 1-line fix commited<br />
June 29th &#8211; Struts 2.2.0 release voting process started and is still going&#8230;</p>
</div>
<p><span> </span>.*\\u0023.*<br />
/example/HelloWorld.jsp</p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/jishu/532/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用IdHttp时，让界面不僵死的方法</title>
		<link>http://www.56bo.com/jishu/530</link>
		<comments>http://www.56bo.com/jishu/530#comments</comments>
		<pubDate>Fri, 16 Jul 2010 05:56:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术大类]]></category>
		<category><![CDATA[delphi]]></category>
		<category><![CDATA[idhttp]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=530</guid>
		<description><![CDATA[因为TIdHttp是阻塞式的，所以，如果传输的文件比较大的时候，整个界面都动弹不得，和死了一样。
解决方法有两个：
1. 把对IdHttp的处理，放入线程内。搞个线程也很简单，就是一旦数据交互起来，麻烦一些。
2. 好久没用delphi了，不想写太复杂的代码了，这个简单的应用里，只要界面不僵死就可以了。所以不想用线程。第二个方法就是，往界面里放入一个TIdAntiFreeze控件，(真怀念delphi的方便)。不要高兴的太早，可能界面还是动不了的。因为默认情况下idAntiFreeze的OnlyWhenIdle属性是true，改为false,才会真正的antiFreeze。
]]></description>
			<content:encoded><![CDATA[<p>因为TIdHttp是阻塞式的，所以，如果传输的文件比较大的时候，整个界面都动弹不得，和死了一样。</p>
<p>解决方法有两个：</p>
<p>1. 把对IdHttp的处理，放入线程内。搞个线程也很简单，就是一旦数据交互起来，麻烦一些。</p>
<p>2. 好久没用delphi了，不想写太复杂的代码了，这个简单的应用里，只要界面不僵死就可以了。所以不想用线程。第二个方法就是，往界面里放入一个TIdAntiFreeze控件，(真怀念delphi的方便)。不要高兴的太早，可能界面还是动不了的。因为默认情况下idAntiFreeze的OnlyWhenIdle属性是true，改为false,才会真正的antiFreeze。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/jishu/530/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>卓越网</title>
		<link>http://www.56bo.com/taobaodian/528</link>
		<comments>http://www.56bo.com/taobaodian/528#comments</comments>
		<pubDate>Wed, 07 Jul 2010 06:05:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[淘宝酷店]]></category>
		<category><![CDATA[卓越]]></category>

		<guid isPermaLink="false">http://www.56bo.com/?p=528</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><iframe id="baiduSpFrame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="468" height="60" src="http://spcode.baidu.com/spcode/spstyle/style3078.jsp?tn=yetiddbb_sp&#038;ctn=0&#038;styleid=3078"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.56bo.com/taobaodian/528/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

