DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-03-20 01:29:00

crs2027
Member
Registered: 2008-10-14
Posts: 46

Possible to modify the dns323 web gui?

Hi,

I would really like to know if it is possible to edit (or hack?) the webpages hosted by the DNS323.  All I would need to to edit any single page, (eg the login page), and have a new link to my own page as I would make my own content with new options.

I dont want to run another webserver daemon for this, I would like to make the current one (goahead webserver) a custom one.

It seems the HTML pages are actually in FLASH which means they are read only.

Maybe its possible to shut down the goahead webserver then apply the hack or link and restart it?

I couldnt find anything that would suggest goahead has a config file or command line switches, so Im unsure how to make my own edits.

This is something I did with an old NAS drive that had the HTML files in RAM, which made life easy, and I added pretty useful content to the webpage.

Anyway I hope Im making sense, Im just about to hit the hay but thought I would ask since I've been pondering about it for ages now.

Cheers!

Offline

 

#2 2009-03-20 02:02:51

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: Possible to modify the dns323 web gui?

They look to be html pages... .asp anyway

root@dlink-EEC377:~# ls /web/web
lrwxrwxrwx 1 root root 18 Mar  7 19:14 /web/web -> /sys/crfs/web_page

Offline

 

#3 2009-03-20 10:53:45

crs2027
Member
Registered: 2008-10-14
Posts: 46

Re: Possible to modify the dns323 web gui?

hey thanks for your reply,

I've found that the pages are located there but I'm unable to make any changes to that folder, I get a Read-Only file system.  I'm guessing that means it is in FLASH and not RAM?

I should have mentioned that path in my original post..

Original question still remains, can it be modified?

ta.

Offline

 

#4 2009-03-20 16:36:03

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: Possible to modify the dns323 web gui?

Of course it can.

Code:

rm -rf /web/web
mkdir /ffp/web
cp -R /sys/crfs/web_page/* /ffp/web
ln -s /ffp/web /web/web

Then make an executable /ffp/etc/fun_plug.local and put this in it.

Code:

#!/ffp/bin/sh
PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin

# Use my modified web pages:
rm -rf /web/web
ln -s /ffp/web /web/web

Last edited by madpenguin (2009-03-20 16:39:07)

Offline

 

#5 2009-03-20 21:11:11

crs2027
Member
Registered: 2008-10-14
Posts: 46

Re: Possible to modify the dns323 web gui?

Awesome suggestion thanks madpenguin, I'll go give this a shot right now big_smile

Many thanks!!

Offline

 

#6 2009-03-21 21:58:18

uyuni
Member
From: Denmark
Registered: 2007-12-29
Posts: 31

Re: Possible to modify the dns323 web gui?

I remember that some guy made some extensions to the built-in web GUI. I searched a bit and this is what I found:

http://dns323.kood.org/forum/viewtopic. … 064#p10064

HaydnH made a very pretty ipkg package handler GUI and he even posted a video of it. The video link isn't working anymore though but I think I have the video lying around somewhere... If anybody want it. It was very sweet indeed! I don't think he ever published anything. Last post seems to be somewhere around april 2008.
The thread contains some discussion on the nature of the web pages.
Maybe you could contact him to get some ideas?


D-Link DNS-323 firmware 1.08 + Samsung HD203WI + Samsung HD103UJ + ffp-0.5 + addons

Offline

 

#7 2009-03-22 15:37:02

crs2027
Member
Registered: 2008-10-14
Posts: 46

Re: Possible to modify the dns323 web gui?

thanks, that looks interesting - pity the video clips are no longer there.  Id love to see what he has done.

Bit of a bugger using the built-in goahead webserver.  It seems to have missing ASP commands, therefore unable to run any shell commands via custom webpages sad

I attempted to use cgi-bin (made the directory in /web/cgi-bin/) however when calling a script from a page it causes goahead (webs) to result in a segmentation fault!  I might check out the lite webservers I've seen on the wiki.  I really wanted to avoid running anymore webservers though.

I'll see if I can get hold of Haydn too.

Ta.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB