|
在zest兄 放出铁桶上网之后,深受启发,但直接应用却不行,没有所提到的/queryPort.jsp?ip="+clientIp+"&newbl="+languagetype
相似的都没有,只好苦读index.jsp.htm(为什么是.htm,稍后再说),我靠,20KB,看了我个小时。
闲话不说,
1.用Teleport Pro,webzip,等离线浏览软件在windows下 把整个网站下下来,我的10.27.1.81/index.jsp,把一些不相关的文件去掉,当然你不去掉也行
2。对下载下来的index.jsp.htm修改,原文件index.jsp,下载后就变成index.jsp.htm,如下
<html><!-- saved from url=(0022)http://internet.e-mail -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Welcome to PortalServer</title>
<script language="JavaScript" src="httpsurl.js" tppabs="http://10.27.1.81/httpsurl.js">
</script>
<SCRIPT LANGUAGE="JavaScript" >
function modiPrompt(FORM)
{
with(FORM) {
if (servicetype.selectedIndex==2)
{
id.value ="";
id.style.background = "lightgrey";
id.disabled = true;
inputpassword.value = "";
inputpassword.style.background = "lightgrey";
inputpassword.disabled = true;
}
else
{
id.style.background = "white";
id.disabled = false;
inputpassword.style.background = "white";
inputpassword.disabled = false;
}
}
}
function languageSelect()
{
var i=window.document.fm0.languagetype.value;
window.parent.location.href="index.jsp-newbl=.htm"/*tpa=http://10.27.1.81/index.jsp?newbl=*/+i;
}
var ifwait=false;
function iwait(t){
if(ifwait==true){
return true;
}else{
ifwait=true;
window.setTimeout("ifwait=false;",t);
return false;
}
}
function ipvalue()
{
//zhaihuachun IT13PT-276-E12206 2002-08-29 begin
window.document.fm0.ip.value = '218.94.51.98'; //这句改为你现在的ip,注意不要少了分号
//PortalClient.localIP;
if (((window.document.fm0.ip.value).toLowerCase()=="undefined")||(window.document.fm0.ip.value=="")) {
window.open("ipError.jsp.htm"/*tpa=http://10.27.1.81/ipError.jsp*/,"控件下载","width=500,height=350,top=100,left=300,toolbar=1,location=1,directories=1,menubar=1,scrollbars=1,resizable=1");
return false;
}
//zhaihuachun IT13PT-276-E12206 2002-08-29 end
return true;
}
function pwdcode(moreFlag)
{
var iw=iwait(5000);
if(iw) return false;
if(check(moreFlag))
{
//var url=gethttpsurl();
//url=url.substring(url.indexOf('//'));
url='10.27.1.81';
pswd=window.document.fm0.inputpassword.value;
service_type=window.document.fm0.servicetype.value;
if (ipvalue())
{
if(pswd!="") window.document.fm0.password.value = pswd;
window.document.fm0.action='https://10.27.1.81/servlet/scpservlet.UserDataReqLoginServlet';//这句,直接把url改成真实ip,
var Then = new Date()
Then.setTime(Then.getTime() + 60*1000*60*24*365 ) //60秒
if (window.document.fm0.saveflag.checked)
{
document.cookie = "username="+window.document.fm0.id.value+";expires="+ Then.toGMTString() ;
document.cookie = "password="+window.document.fm0.password.value+";expires="+ Then.toGMTString() ;
document.cookie = "saveflag=1;expires="+ Then.toGMTString() ;
}
else
{
document.cookie = "username="+window.document.fm0.id.value+";expires="+ Then.toGMTString() ;
document.cookie = "password="+""+";expires="+ Then.toGMTString() ;
document.cookie = "saveflag=0;expires="+ Then.toGMTString() ;
}
return true;
}
}
return false;
}
function close_online()
{
var url=gethttpsurl();
url=url.substring(0, url.length-10);
window.fm0.action=url+"/servlet/scpservlet.CloseReqServlet";
return true;
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="eg20.js" tppabs="http://10.27.1.81/eportalserver/eg20.js"></SCRIPT>
</head>
<body bgcolor="" background="" >
<center>
<div style="visibility:hidden">
<OBJECT
id="ortalClient"
classid="clsid:817C90B5-1688-42BE-9044-58422DB088B2"
codebase=http://10.27.1.81:80/PortalAX.cab#version=1,0,0,8
width=10
height=10
>
<param name='httpPrefix' value="index.htm" tppabs="http://10.27.1.81/">
<param name='httpsPrefix' value="index-1.htm" tppabs="https://10.27.1.81/">
<param name='LogEnabled' value='false'>
</OBJECT>
</div>
<script language='javascript'>
PortalClient.init_var();
</script>
<table bgcolor="#FFFFFF" border="0" cellpadding="0" Align="center" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumbe1">
<tr >
<td width="100%" align="center" >
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="rogId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<style type="text/css">
<!--
A:link {text-decoration: none; font-size:9pt}
A:visited {text-decoration: none; font-size:9pt}
A:active {text-decoration: none; font-size:9pt}
A:hover {text-decoration:none;color:#000080}body, table {font-size: 9pt}tr, td{font-size:9pt}
a:link.news3 {COLOR: #0000ff; TEXT-DECORATION: none}
-->
.d{FONT-SIZE: 8pt; color:#FFFF00;}
.c{FONT-SIZE: 10.5pt;TEXT-DECORATION: none;}
.e{FONT-SIZE: 10.5pt;font-family: Times New Roman;TEXT-DECORATION: none;}
</style></head>
<body topmargin="0" leftmargin="0" link="#000000" vlink="#000000" alink="#000000">
<table border="0" cellpadding="0" cellspacing="0" Align="center" style="border-collapse: collapse" bordercolor="#111111" width="760" id="AutoNumber1">
<tr>
<td width="100%" height="40">
<a target="_parent" href="javascript:if(confirm('http://www.supernj.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.supernj.com/'" tppabs="http://www.supernj.com/"><img border="0" src="logo.gif" tppabs="http://10.27.1.81/homepage/img/logo.gif" width="60" height="40"></a><img border="0" src="top1.gif" tppabs="http://10.27.1.81/homepage/img/top1.gif" width="300" height="40"></td>
</tr>
<tr>
<td width="100%" height="20" bgcolor="#0066CC" style="color: #FFFFFF; font-size: 9pt; font-weight: bold"> 南京电信欢迎您;今天是:<script language="JavaScript">
<!--
tmpDate = new Date();
date = tmpDate.getDate();
month= tmpDate.getMonth() + 1 ;
year= tmpDate.getYear();
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
// -->
</script> <a target="_parent" href="javascript:if(confirm('http://www.jlonline.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.jlonline.com/'" tppabs="http://www.jlonline.com/"><font color="FFFFF">金陵热线</font></a> <a target="_parent" href="javascript:if(confirm('http://www.990.net/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.990.net/'" tppabs="http://www.990.net/"><font color="FFFFF">990</font></a> <a target="_parent" href="javascript:if(confirm('http://www.supernj.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.supernj.com/'" tppabs="http://www.supernj.com/"><font color="FFFFF">超级金陵热线</font></a>
</td>
</tr>
<tr>
<td width="100%" height="1"></td>
</tr>
<tr>
<td width="100%" height="4" bgcolor="#33CC33"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" Align="center" style="border-collapse: collapse" bordercolor="#111111" width="760" id="AutoNumber2">
<tr>
<td width="320" valign="top">
<p align="center">
<a href="javascript:if(confirm('http://202.102.24.5/ad/entmail.htm \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://202.102.24.5/ad/entmail.htm'" tppabs="http://202.102.24.5/ad/entmail.htm" target="_blank">
<img border="0" src="headline2.jpg" tppabs="http://10.27.1.81/homepage/img/headline2.jpg" width="320" height="180"></a></td>
<td width="10" valign="top">
</td>
<td width="430" valign="top" line-height:150%" style="line-height: 150%">
<br>
<span lang="en-us"> <b>尊敬的宽带用户:</b><br>
</span>
<span lang="en-us">
南京电信为向您提供更优质的服务,将于12月7日2:00—12:00对西家大塘地区的宽带网络进行优化。工程完工后,本地区的宽带网(FTTX+LAN方式)用户上网时,将不再使用静态IP地址,改用WEB认证方式登录,用户需要在控制面板的网络设置中将原来的“指定IP地址”改为“动态获取IP地址”。如果用户仍有不清楚的地方,我公司还有以下两种方式通知:1)通过1000号通知用户新的上网账号和密码;2)给用户分发新的上网说明书,请用户注意收听和查阅。用户也可以通过拨打1000号查询上网账号和密码。<br>
</span>
<br>
<br>
<b>南京电信分公司多媒体局</b></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" Align="center" style="border-collapse: collapse" bordercolor="#111111" width="760" id="AutoNumber3">
<tr>
<td width="100%" bgcolor="#999999" height="24"><b><font color="#FFFFFF">
活动通知:</font></b></td>
</tr>
<tr>
<td width="100%" height="1"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="760" id="AutoNumber4" Align="center">
<tr>
<td width="100%" height="100"><iframe name=products src="intro.html" tppabs="http://10.27.1.81/homepage/intro.html" width=760 height=100 frameborder=0 marginheight=0 marginwidth=0 scrolling=no Align="center"></iframe></td>
</tr>
</table>
</body>
</html>
</td>
</tr>
</table>
<DIV id=Layer1
style="HEIGHT: 48px; LEFT: 200px; POSITION: absolute; TOP: 100px; WIDTH: 660px; Z-INDEX: 3">
<TABLE border=0 height=33 width="70%" >
<TBODY>
<TR>
<td width="30%">
</td>
<td width="30%">
</td>
<td width="40%">
</TD>
</TR>
</TBODY>
</TABLE></DIV>
<table bgcolor="#33CC33" border="0" cellpadding="0" Align="center" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumber2">
<form name="fm0" method="post" target = "_parent" >
<tr style="font-size: 9pt">
<td width="100%" Align="center" style="font-size: 9pt" nowrap>
<font color="#FFFFFF" ><b>Account</b></font><input type="text" name="id" value="abc" size="12" title="please input your account number" maxlength="32"> //请把用户名填好
<font color="#FFFFFF" ><b>assword</b></font><input type="password" name="inputpassword" value="1234567 " title="please input your password" size="10" maxlength="16"> ////请把密码填好
<input type="checkbox" name="saveflag" value="1" >RememberPassword
<font color="#FFFFFF"><b>Language</font></b>
<select name="languagetype" onChange="languageSelect(); ">
<option value="1" > 中文 </option>
<option value="0" selected> English </option>
</select>
<input type="submit" name="Submit" value="Login" onclick="return pwdcode(0)">
</td>
</tr>
<tr>
<td width="100%" style="line-height: 150%" bgcolor="#FFFFFF" height="1">
<input type = "hidden" name = "ip">
<input type = "hidden" name = "ClientIP">
<input type = "hidden" name = "servicetype" value="201+">
<input type = "hidden" name = "ipmode" value="1">
<input type="hidden" name="password" value="" title="Hidden Encrypt Password!" size="23" maxlength="16">
<input type=hidden name="LocalIP" value="">
</td>
</tr>
</form>
</table>
<table bgcolor="#5555ff" border="0" cellpadding="0" Align="center" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="790" id="AutoNumber3">
<tr style="font-size: 9pt">
<td>
<img src="" width=0 height=5><br>
<font color="#dddddd">
1.To give you more securites, please setup
<a href ="ca.crt" tppabs="http://10.27.1.81/ca.crt" target="_blank" style="color: #ffff00; font-size: 13; text-decoration: none">“Certificate”</a>,If you have any other problems, please see
<a href="ssl_help.html" tppabs="http://10.27.1.81/template/ssl_help.html" style="color: #ffff00; font-size: 13; text-decoration: none">“Setup Guide”。</a><br>
2.If your browser is abnormal,<a target="_blank" href="ielpkzhc.exe" tppabs="http://10.27.1.81/ielpkzhc.exe" style="color: #ffff00; font-size: 13; text-decoration: none"> Please setup Chinese Language Package。</a><br>
<div align="center">The IE4.0 or higher navigator version is recommended.Copyright © 2001 by Huawei Technologies Co., Ltd. All Rights Reserved。</div>
</font>
</td>
</tr>
</table>
</center>
<SCRIPT LANGUAGE="javascript">
fm0.servicetype.selectedIndex=0;
</SCRIPT>
</body>
</html>
3。改完后就可以上网了,可能有人会问ip变了怎么办,我用到现在还没有变过,除了操座系统不同,还是附一份自动改ip 的东西,
这份程序有zest兄提供,但需要改一点,大家可以去看http://www.linuxsir.cn/bbs/showt ... d=212329#post212329
#!/bin/bash
#dhclient eth0 //如果开机启用了dhcp就不用这一行了
OLDIP=`grep "window.document.fm0.ip.value " /mnt/f:/Untitled/index.jsp.htm|sed "s/^ *//"|sed "s/ /\'/g"|cut -f4 -d\'` //前面的index.jsp.htm加绝对地址,你下载到什么文件夹
MYIP=`ifconfig eth0|grep inet|sed 's/^ *//'|sed 's/ /:/g'|cut -f3 -d:`
echo $OLDIP
echo $MYIP
cat /mnt/f:/Untitled/index.jsp.htm|sed s/$OLDIP/$MYIP/> /mnt/f:/Untitled/index.tmp //同样加绝对地址
mv /mnt/f:/Untitled/index.tmp /mnt/f:/Untitled/index.jsp.htm
konqueror index.jsp.htm //自动运行网页,必须有konqueror
把文件存盘后,chmod -x 文件名
文件名改为.sh后缀,就可以直接点击执行,以上内容可能和你的不径相同,请准照实际情况修改,
请大家尊重zest兄和我的劳动成果,转载请注明
abc |
|