By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript Webserver Hidden Files on Tomato 1.28 (Linux 2.4.20) Webserver


New Coder
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">
<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">
<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>
<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>

Once logged in it takes you to url:
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>
<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 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'>&nbsp;Page&nbsp;1&nbsp;Of&nbsp;2&nbsp;Page &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2022-04-11 14:28:24</td></p></form><p>

{here a table is constructed and data shown }


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.

New Threads

Latest posts

Buy us a coffee!

Top Bottom