• 标 题:第一次发长篇,格式不好,所以改改格式、排列一下! (2千字)
  • 作 者:yuppc
  • 时 间:2001-6-15 22:49:44
  • 链 接:http://bbs.pediy.com

这麽好的功能还要注册,而且还有附加条件。起其实他们为了促销Dr.eye软件,把软件的价格定到了一元钱了。
在网站上copy加入后发现果然不能进行网上查字典,通过对其网站的原码分析,发现了破解其网上免费使用的方法,也为提供类似服务的网站提个醒,

下面请看分析(注在***号中间的为注解,^^^^号为注意):

1. 原码为(用"查看源文件"查看其网页,找到下面):

***重点***<form method="post" action="" name="dicForm" onsubmit="return fsMySubmit('../dict/dict.phtml')">
^^^^^^^ ^^^^^^^^^^^^^^^^^
<TD rowSpan=2 width="106" background="../images/b4.gif" valign="middle">
<input type="text" name="w" size="15">
^^^^^
<input type=hidden name="ver" value="gb">
^^^^ ^^^^^^^^
</TD>
<TD rowSpan=2 width="107" background="../images/b4.gif" valign="middle">
<table width="83%" border="0" height="30" cellpadding="4" cellspacing="4">
<tr>
<td>
<input type="submit" style="FONT-SIZE: 9pt" name="Submit" value="查询">
^^^^^^^^^^^^
</td>
</tr>
</table></td>
2.在单词输入框中输入一个单词(如:type)用以测试其工作原理:

3.结果其新开一页显示单词"type"的中文解释,结果我发现在我浏览器地址栏的地址显示为
"http://www.dreye.com.cn/dict/dict.phtml?w=type&d=010300&account=123456&ver=gb"
^^^^^^^^ ^^^^^ ^^^^^^ ^^^^^^
大家看明白了吗,太清楚不过了:我们输入的单词"type"被付给变量"w"了,而变量"d"和"account"及其它们的值"01030"和"123456"就是我们要得到的通用帐号和密码了;

4.开始行动:1>前面form的action的值为"http://www.dreye.com.cn/dict/dict.phtml?w=Submit&d=010300&account=123456&ver=gb"
2>"onsubmit"的值为"return fsMySubmit('http://www.dreye.com.cn/dict/dict.phtml')"
************************************************************
5.因此在适当位置插入以下代码即可实现网上查字典(不用注册哟):
<form method="post" action="http://www.dreye.com.cn/dict/dict.phtml?w=Submit&d=010300&account=123456&ver=gb" name="dicForm" onsubmit="return fsMySubmit('http://www.dreye.com.cn/dict/dict.phtml')">
<TD rowSpan=2 width="106" background="../images/b4.gif" valign="middle">
<input type="text" name="w" size="15">
<input type=hidden name="ver" value="gb">
</TD>
<TD rowSpan=2 width="107" background="../images/b4.gif" valign="middle">
<table width="83%" border="0" height="30" cellpadding="4" cellspacing="4">
<tr>
<td>
<input type="submit" style="FONT-SIZE: 9pt" name="Submit" value="查询">
</td>
</tr>
</table>
</TD>
</form>