由 volcano_laugh 在 05-25-2003 11:41 发表:
救命呀!新改的小区宽带,为什么通不过web验证?上不了网了!
以前一直用拨号,前天新改成了小区宽带,可是一切配置正常,为什么怎么也通不过web页面验证,上不去网(windows下上网正常!)一登陆上对方的认证界面之后,输入正确的id和密码后就报了一个"此文档中无数据!"的警告,然后就回到认证界面上!求l老大们帮忙看看!具体环境如下:新做的完全安装rh9.0, ip和网关还有dns全部正确!netscape7.02和rh9.0自带的mozilla,所有硬件运行正常!! 认证页面是: http://210.82.108.6/auth.asp ! 具体内容如下:
1<html> <head>
2<meta content="no-cache" http-equiv="Pragma"/>
3<style type="text/css">
4
5<!--
6
7.p9 { font-size: 9pt}
8
9a:visited { color: #0000FF; text-decoration: none}
10
11a:link { color: #0000FF; text-decoration: none}
12
13a:hover { color: #FF0000}
14
15\-->
16
17</style>
18<script>
19
20var hex_chr = "0123456789abcdef";
21
22function rhex(num)
23
24{
25
26str = "";
27
28for(j = 0; j <= 3; j++)
29
30str += hex_chr.charAt((num >> (j * 8 + 4)) & 0x0F) +
31
32hex_chr.charAt((num >> (j * ) & 0x0F);
33
34return str;
35
36}
37
38function str2blks_MD5(str)
39
40{
41
42nblk = ((str.length + >> 6) + 1;
43
44blks = new Array(nblk * 16);
45
46for(i = 0; i < nblk * 16; i++) blks[i] = 0;
47
48for(i = 0; i < str.length; i++)
49
50blks[i >> 2] |= str.charCodeAt(i) << ((i % 4) * ;
51
52blks[i >> 2] |= 0x80 << ((i % 4) * ;
53
54blks[nblk * 16 - 2] = str.length * 8;
55
56return blks;
57
58}
59
60function add(x, y)
61
62{
63
64var lsw = (x & 0xFFFF) + (y & 0xFFFF);
65
66var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
67
68return (msw << 16) | (lsw & 0xFFFF);
69
70}
71
72function rol(num, cnt)
73
74{
75
76return (num << cnt) | (num >>> (32 - cnt));
77
78}
79
80function cmn(q, a, b, x, s, t)
81
82{
83
84return add(rol(add(add(a, q), add(x, t)), s), b);
85
86}
87
88function ff(a, b, c, d, x, s, t)
89
90{
91
92return cmn((b & c) | ((~b) & d), a, b, x, s, t);
93
94}
95
96function gg(a, b, c, d, x, s, t)
97
98{
99
100return cmn((b & d) | (c & (~d)), a, b, x, s, t);
101
102}
103
104function hh(a, b, c, d, x, s, t)
105
106{
107
108return cmn(b ^ c ^ d, a, b, x, s, t);
109
110}
111
112function ii(a, b, c, d, x, s, t)
113
114{
115
116return cmn(c ^ (b | (~d)), a, b, x, s, t);
117
118}
119
120function calcMD5(str)
121
122{
123
124x = str2blks_MD5(str);
125
126a = 1732584193;
127
128b = -271733879;
129
130c = -1732584194;
131
132d = 271733878;
133
134
135
136for(i = 0; i < x.length; i += 16)
137
138{
139
140olda = a;
141
142oldb = b;
143
144oldc = c;
145
146oldd = d;
147
148
149
150a = ff(a, b, c, d, x[i+ 0], 7 , -680876936);
151
152d = ff(d, a, b, c, x[i+ 1], 12, -389564586);
153
154c = ff(c, d, a, b, x[i+ 2], 17, 606105819);
155
156b = ff(b, c, d, a, x[i+ 3], 22, -1044525330);
157
158a = ff(a, b, c, d, x[i+ 4], 7 , -176418897);
159
160d = ff(d, a, b, c, x[i+ 5], 12, 1200080426);
161
162c = ff(c, d, a, b, x[i+ 6], 17, -1473231341);
163
164b = ff(b, c, d, a, x[i+ 7], 22, -45705983);
165
166a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
167
168d = ff(d, a, b, c, x[i+ 9], 12, -1958414417);
169
170c = ff(c, d, a, b, x[i+10], 17, -42063);
171
172b = ff(b, c, d, a, x[i+11], 22, -1990404162);
173
174a = ff(a, b, c, d, x[i+12], 7 , 1804603682);
175
176d = ff(d, a, b, c, x[i+13], 12, -40341101);
177
178c = ff(c, d, a, b, x[i+14], 17, -1502002290);
179
180b = ff(b, c, d, a, x[i+15], 22, 1236535329);
181
182
183
184a = gg(a, b, c, d, x[i+ 1], 5 , -165796510);
185
186d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
187
188c = gg(c, d, a, b, x[i+11], 14, 643717713);
189
190b = gg(b, c, d, a, x[i+ 0], 20, -373897302);
191
192a = gg(a, b, c, d, x[i+ 5], 5 , -701558691);
193
194d = gg(d, a, b, c, x[i+10], 9 , 38016083);
195
196c = gg(c, d, a, b, x[i+15], 14, -660478335);
197
198b = gg(b, c, d, a, x[i+ 4], 20, -405537848);
199
200a = gg(a, b, c, d, x[i+ 9], 5 , 568446438);
201
202d = gg(d, a, b, c, x[i+14], 9 , -1019803690);
203
204c = gg(c, d, a, b, x[i+ 3], 14, -187363961);
205
206b = gg(b, c, d, a, x[i+ 8], 20, 1163531501);
207
208a = gg(a, b, c, d, x[i+13], 5 , -1444681467);
209
210d = gg(d, a, b, c, x[i+ 2], 9 , -51403784);
211
212c = gg(c, d, a, b, x[i+ 7], 14, 1735328473);
213
214b = gg(b, c, d, a, x[i+12], 20, -1926607734);
215
216
217
218a = hh(a, b, c, d, x[i+ 5], 4 , -378558);
219
220d = hh(d, a, b, c, x[i+ 8], 11, -2022574463);
221
222c = hh(c, d, a, b, x[i+11], 16, 1839030562);
223
224b = hh(b, c, d, a, x[i+14], 23, -35309556);
225
226a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
227
228d = hh(d, a, b, c, x[i+ 4], 11, 1272893353);
229
230c = hh(c, d, a, b, x[i+ 7], 16, -155497632);
231
232b = hh(b, c, d, a, x[i+10], 23, -1094730640);
233
234a = hh(a, b, c, d, x[i+13], 4 , 681279174);
235
236d = hh(d, a, b, c, x[i+ 0], 11, -358537222);
237
238c = hh(c, d, a, b, x[i+ 3], 16, -722521979);
239
240b = hh(b, c, d, a, x[i+ 6], 23, 76029189);
241
242a = hh(a, b, c, d, x[i+ 9], 4 , -640364487);
243
244d = hh(d, a, b, c, x[i+12], 11, -421815835);
245
246c = hh(c, d, a, b, x[i+15], 16, 530742520);
247
248b = hh(b, c, d, a, x[i+ 2], 23, -995338651);
249
250
251
252a = ii(a, b, c, d, x[i+ 0], 6 , -198630844);
253
254d = ii(d, a, b, c, x[i+ 7], 10, 1126891415);
255
256c = ii(c, d, a, b, x[i+14], 15, -1416354905);
257
258b = ii(b, c, d, a, x[i+ 5], 21, -57434055);
259
260a = ii(a, b, c, d, x[i+12], 6 , 1700485571);
261
262d = ii(d, a, b, c, x[i+ 3], 10, -1894986606);
263
264c = ii(c, d, a, b, x[i+10], 15, -1051523);
265
266b = ii(b, c, d, a, x[i+ 1], 21, -2054922799);
267
268a = ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
269
270d = ii(d, a, b, c, x[i+15], 10, -30611744);
271
272c = ii(c, d, a, b, x[i+ 6], 15, -1560198380);
273
274b = ii(b, c, d, a, x[i+13], 21, 1309151649);
275
276a = ii(a, b, c, d, x[i+ 4], 6 , -145523070);
277
278d = ii(d, a, b, c, x[i+11], 10, -1120210379);
279
280c = ii(c, d, a, b, x[i+ 2], 15, 718787259);
281
282b = ii(b, c, d, a, x[i+ 9], 21, -343485551);
283
284
285
286a = add(a, olda);
287
288b = add(b, oldb);
289
290c = add(c, oldc);
291
292d = add(d, oldd);
293
294}
295
296return rhex(a) + rhex(b) + rhex(c) + rhex(d);
297
298}
299
300function setMD5Passwd(form)
301
302{
303
304if (form.chap.value == "0") return true;
305
306str = '0' + form.passwd.value + form.random.value;
307
308form.passwd.value = calcMD5(str);
309
310return true;
311
312}
313
314</script>
315</head>
316<p align="center">
317<p align="center">
318<p align="center">
319<form action="/fcgi/websAuth" method="POST" onsubmit="setMD5Passwd(this)">
320<table align="center" class="p9">
321<tr>
322<td align="right"></td>
323<td align="center"><font color="#FFFFFF" size="3">Welcome !</font></td>
324</tr>
325<tr>
326<td align="right"><font color="#FFFFFF">User ID: </font></td>
327<td>
328</td>
329</tr>
330<tr>
331<td align="right"><font color="#FFFFFF">Password: </font></td>
332<td>
333</td>
334</tr>
335<tr>
336<td align="right"><font color="#FFFFFF">Service: </font></td>
337<td>
338<select name="service">
339<option selected="" value="internet">internet</option>
340</select>
341</td>
342</tr>
343<tr>
344<td align="right" colspan="2">
345<div align="center">
346</div>
347</td>
348</tr>
349<tr><td align="right" colspan="2">
350<div align="left">
351<p>
352<script src="http://www.bw168.com/webportal/js/text.js"></script>
353</p></div>
354</td></tr>
355</table>
356</form>
357</p></p></p></html>
windows 下的WEB 认证地址是: http://210.82.108.6/cauth.asp !还请大虾火速救命,上不去网,我还怎么活呀!!
由 zest 在 05-25-2003 18:43 发表:
认证页面源码似乎不全,是用 mozilla 得到的吗?
你给出的地址我这无法访问,可能只对它自己的用户开放吧。
参看我的这个帖子:
http://linuxsir.com/bbs/showthread....;threadid=40499
由 cotacota 在 05-25-2003 19:58 发表:
哈哈,微软的“.asp“网页,当然不行啦!
看这里吧:
http://www.linuxeden.com/download/s....php?softid=861
由 volcano_laugh 在 05-25-2003 20:47 发表:
回 zest !
谢了!就是对自己的用户开放的!!需要验证ip的!!
这头的是!!10.74.7.51 掩码:255.255.0.0网关:10.74.0.1
dns:210.82.8.1 !!
由 zest 在 05-25-2003 20:55 发表:
认证页面源码似乎不全,是用 mozilla 得到的吗?
最好用 mozilla 获得。
由 volcano_laugh 在 05-25-2003 22:23 发表:
回 zest
是用 mozilla 获得的!!
由 zest 在 05-25-2003 22:30 发表:
我在mozilla 中打开这个文件,没有显示任何内容。
由 volcano_laugh 在 05-25-2003 22:44 发表:
回 zest !
我刚从新用mozilla得到源码!!你再看看,谢谢了!!
1<html>
2<head>
3<meta content="no-cache" http-equiv="Pragma"/>
4<style type="text/css">
5
6<!--
7
8.p9 { font-size: 9pt}
9
10a:visited { color: #0000FF; text-decoration: none}
11
12a:link { color: #0000FF; text-decoration: none}
13
14a:hover { color: #FF0000}
15
16\-->
17
18</style>
19<script></script></head></html>