<?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>SIDE-ALICE</title>
	<atom:link href="http://sidealice.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sidealice.com</link>
	<description>..::欢迎来到SIDE-ALICE::..	[ACG+Tech+Orz]</description>
	<lastBuildDate>Tue, 03 Apr 2012 17:17:59 +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>PHPWind strcode() 加密算法设计缺陷</title>
		<link>http://sidealice.com/2012/04/phpwind-strcode-%e5%8a%a0%e5%af%86%e7%ae%97%e6%b3%95%e8%ae%be%e8%ae%a1%e7%bc%ba%e9%99%b7/</link>
		<comments>http://sidealice.com/2012/04/phpwind-strcode-%e5%8a%a0%e5%af%86%e7%ae%97%e6%b3%95%e8%ae%be%e8%ae%a1%e7%bc%ba%e9%99%b7/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 17:17:59 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[PHPWind]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2124</guid>
		<description><![CDATA[http://hi.baidu.com/aullik5/blog/item/c95b9b23a06d17eed7cae2ef.html 转自上方链接。 本文只是补充OWASP 2011上主题演讲的一些细节。想了解背景可以参考此PPT。 由于时间匆忙，且家里发生了一些事情，所以这些都是2个月前的一些研究结果。代码也写得很粗糙，但基本能用。 描述 在PHPWind 8.x 中（甚至包括一些老版本），strcode()函数是核心的加密函数，用于很多地方，比如cookie的加密。但strcode()函数只是简单的实现了XOR加密，由于缺乏HMAC和IV，使得strcode() 存在Reused Key Attack 与 Bit-flipping Attack。攻击者通过一定的方法能够解密任意密文，或者构造出任意明文的密文。 细节 解密任意密文 在common.php 中： /** * 加密、解密字符串 * *@global string $db_hash *@global array $pwServer *@param $string 待处理字符串 *@param $action 操作，ENCODE&#124;DECODE *@return string */ function StrCode($string, $action =&#8217;ENCODE&#8217;) { $action!= &#8216;ENCODE&#8217; &#038;&#038; $string = base64_decode($string); $code= ”; $key= substr(md5($GLOBALS['pwServer']['HTTP_USER_AGENT'] . $GLOBALS['db_hash']), [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/phpwind-strcode-%e5%8a%a0%e5%af%86%e7%ae%97%e6%b3%95%e8%ae%be%e8%ae%a1%e7%bc%ba%e9%99%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz! authcode() 弱IV缺陷</title>
		<link>http://sidealice.com/2012/04/discuz-authcode-%e5%bc%b1iv%e7%bc%ba%e9%99%b7/</link>
		<comments>http://sidealice.com/2012/04/discuz-authcode-%e5%bc%b1iv%e7%bc%ba%e9%99%b7/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 17:16:58 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2122</guid>
		<description><![CDATA[http://hi.baidu.com/aullik5/blog/item/0dee35d020d798259a502744.html 写的很好。转自上方 与上一篇一样，此文是2011 OWASP主题演讲的补充。本文中也会发布在演讲中提到的演示代码。如果读者对密码学不是很熟悉，请先阅读之前的两篇blog文章。 Discuz!的authcode()函数是一个经典的流密码算法实现，discuz和ucenter的很多产品都使用此函数进行加解密。我从网上找了一份算法分析，并自己补充了一些注释，如下（觉得枯燥的朋友也可以跳过此部分，不影响阅读）： ====================================================================== // $string： 明文 或 密文 // $operation：DECODE表示解密,其它表示加密 // $key： 密匙 // $expiry：密文有效期 //字符串解密加密 function authcode($string, $operation = &#8216;DECODE&#8217;, $key = ”, $expiry = 0) { // 动态密匙长度，相同的明文会生成不同密文就是依靠动态密匙 (初始化向量IV) $ckey_length = 4; // 随机密钥长度 取值 0-32; // 加入随机密钥，可以令密文无任何规律，即便是原文和密钥完全相同，加密结果也会每次不同，增大破解难度。（实际上就是iv） // 取值越大，密文变动规律越大，密文变化 = 16 的 $ckey_length 次方 // 当此值为 0 时，则不产生随机密钥 // [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/discuz-authcode-%e5%bc%b1iv%e7%bc%ba%e9%99%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to calculate a good InnoDB log file size</title>
		<link>http://sidealice.com/2012/04/how-to-calculate-a-good-innodb-log-file-size/</link>
		<comments>http://sidealice.com/2012/04/how-to-calculate-a-good-innodb-log-file-size/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 16:54:57 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2120</guid>
		<description><![CDATA[Peter wrote a post a while ago about choosing a good InnoDB log file size.Â Not to pick on Peter, but the post actually kind of talks about a lot of things and then doesn’t tell you how to choose a good log file size!Â So I thought I’d clarify it a little. The basic [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/how-to-calculate-a-good-innodb-log-file-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下的正则表达式表现形式及好用工具sed与awk</title>
		<link>http://sidealice.com/2012/04/linux%e4%b8%8b%e7%9a%84%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e8%a1%a8%e7%8e%b0%e5%bd%a2%e5%bc%8f%e5%8f%8a%e5%a5%bd%e7%94%a8%e5%b7%a5%e5%85%b7sed%e4%b8%8eawk/</link>
		<comments>http://sidealice.com/2012/04/linux%e4%b8%8b%e7%9a%84%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e8%a1%a8%e7%8e%b0%e5%bd%a2%e5%bc%8f%e5%8f%8a%e5%a5%bd%e7%94%a8%e5%b7%a5%e5%85%b7sed%e4%b8%8eawk/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 16:21:21 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2118</guid>
		<description><![CDATA[每次学新的一门编程语言，或者学习什么工具之类的时候，总是会有一章的内容在介绍正则表达式。 所以正则的基础就不详细介绍了(表示字符范围的转义通配符，闭包及正闭包区间，分组模式等等)，只是介绍一些正则在linux下的特殊扩展形式吧。 还有就是接受正则形式的模式串的各种工具，比如linux下的两把牛刀：sed 和 awk。 1 语系对正则表达式的影响 在linux下执行正则表达式，要考虑语系环境所带来的影响，LANG=C和LANG=zh_CN.gb2312时，[a-z]所选取的范围是不同的。 LANG=C，使用ascii编码，a-z表示的就是a-z，字母排列方式是A,B,C,D……Z 然后a,b,c,d……z LANG=zh_CN.gb2312，使用的是gb2312语系，排列方式为： a,A,b,B,c,C……z,Z 2 正则的基本语法 在linux的常用工具如grep,sed,awk中，基础的正则表达式并没有正闭包+（可以用cc*来等价c+），另外也没有d,w,s等转义符，拥有的正则表达式字符为： ^ 匹配行首 $ 行尾 . 任意字符 转义字符，如查找单引号开头的行 grep ^’ * 闭包区间 [] 字符集合 [c1-c2] 字符区间 (和语系变量LANG有关) [^] 字符集合之外 {n,m} 限定匹配次数范围 3 正则扩展语法 在linux的常用工具中，也提供了一些扩展的正则语法，如grep在执行时加上-E参数，，即可支持这些扩展语法： + 正闭包，c+等价cc* ? 0或1次匹配，等价{0,1} &#124; 或运算符，，（注意优先级低于连续和括号） () 组运算符，用于为或运算符&#124;提供连续的 字符组，优先级高于连续 4 特殊符号 前面说语系对字符范围[]是有影响的，所以为了避免影响，linux下为正则表达式制订了一些特殊符号，可以表示字符范围，如下： [:alnum:] 0-9 A-Z a-z 同w [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/linux%e4%b8%8b%e7%9a%84%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e8%a1%a8%e7%8e%b0%e5%bd%a2%e5%bc%8f%e5%8f%8a%e5%a5%bd%e7%94%a8%e5%b7%a5%e5%85%b7sed%e4%b8%8eawk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>开源ALM应用生命周期管理系统 jabox</title>
		<link>http://sidealice.com/2012/04/%e5%bc%80%e6%ba%90alm%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f-jabox/</link>
		<comments>http://sidealice.com/2012/04/%e5%bc%80%e6%ba%90alm%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f-jabox/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 14:55:49 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[alm]]></category>
		<category><![CDATA[jabox]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2114</guid>
		<description><![CDATA[Jabox ALM Copyright © 2009-, Dimitris Kapanidis. Licensed under GPL License. About Jabox ALM is an open source Application Lifecycle Management platform. It provides a full-blown Java Enterprise Development Factory using your favorite tools, in less than 5 minutes. It&#8217;s purpose is to manage a seemless integration between Software Configuration Management (SCM), Issue Tracking System [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/%e5%bc%80%e6%ba%90alm%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f-jabox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPTraf linux流量监测（可基于ip）</title>
		<link>http://sidealice.com/2012/04/iptraf-linux%e6%b5%81%e9%87%8f%e7%9b%91%e6%b5%8b%ef%bc%88%e5%8f%af%e5%9f%ba%e4%ba%8eip%ef%bc%89/</link>
		<comments>http://sidealice.com/2012/04/iptraf-linux%e6%b5%81%e9%87%8f%e7%9b%91%e6%b5%8b%ef%bc%88%e5%8f%af%e5%9f%ba%e4%ba%8eip%ef%bc%89/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 14:25:40 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[iptraf]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2111</guid>
		<description><![CDATA[sudo apt-get install iptraf 就可以安装好了。 运行 iptraf可以图形化查看。简单易用。比nload有利于查看ip的流量情况。尽快诊断。 相关文章2010年01月11日 -- ubuntu 安装 redmine 0.8.7 提示错误”No such file or directory &#8211; /tmp/mysql.sock” (0)配置文件里面添加如下内容: socket: /var/run/mysqld/mysqld.so...2009年09月19日 -- Beginning Ubuntu Linux, Fourth Edition (0) Description: Beginning Ubuntu Linux, Fourth Edit...2007年07月20日 -- Ubuntu 7.10 (Gutsy Gibbon) Tribe 3发布! (0)大概是南非时间2007年7月19日下午15点,伴随着下载点的建立和上传ISO镜像的完成,终于迎来了U...2005年07月13日 -- [LINUX]Ubuntu LINUX (0) http://www.ubuntu.org.cn/ 《Mandriva Lin...]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/iptraf-linux%e6%b5%81%e9%87%8f%e7%9b%91%e6%b5%8b%ef%bc%88%e5%8f%af%e5%9f%ba%e4%ba%8eip%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux禁止IP、解封IP的方法</title>
		<link>http://sidealice.com/2012/04/linux%e7%a6%81%e6%ad%a2ip%e3%80%81%e8%a7%a3%e5%b0%81ip%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://sidealice.com/2012/04/linux%e7%a6%81%e6%ad%a2ip%e3%80%81%e8%a7%a3%e5%b0%81ip%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 14:23:56 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2109</guid>
		<description><![CDATA[在Linux服务器被攻击的时候，有的时候会有几个主力IP。如果能拒绝掉这几个IP的攻击的话，会大大减轻服务器的压力，说不定服务器就能恢复正常了。 在Linux下封停IP，有封杀网段和封杀单个IP两种形式。一般来说，现在的攻击者不会使用一个网段的IP来攻击（太招摇了），IP一般都是散列的。于是下面就详细说明一下封杀单个IP的命令，和解封单个IP的命令。 在Linux下，使用ipteables来维护IP规则表。要封停或者是解封IP，其实就是在IP规则表中对入站部分的规则进行添加操作。 要封停一个IP，使用下面这条命令： #iptables -I INPUT -s ***.***.***.*** -j DROP 要解封一个IP，使用下面这条命令： #iptables -D INPUT -s ***.***.***.*** -j DROP 参数-I是表示Insert（添加），-D表示Delete（删除）。后面跟的是规则，INPUT表示入站，***.***.***.***表示要封停的IP，DROP表示放弃连接。 此外，还可以使用下面的命令来查看当前的IP规则表： #iptables –list 比如现在要将123.44.55.66这个IP封杀，就输入： #iptables -I INPUT -s 123.44.55.66 -j DROP 要解封则将-I换成-D即可，前提是iptables已经有这条记录。如果要想清空封掉的IP地址，可以输入： #iptables –flush 要添加IP段到封停列表中，使用下面的命令： #iptables -I INPUT -s 121.0.0.0/8 -j DROP 相关文章2012年03月21日 -- TwSMS 發簡訊 (Linux C 版) (0)台灣簡訊(TwSMS)是國內一家線上傳簡訊的服務商，提供文字簡訊、語音簡訊等服務，價格也很合理，最重...2009年09月29日 -- Redhat AS4 sendmail m4配置文件找不到的解决方法 [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/linux%e7%a6%81%e6%ad%a2ip%e3%80%81%e8%a7%a3%e5%b0%81ip%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JS 加解密代码</title>
		<link>http://sidealice.com/2012/04/js-%e5%8a%a0%e8%a7%a3%e5%af%86%e4%bb%a3%e7%a0%81/</link>
		<comments>http://sidealice.com/2012/04/js-%e5%8a%a0%e8%a7%a3%e5%af%86%e4%bb%a3%e7%a0%81/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 14:22:36 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[packer]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2106</guid>
		<description><![CDATA[http://dean.edwards.name/packer/ http://jsbeautifier.org/ &#160; javascript的代码可读化，解密packer的代码。 相关文章2009年11月12日 -- Ext JS 3.0 Cookbook 实例手册 (0) Clear step-by-step recipes for building impr...]]></description>
		<wfw:commentRss>http://sidealice.com/2012/04/js-%e5%8a%a0%e8%a7%a3%e5%af%86%e4%bb%a3%e7%a0%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mongodb 在php上 sql语法的方式</title>
		<link>http://sidealice.com/2012/03/mongodb-%e5%9c%a8php%e4%b8%8a-sql%e8%af%ad%e6%b3%95%e7%9a%84%e6%96%b9%e5%bc%8f/</link>
		<comments>http://sidealice.com/2012/03/mongodb-%e5%9c%a8php%e4%b8%8a-sql%e8%af%ad%e6%b3%95%e7%9a%84%e6%96%b9%e5%bc%8f/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 19:39:30 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2102</guid>
		<description><![CDATA[SQL Statement Mongo Query Language Statement CREATE TABLE USERS (a Number, b Number) Implicit or use MongoDB::createCollection(). INSERT INTO USERS VALUES(1,1) $db-&#62;users-&#62;insert(array(“a” =&#62; 1, “b” =&#62; 1)); SELECT a,b FROM users $db-&#62;users-&#62;find(array(), array(“a” =&#62; 1, “b” =&#62; 1)); SELECT * FROM users WHERE age=33 $db-&#62;users-&#62;find(array(“age” =&#62; 33)); SELECT a,b FROM users WHERE age=33 $db-&#62;users-&#62;find(array(“age” =&#62; 33), [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/03/mongodb-%e5%9c%a8php%e4%b8%8a-sql%e8%af%ad%e6%b3%95%e7%9a%84%e6%96%b9%e5%bc%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FastDFS的配置、部署与API使用解读（1）Get Started with FastDFS</title>
		<link>http://sidealice.com/2012/03/fastdfs%e7%9a%84%e9%85%8d%e7%bd%ae%e3%80%81%e9%83%a8%e7%bd%b2%e4%b8%8eapi%e4%bd%bf%e7%94%a8%e8%a7%a3%e8%af%bb%ef%bc%881%ef%bc%89get-started-with-fastdfs/</link>
		<comments>http://sidealice.com/2012/03/fastdfs%e7%9a%84%e9%85%8d%e7%bd%ae%e3%80%81%e9%83%a8%e7%bd%b2%e4%b8%8eapi%e4%bd%bf%e7%94%a8%e8%a7%a3%e8%af%bb%ef%bc%881%ef%bc%89get-started-with-fastdfs/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 21:48:57 +0000</pubDate>
		<dc:creator>AirForce</dc:creator>
				<category><![CDATA[网站开发WebDev]]></category>
		<category><![CDATA[FastDFS]]></category>

		<guid isPermaLink="false">http://sidealice.com/?p=2099</guid>
		<description><![CDATA[来自：诗商·柳惊鸿CSDN博客，原文链接：FastDFS的配置、部署与API使用解读（1）入门使用教程 &#160; 1、背景 FastDFS是一款开源的、分布式文件系统（Distributed File System），由淘宝开发平台部资深架构师余庆开发。该开源项目的主页是 http://code.google.com/p/fastdfs 。可以通过fastdfs.sourceforge.net 下载。FastDFS论坛是 http://www.csource.org ，目前是指向 ChinaUnix 开源项目孵化平台的一个板块 FastDFS，网址为 bbs.chinaunix.net/forum-240-1.html 。 &#160; 2、上传流程 我们可以通过 FastDFS 对文件的上传过程，来初步了解 FastDFS 的基本架构。首先客户端 client 发起对 FastDFS 的文件传输动作，是通过连接到某一台 Tracker Server 的指定端口来实现的，Tracker Server 根据目前已掌握的信息，来决定选择哪一台 Storage Server ，然后将这个Storage Server 的地址等信息返回给 client，然后 client 再通过这些信息连接到这台 Storage Server，将要上传的文件传送到给 Storage Server上。 &#160; 3、架构简析 以上这段粗糙简单的描述，基本理清了 FastDFS 的上传过程。我们可以知道，FastDFS 是包括一组 Tracker Server 和 Storage Server [...]]]></description>
		<wfw:commentRss>http://sidealice.com/2012/03/fastdfs%e7%9a%84%e9%85%8d%e7%bd%ae%e3%80%81%e9%83%a8%e7%bd%b2%e4%b8%8eapi%e4%bd%bf%e7%94%a8%e8%a7%a3%e8%af%bb%ef%bc%881%ef%bc%89get-started-with-fastdfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

