|
|
发表于 2003-12-27 21:47:16
|
显示全部楼层
有人懂elf文件格式吗?我把bbiagent解开来有三个elf文件:init,iptable,ifconfig
[root@ www]# cat libs.js
function launch(pg) {
var w = 630, h = 450;
var popW = w, popH = h;
if (document.all || document.layers) {
w = screen.availWidth;
h = screen.availHeight;
}
var page = pg + ".htm";
var leftPos = (w-popW)/2, topPos = (h-popH)/2;
if(document.all) {
var wOpt="status=0,scrollbars=0,resizable=0,width="+popW+",height="+popH+",left="+leftPos+",top="+topPos;
window.open(page,"BBIagentRouter",wOpt);
} else {
var wOpt="status=0,scrollbars=0,resizable=0,width="+popW+",height="+popH+",screenX="+leftPos+",screenY="+topPos;
window.open(page,"BBIagentRouter",wOpt);
}
}
function showHint(mode) {
switch (mode) {
case 0: status=applet; break;
case 1: status=plugin; break;
case 2: status=jnlp; break;
default: status='';
}
return true;
}
function isValidFile(fm, msg) {
if (fm.jarfile.value=="") {
alert(msg);
return false;
}
return true;
}
[root@ en]# cat index.htm
<html>
<head>
<title>BBIagent Broadband Router</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="EXPIRES" content="Tue, 01 Jan 2002 01:00:00 GMT">
<meta http-equiv=" ragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta name="Copyright" content="Copyright (c) 2000-2002 BBIagent.NET All Rights Reserved by HKSP.COM">
<meta name="Description" content="BBIagent Broadband Router">
<style type="text/css">
<!--
a { color: #000000; font-weight: normal; text-decoration: none }
a:visited { color: #000000; font-weight: normal; text-decoration: none }
A:active
{
COLOR: #FF0000;
FONT-WEIGHT: normal;
TEXT-DECORATION: none
}
A:hover
{
COLOR: #FF0000}
body{ background-color: #FFFFFF ; font-size: 12px; font-family: "Times New Roman", "Times", "serif"}
-->
</style>
<script language="JavaScript" src="libs.js"></script>
<script language="JavaScript">
var applet='Start BBIagent Explorer as Java Applet';
var plugin='Start BBIagent Explorer as Java Plug-in';
var jnlp='Start BBIagent Explorer with Java Network Launching Protocol';
</script>
</head>
<body bgcolor="#ffffff">
<table width="343" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="40" valign="top" width="343"> </td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td valign="top"><img src="images/index.gif" width="343" height="202" align="middle" onClick="location='http://www.BBIagent.Net';return true;"></td>
</tr>
<tr>
<td valign="middle" class="subject" align="center">
<p><br>
Click one of following links to launch<br>
<br>
<font color="#FF0000"><b>BBIagent Explorer</b></font><br>
<br><br>
</p>
</td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="343">
<tr>
<td width="33"></td>
<td width="80"></td>
<td width="18"></td>
<td width="80"></td>
<td width="18"></td>
<td width="80"></td>
<td width="34"></td>
</tr>
<tr>
<td> </td>
<td valign="middle" align="center"><a href="javascript:launch('applet')" onMouseOut="showHint(-1);" onMouseOver="showHint(0);return true;"><b>Applet</b></a></td>
<td> </td>
<td valign="middle" align="center"><a href="javascript:launch('plugin')" onMouseOut="showHint(-1);" onMouseOver="showHint(1);return true;"><b> lug-in</b></a></td>
<td> </td>
<td valign="middle" align="center"><a href="BBIagent.jnlp" onMouseOut="showHint(-1);" onMouseOver="showHint(2);return true;"><b>JNLP</b></a></td>
<td valign="top"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="middle" align="center">
Copyright © 2000-2002 <a href="http://www.BBIagent.Net">BBIagent.Net</a>
<br>
<img src="images/ruler.gif" width="240" height="3"><br>
Powered by <a href="http://www.hksp.com" target="_blank">HKSP.COM</a>
</tr>
</table>
</body>
</html>
[root@ en]# cat up.htm
<html>
<head>
<title>BBIagent Broadband Router</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="EXPIRES" content="Tue, 01 Jan 2002 01:00:00 GMT">
<meta http-equiv=" ragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta name="Copyright" content="Copyright (c) 2000-2002 BBIagent.NET All Rights Reserved by HKSP.COM">
<meta name="Description" content="BBIagent Broadband Router">
<style type="text/css">
<!--
a { color: #000000; font-weight: normal; text-decoration: none }
a:visited { color: #000000; font-weight: normal; text-decoration: none }
A:active
{
COLOR: #FF0000;
FONT-WEIGHT: normal;
TEXT-DECORATION: none
}
A:hover
{
COLOR: #FF0000}
body{ background-color: #FFFFFF ; font-size: 12px; font-family: "Times New Roman", "Times", "serif"}
-->
</style>
<!--<link rel="stylesheet" href="style.css" type="text/css">-->
<script language="JavaScript" src="ip.js"></script>
<script language="JavaScript" src="libs.js"></script>
</head>
<body bgcolor="#ffffff">
<table width="343" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="40" valign="top" width="343"> </td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td valign="top"><img src="images/index.gif" width="343" height="202" align="middle"></td>
</tr>
<tr>
<td valign="middle" class="subject" align="center">
<p><br>
To start <font color="#CC0000"><b>BBIagent Explorer</b></font>, execute
<br><b>java -jar BBIagent.jar -r
<script language="JavaScript">document.write(ip);</script>
</b><br>
</p>
<form name="upload" enctype="multipart/form-data" method="post" action="/" onSubmit="status='Uploading BBIagent Explorer ...';return true;">
Or input the path of <b>BBIagent.jar</b> in the hard disk
<br><input type="file" name="jarfile"><br>
and <input type="submit" value="upload" onClick="return isValidFile(upload,'Please input the path of BBIagent.jar in your harddisk.');"> to the router.
<br>
</form>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="middle" align="center">
Copyright © 2000-2002 <a href="http://www.BBIagent.Net">BBIagent.Net</a>
<br><img src="images/ruler.gif" width="240" height="3"><br>
Powered by <a href="http://www.hksp.com" target="_blank">HKSP.COM</a>
</td>
</tr>
</table>
</body>
</html>
好像没有其他的了
[root@ bbi]# ls -F
dev/ etc/ lib/ sbin/
[root@ bbi]# cd sbin
[root@ sbin]# ls
ifconfig init iptables
[root@ bbi]# cd etc
[root@ etc]# ls
services www/
[root@ etc]# cd www
[root@ www]# ls
BBIagent.jnlp en/ favicon.ico images/ libs.js zh-cn/ zh-hk/ zh-tw/
[root@ bbi]# cd lib
[root@ lib]# ls -F
iptables/ libdl-0.9.19.so libpthread-0.9.19.so libutil.so.0@
ld-uClibc-0.9.19.so* libdl.so.0@ libpthread.so.0@ modules/
ld-uClibc.so.0@ libm-0.9.19.so libresolv-0.9.19.so uclibc@
libcrypt-0.9.19.so libm.so.0@ libresolv.so.0@
libcrypt.so.0@ libnsl-0.9.19.so libuClibc-0.9.19.so
libc.so.0@ libnsl.so.0@ libutil-0.9.19.so
[root@ dev]# ls -F
console loop0 ppp ram0 tty0 tty4 ttyACM2 ttyS0 urandom
fd0 loop1 ptmx ram1 tty1 tty5 ttyACM3 ttyS1 zero
initrd mem pts/ systty tty2 ttyACM0 ttyp0 ttyS2
log| null ram tty tty3 ttyACM1 ttyp1 ttyS3 |
|