﻿<?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>BlogJava-★Daniel's Blog★-文章分类-Java</title><link>http://www.blogjava.net/Daniel2005/category/4952.html</link><description>URL:http://www.blogjava.net/Daniel2005</description><language>zh-cn</language><lastBuildDate>Thu, 19 Apr 2007 14:21:02 GMT</lastBuildDate><pubDate>Thu, 19 Apr 2007 14:21:02 GMT</pubDate><ttl>60</ttl><item><title>如何避免被破解!</title><link>http://www.blogjava.net/Daniel2005/articles/111351.html</link><dc:creator>泌鲁沙夫</dc:creator><author>泌鲁沙夫</author><pubDate>Tue, 17 Apr 2007 09:04:00 GMT</pubDate><guid>http://www.blogjava.net/Daniel2005/articles/111351.html</guid><wfw:comment>http://www.blogjava.net/Daniel2005/comments/111351.html</wfw:comment><comments>http://www.blogjava.net/Daniel2005/articles/111351.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Daniel2005/comments/commentRss/111351.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Daniel2005/services/trackbacks/111351.html</trackback:ping><description><![CDATA[&nbsp;btw, If you RUN IIS 6.0, just disable access to root directory using &amp;quote;..\&amp;quote; and also, disable &amp;quote;Detailed Error Message&amp;quote; and replace it with &amp;quote;Sorry, and error has occured&amp;quote; this way, there is no way for the attempting hacker to get any info back. Also in your ASP code or ASP.NET either use stored procedures, or make addition check statements to look at your Request.QueryString(&amp;quote;&amp;quote;) or Request.Form(&amp;quote;&amp;quote;)... like.. do a instr(stringname,&amp;quote;;&amp;quote;) test and see if &amp;quote;;&amp;quote; is found, if so throw exception. because if you enter data into a vulnerable form this will happen: <br>Lets say you input &amp;quote;test' ; &lt;any SQL Command&gt;;&amp;quote; into the form, then for the following SQL Query <br>SQLString = &amp;quote;Select * From Table1 where Username='&amp;quote; &amp; userName &amp; &amp;quote;'&amp;quote;... <br>It would look like : <br>Select * From Table1 where Username='test'; &lt;any SQL Command&gt;; <br>Which would then execute whatever comes after. <br><br>And you should test for other similar things, such as comamnds to Delete records and so forth. :) 
<img src ="http://www.blogjava.net/Daniel2005/aggbug/111351.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Daniel2005/" target="_blank">泌鲁沙夫</a> 2007-04-17 17:04 <a href="http://www.blogjava.net/Daniel2005/articles/111351.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>