Hi,
hope this is in the correct category. I am a familiar with JS in a web page but it appears my server is all in JS and coding the html if if am correct
I have a very simple ip controller device running Tomato 1.28 (Linux 2.4.20), Tomato firmware (Linux 2.6.22) Type WAP that looks like it is using JS to build the pages I am able to access and sends some info into a database.
I am trying to access the file structure an source code in order to replicate one of the pages so I can inject into another database the same data but I can not see the file structure or files.
The only files I think exist somewhere are favicon and main.js.
The HTML in the page source is very simple:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<link rel="apple-touch-icon" href="favicon.ico" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=Content-Type content='text/html;charset=UTF-8'>
<title>Web Controller</title>
<META HTTP-EQUIV=CacheControl CONTENT=no-cache>
<script type="text/javascript" src="http://gc.kis.v2.scr.kaspersky-labs...NyGcRqhuM1CINFQNEsf9PPzEgki_H-vIvlU6-WE60BMCI" charset="UTF-8">
</script>
<style type=text/css>
<!--.st1{font-size:large;line-height:1.6em;color:#F00;}.st2{font-size:large;}body{background-color:#FFF;margin:6px 0;}body,td,th{font-size:medium;color:#03C;}tr{text-align:center;}.Y{background-color:#0F6}.N{background-color:#FF6;}.st3{font-size:medium;color:#F00;}--></style>
</head>
<body>
<h1 align=center class=st1>Web Controller</h1><hr>
<fieldset><br><form method=post action=ACT_ID_1>
<p align=center>UserName: <input type=text name=username value='abc' maxlength=16 size=10></p>
<p align=center>Password: <input type=password name=pwd value='654321' maxlength=16 size=10>
<input type=hidden name=logId value='20101222'></p>
<p align=center><input type=submit value='Login'></p></form></fieldset>
</body>
<HEAD>
META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE></HEAD></html>
Once logged in it takes you to url: http://172.16.1.102/ACT_ID_1
and then url ACT_ID_21 which produces:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<script language=Javascript> </SCRIPT>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv=Content-Type content='text/html;charset=UTF-8'>
<title>Web Controller</title>
<META HTTP-EQUIV=CacheControl CONTENT=no-cache><style type=text/css><!--.st1{font-size:large;line-height:1.6em;color:#F00;}.st2{font-size:large;}body{background-color:#FFF;margin:6px 0;}body,td,th{font-size:medium;color:#03C;}tr{text-align:center;}.Y{background-color:#0F6}.N{background-color:#FF6;}.st3{font-size:medium;color:#F00;}--></style>
<SCRIPT language=Javascript></SCRIPT>
</head>
<body>
<h1 align=center class=st1>Web Controller</h1>
<form method=post action=ACT_ID_21>
<table cellpadding=0 cellspacing=0 id=l><tr><td>
<div id=m><span class=st2><input type=submit name=s7 value=Home><input type=submit name=s1 value=AddCard><input type=submit name=s2 value=Users><b>Swipe</b><input type=submit name=s5 value=Configure><input type=submit name=s6 value=Exit></span>
</div>
</td></tr></table></form>
<div class=gbh style=left:0></div>
<div class=gbh style=right:0></div>
<form name=swipeRec method=post action=ACT_ID_345>
<input type=hidden name=PC value='27'>
<input type=hidden name=PE value='0'><p>
<input type=submit name=PS value='To Search'>
<input type=submit name=PF value='First'>
<input type=submit name=PP value='Prev'>
<input type=submit name=PN value='Next'>
<input type=submit name=PE value='Last'>
<input type=submit name=PF value='Refresh'> Page 1 Of 2 Page 2022-04-11 14:28:24</td></p></form><p>
{here a table is constructed and data shown }
</body>
<HEAD>
<META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE>
</HEAD>
</html>
So if anyone could point me in a direction so I can work out how the pages are constructed I might be bale to replicate the pages.
Thanks in advance for any pointers.
hope this is in the correct category. I am a familiar with JS in a web page but it appears my server is all in JS and coding the html if if am correct
I have a very simple ip controller device running Tomato 1.28 (Linux 2.4.20), Tomato firmware (Linux 2.6.22) Type WAP that looks like it is using JS to build the pages I am able to access and sends some info into a database.
I am trying to access the file structure an source code in order to replicate one of the pages so I can inject into another database the same data but I can not see the file structure or files.
The only files I think exist somewhere are favicon and main.js.
The HTML in the page source is very simple:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<link rel="apple-touch-icon" href="favicon.ico" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=Content-Type content='text/html;charset=UTF-8'>
<title>Web Controller</title>
<META HTTP-EQUIV=CacheControl CONTENT=no-cache>
<script type="text/javascript" src="http://gc.kis.v2.scr.kaspersky-labs...NyGcRqhuM1CINFQNEsf9PPzEgki_H-vIvlU6-WE60BMCI" charset="UTF-8">
</script>
<style type=text/css>
<!--.st1{font-size:large;line-height:1.6em;color:#F00;}.st2{font-size:large;}body{background-color:#FFF;margin:6px 0;}body,td,th{font-size:medium;color:#03C;}tr{text-align:center;}.Y{background-color:#0F6}.N{background-color:#FF6;}.st3{font-size:medium;color:#F00;}--></style>
</head>
<body>
<h1 align=center class=st1>Web Controller</h1><hr>
<fieldset><br><form method=post action=ACT_ID_1>
<p align=center>UserName: <input type=text name=username value='abc' maxlength=16 size=10></p>
<p align=center>Password: <input type=password name=pwd value='654321' maxlength=16 size=10>
<input type=hidden name=logId value='20101222'></p>
<p align=center><input type=submit value='Login'></p></form></fieldset>
</body>
<HEAD>
META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE></HEAD></html>
Once logged in it takes you to url: http://172.16.1.102/ACT_ID_1
and then url ACT_ID_21 which produces:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<script language=Javascript> </SCRIPT>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv=Content-Type content='text/html;charset=UTF-8'>
<title>Web Controller</title>
<META HTTP-EQUIV=CacheControl CONTENT=no-cache><style type=text/css><!--.st1{font-size:large;line-height:1.6em;color:#F00;}.st2{font-size:large;}body{background-color:#FFF;margin:6px 0;}body,td,th{font-size:medium;color:#03C;}tr{text-align:center;}.Y{background-color:#0F6}.N{background-color:#FF6;}.st3{font-size:medium;color:#F00;}--></style>
<SCRIPT language=Javascript></SCRIPT>
</head>
<body>
<h1 align=center class=st1>Web Controller</h1>
<form method=post action=ACT_ID_21>
<table cellpadding=0 cellspacing=0 id=l><tr><td>
<div id=m><span class=st2><input type=submit name=s7 value=Home><input type=submit name=s1 value=AddCard><input type=submit name=s2 value=Users><b>Swipe</b><input type=submit name=s5 value=Configure><input type=submit name=s6 value=Exit></span>
</div>
</td></tr></table></form>
<div class=gbh style=left:0></div>
<div class=gbh style=right:0></div>
<form name=swipeRec method=post action=ACT_ID_345>
<input type=hidden name=PC value='27'>
<input type=hidden name=PE value='0'><p>
<input type=submit name=PS value='To Search'>
<input type=submit name=PF value='First'>
<input type=submit name=PP value='Prev'>
<input type=submit name=PN value='Next'>
<input type=submit name=PE value='Last'>
<input type=submit name=PF value='Refresh'> Page 1 Of 2 Page 2022-04-11 14:28:24</td></p></form><p>
{here a table is constructed and data shown }
</body>
<HEAD>
<META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE>
</HEAD>
</html>
So if anyone could point me in a direction so I can work out how the pages are constructed I might be bale to replicate the pages.
Thanks in advance for any pointers.