Changes

Jump to: navigation, search

Wii Web Server

7,016 bytes added, 07:06, 24 November 2010
Undo revision 93751 by Ynurisuhy (talk)
{{Infobox homebrewapphomebrew| image = [[File:Lines WiiWebServer.png]]
| title = Wii Web Server
| desc = A web server running on Wii| type = Serverutility| author = Cboomf, Felix123| version = alpha 1.20| download = [https://sourceforge.net/projects/wiiwebserver/ Project Page]| website = https://sourceforge.net/projects/wiiwebserver/| source = http://sourceforge.net/scm/?type=svn&group_id=229938| peripherals = {{Wiimote1}} {{Nunchuk}} {{ClassicController}} {{WiFi}} {{Internet}} {{FrontSD}}{{USBMSD}} {{LesPaul}}| hbb = yes
}}
A simple web-server for the Wii.<br>Still is very early stages of development and at present can only display a built in test page. Dev time : 24 146 Hours
== HBC ==
[[Image:WiiWeb.png]][[user:Seandgibbonsy|Twilt]]
{| class="wikitable" style="margin: 1em auto 1em auto"! Icon || Designer|-|[[File:WiiWeb.png]]|[[User:Seandgibbonsy|Twilt]]|-|[[ImageFile:Icon_WebServer.png]]|Vibestar|-|[[File:Lines_WiiWebServer.png]]|Lines|}
[[Imagehttp:Lines_WiiWebServer//pastebin.png]ch/281 meta.xml Example]Lines
[http[File://pastebinWiiwebserver.ch/281 zip]] - ZIP containing the meta.xml Example]for alpha v0.73 and an icon.png
== README ==
Boot using normal methods *cough* HBC *cough*.
Once running, will run itself.
To quit, type "//quit" at the end of the web-address, so - "192.168.0.X//quit", will now return to HBC
Place your html files in /data/web/ on the root of your sd card, must be inserted before the app is loaded.Use data.zip for demo files.=== Quitting ===
There is no directory listing and your homepage must be called {| class="index.htmlwikitable"style="left;text-align:center;"|-! {{Wiimote1}} ||{{Nunchuk}} ||{{ClassicController}} ||{{LesPaul}} || Action|-| {{WiimoteAButton}} or {{WiimoteHomeButton}} ||{{NunchukCButton}} ||{{ClassicHomeButton}} ||{{GHYellowFret}} || Quit|}
== Changelog = settings for version alpha v1.10 + ==[http://downloads.sourceforge.net/wiiwebserver/hl2071.elf?use_mirror=osdn alpha v0.71]* Adds .wmv support* Added error 500 for server errors
[http://downloads.sourceforge.net/wiiwebserver/hl207.elf?use_mirror=osdn alpha v0.7]* Doesn't exception out when In a file or page cannot be found* Will now serve folder on the root of the sd called data create a "404 Page not found" pagefolder called wws and make :-
[http:* pass.txt containing your password (make sure is followed by new line)<br />* port.txt containing the custom port number<br /downloads>* wwwo.sourceforge.nettxt 1 for using /www on root or 0 for /wiiwebserverdata/hl2062.elf?use_mirror=osdn alpha v0.62]* Fixed the infinite recursionweb
[http://downloads.sourceforge.net/wiiwebserver/hl2061.elf?use_mirror=osdn alpha v0.61]* Removed If the /a and above files aren't found then the old testpages since they are no longer needed.* Smaller code.following defaults will be used
[http://downloads.sourceforge* pass.net/wiiwebservertxt - all options that require a password are disabled<br /hl206.elf?use_mirror=osdn alpha v0.6]>* Can now send any file size (thanks port.txt - defaults to joedj's ftpii write_exact function)port 80<br />* Ditched GRRLib wwwo.txt - defaults to make the server smaller in size* Cleaned up the sourcessame as 0 which is /data/web
[http://downloads.sourceforge.net/wiiwebserver/hl205.elf?use_mirror=osdn alpha v0.5]* Can now load any file type (those listed below) from FrontSD== Custom error pages ===
[http://downloads.sourceforge.netOn the SD, create a folder called "error" in the /wiiwebserverdata/hl204.elf?use_mirror=osdn alpha v0web folder and create pages called XXX.4]* Front SD html onlywhere XXX is the error number for the custom page to replace, loading support XD (finally !!)such as 404 for page not found and 500 for server errors
[http://downloads.sourceforge.net/wiiwebserver/hl2031.elf?use_mirror=osdn alpha v0.31]* Favicon added== Directory Listing ===
[http://downloadsThere is no directory listing and your homepage must be called "index.sourceforge.net/wiiwebserver/hl203.elf?use_mirror=osdn alpha v0.3]* Added wiimote support* Added image support* Added /img image test linkhtml"
alpha v0.24b* Bug fixes for 0.24a* //a is now back to /a, but //quit is still there for other reasons=== USB Storage ===
alpha v0Put files on in the same directories as you would on the sd card, i.24ae in usb://data/web/<p>* Fixed If, for example, your file is usb://data/web/index.html, then the main page hyperlink link to it is /usb/aindex.html, <br />if it is linked to as /index.html, then wii web server will load the index off of the sd card in sd://data/web/index.html
alpha v0.24* Changed /a to //a and /quit to //quit to avoid conflicts* Request parser rewritten, now quicker and more streamlined== HELP WANTED ==
alpha v0.23* Now doesn't have I am in need of help in order to restart advance the wii web server to serve more than one page (ialpha v1.e presseing B then 5 +<br />A)list of things that i need help with are below :* Quitting Fixing undone things in the server is from a server path of "/quit"bugs section* A decent graphical front-end* More file type support
alpha v0.22* Handles links== Future ==
{| class="wikitable" style="margin: 1em auto 1em auto" border="1"! Version || Changes || %|-|alpha v0v1.2150 ?|gui|0%* Now detects the HTTP/1.x version as requested by the browser|}
alpha v0.2 - First fully web-page serving release* Now serves a built in test page* No longer needs telnet* Forced use of HTTP/1.1== Changelog ==
{| class="wikitable" style="margin: 1em auto 1em auto" border="1"! Version || Changes|-|alpha v0v1.1140|Fixed some rfc issues<br />Now long multi-packet requests can be made<br />Now sends a Last-Modified<br />Implemented deflate compression for all text/* Serves mime-types|-|[http://downloads.sourceforge.net/project/wiiwebserver/wiiwebserver/alpha%20v1.30/wws130.dol?use_mirror=kent alpha v1.30]|Password protected quitting by going to /quit, make sure password is set in /data/wws/pass.txt<br />Password protected /admin page (same as for /quit)<br />More HTTP rfc compliant stuff<br />Server generated index page if index.html can't be found in a directory<br />Support trace method<br />Basic compression support<br />Compiled against libogc 1.8.3<br />Increased buffer sizes|-|[http://downloads.sourceforge.net/project/wiiwebserver/wiiwebserver/alpha%20v1.20/wws120.dol?use_mirror=heanet alpha v1.20]|Vast speed improvements (no more sleeping)<br />Compiled against libogc v1.8.1 and devkitppc r19 etc<br />Stability issues fixed<br />Restuctured faster code<br />Re-coded in c++<br />Various HTTP rfc compliance improvements|-|[http://master.dl.sourceforge.net/sourceforge/wiiwebserver/wiiwebserveralpha11.dol alpha v1.10]|Added option to telnet have pages in /www directory to be compatible with [[Wiihttpd]](don'default uses /data/web)<br />Added option to change port number to run on (Default : 80)<br />Added option to set a password for admin based tasks (not yet used)(no default)<br />Stabilised libhttp some more<br />Now shuts down cleanly (unmounts devices, closes sockets, e.t know why.c)<br />Better "HEAD" method support|-|[http://master.dl.sourceforge.net/sourceforge/wiiwebserver/wiiwebserveralpha1.dol alpha v1.00]|Very basic admin page (not yet worth looking at)at /admin<br />More stable<br />Started to develop and intergrate own HTTP lib<br />Added ability to use a custom error page for any errors<br />Directories no longer need a / at the end|-|[http://downloads.sourceforge.net/wiiwebserver/wiiwebserver093.dol?use_mirror=osdn alpha v0.93]|Less junk<br />More options of quitting to allow for more hardware choices<br />* Now re-enabled custom 404 and 505 error pages, use is described above in readme<br />|-|[http://downloads.sourceforge.net/wiiwebserver/wiiwebserver092.dol?use_mirror=kent alpha v0.92]|Can accept multiple connections now use usb flash sticks (detailed in the readme above)|-|[http://downloads.sourceforge.net/wiiwebserver/wiiwebserver091.dol?use_mirror=kent alpha v0.91]|Vast speed improvements<br />Increased stability when using 404 and 500 errors<br />?? Temporarily disabled custom error pages ??<br />Changed from fat0:// to sd:// to fit in with new Libfat<br />Moved source from sourceforge cvs to sourceforge svn<br />More supported file typesFixed directoried ending in / not at oncegoing to /index.html|-|[http://downloads.sourceforge.net/wiiwebserver/wiiwebserver09.dol?use_mirror=kent alpha v0.9]<br />wiiweb.xml v rc1|Recompiled for HBC 9 beta<br />Now has a sane download name|-|[http://downloads.sourceforge.net/wiiwebserver/hl2082.elf?use_mirror=osdn alpha v0.82]<br />wiiweb.xml v rc1|New stipped down wiiweb.xml<br />Removed buggy //quit (might return later)<br />Now use the same method of quitting as ftpii and wiihttpd<br />using a threaded home button detection routine<br />Small code improvements and removed unused code|-|[http://downloads.sourceforge.net/wiiwebserver/hl2081.elf?use_mirror=osdn alpha v0.181]<br />wiiweb.xml v b3|Uses new wiiweb.xml which causes less crashes <br />and //quit?''password'' works 99% of the time.<br />Various bug fixes from the table below|-|[http://downloads.sourceforge.net/wiiwebserver/hl208.elf?use_mirror=osdn alpha v0.8]<br />wiiweb.xml v b2|Added threading support and management<br />SD code tweaks|-|[http://downloads.sourceforge.net/wiiwebserver/hl2077.elf?use_mirror=osdn alpha v0.77]<br />wiiweb.xml v b2|Added custom 404 error page<br />* Added Gamecube control menu controlcustom 500 error page<br />* Added GRRLIB logocustom denied error page<br />More //quit security checks<br />Solved two stability issuesUses the new wiiweb.xml|-* |[http://downloads.sourceforge.net/wiiwebserver/hl2076.elf?use_mirror=osdn alpha v0.76]<br />wiiweb.xml v b1|Added return the option of a custom password to loadershut<br />the server remotely using //quit?password (see README)<br />Removed /img (old)* Opens port 80|-|[http://downloads.sourceforge.net/wiiwebserver/hl2075.elf?use_mirror=osdn alpha v0.75]* Opens a socket |Removed /tux and /yak.jpg (old and allows for connectiondeprecated)<br />Minor speed improvements<br />* Accepts connection on open socket at port 80Date and time in the header<br />|-|[http://downloads.sourceforge.net/wiiwebserver/hl2074.elf?use_mirror=osdn alpha v0.74]|When //quit is requested it has to be approved by pressing A or B<br />Slightly shortened the time it takes to be ready after each request<br />Bugfixes|-|[http://downloads.sourceforge.net/wiiwebserver/hl2073.elf?use_mirror= Bug fixing osdn alpha v0.73]|Security bugfixes<br />Added "HEAD" method support<br />Added space in file name support<br />Fixed disallowance of ../ or ./ for security<br />Added .bin file support<br />Sends server version in header|-|[http://downloads.sourceforge.net/wiiwebserver/hl2072.elf?use_mirror=osdn alpha v0.72]|Bugfixes|-|[http://downloads.sourceforge.net/wiiwebserver/hl2071.elf?use_mirror=osdn alpha v0.71]|Adds .wmv support<br />Added error 500 for server errors|-{| class[http://downloads.sourceforge.net/wiiwebserver/hl207.elf?use_mirror=osdn alpha v0.7]|Doesn't exception out when a file or page cannot be found<br />Will now serve a "wikitable404 Page not found" stylepage|-|[http://downloads.sourceforge.net/wiiwebserver/hl2062.elf?use_mirror=osdn alpha v0.62]|Fixed the infinite recursion|-|[http://downloads.sourceforge.net/wiiwebserver/hl2061.elf?use_mirror=osdn alpha v0.61]|Removed the /a and the old testpages since they are no longer needed.<br />Smaller code.|-|[http://downloads.sourceforge.net/wiiwebserver/hl206.elf?use_mirror=osdn alpha v0.6]|Can now send any file size (thanks to joedj's ftpii write_exact function)<br />Ditched GRRLib to make the server smaller in size<br />Cleaned up the sources|-|[http://downloads.sourceforge.net/wiiwebserver/hl205.elf?use_mirror="marginosdn alpha v0.5]|Can now load any file type (those listed below) from FrontSD|-|[http: 1em auto 1em auto"//downloads.sourceforge.net/wiiwebserver/hl204.elf?use_mirror=osdn alpha v0.4]|Front SD html only, loading support XD (finally !! )|-|[http://downloads.sourceforge.net/wiiwebserver/hl2031.elf?use_mirror=osdn alpha v0.31]|Favicon added|-|[http://downloads.sourceforge.net/wiiwebserver/hl203.elf?use_mirror=osdn alpha v0.3]|Added wiimote support<br />Added image support<br />Added /img image test link|-|[http://downloads.sourceforge.net/wiiwebserver/hl2024b.elf?use_mirror=osdn alpha v0.24b]|Bug fixes for 0.24a<br />//a is now back to /a, but //quit is still there for other reasons|-|[http://downloads.sourceforge.net/wiiwebserver/hl2024a.elf?use_mirror=osdn alpha v0.24a]|Fixed the main page hyperlink to //a|-|[http://downloads.sourceforge.net/wiiwebserver/hl2024.elf?use_mirror=osdn alpha v0.24]|Changed /a to //a and /quit to //quit to avoid conflicts<br />Request parser rewritten, now quicker and more streamlined|-|[http://downloads.sourceforge.net/wiiwebserver/hl2023.elf?use_mirror=osdn alpha v0.23]|Now doesn't have to restart the server to serve more than one page <br />(i.e pressing B then A)<br />Quitting the server is from a server path of "/quit"| Status -|[http://downloads.sourceforge.net/wiiwebserver/hl2022.elf?use_mirror=osdn alpha v0.22]| PriorityHandles links
|-
| Directory traversal vulnerabilities allows people to <br>[http://downloads.sourceforge.net/wiiwebserver/hl2021.elf?use_mirror=osdn alpha v0.21]sneak out of |Now detects the web rootHTTP/1. Ops, now people can "borrow" <br>all those "borrowed" games you also happen to have on x version as requested by the <br>sd-card. | Waiting | bgcolor="red"| Highbrowser
|-
| Fixing of folders to index[http://downloads.sourceforge.net/wiiwebserver/hl202.elf?use_mirror=osdn alpha v0.html is hardcoded and not 2]|Now serves a built in test page<br />No longer needs telnet<br/>heuristic and will fail for sub-directoriesForced use of HTTP/1. | Waiting | bgcolor="yellow"| Low1
|-
| 500 pages uses 404 lenghts[http://downloads.sourceforge.net/wiiwebserver/hl2011.elf?use_mirror=osdn alpha v0.11]| DoneServes html to telnet (lack of http headers)| bgcolor="orange"| MediumCan accept multiple connections (not at once)
|-
| Indention issues, try just writing it like "else if"[http://downloads.sourceforge.net/wiiwebserver/hl2.elf?use_mirror=osdn alpha v0.1]|Added Gamecube control menu control<br />Added GRRLIB logo<br />Added return to loader<br/>and don't add any extra indention, it keeps the indentionOpens port 80<br/>level sane when having Opens a lot of conditions. | Donesocket and allows for connection<br />| bgcolor="yellow"| LowAccepts connection on open socket at port 80
|}
== File types Bug fixing ==
The following file types can be loaded from Front SD{| class="wikitable sortable" style="margin: 1em auto 1em auto"*html! Bug || Status || How Fixed || Priority*htm*txt*css*ico*gif*jpg*jpeg*png *svg*torrent*wav*mp3*mid*m3u*ram*ra*doc*exe*zip*xls*tgz*tar.gz*tar*gz*arj*rar*rtf*pdf*swf*mpg*mpeg*asf*avi*bmp*wmv|}
== "Lump of fun" Credits ==
Everynow and then, a special release of the wii web server will be released that contains a hidden "lump of fun".Result can be posted on the talk page under "Lump of fun".Who will be the first to screendump it, evidence must be a full screendump or it will be discounted.''This is almost community based !! :-)''
The first Cboomf - Main code<br />Felix123 - SD card code<br />Teknecal - Threading basis, %20 handling, HEAD method routine, time in headers<br />Joedj - the write_exact function from ftpii<br />Muzer - pre-release testing<br />Henke37 - advise and help<br />Lines - "find the sucking lump of fun"icon.png that most people and the admin page uses<br />Ruby - first gui graphics<br />
[http://downloads.sourceforge.net/wiiwebserver/hl203a.elf?use_mirror=kent alpha v0.3a]Twiizers - starting the ball rolling
[[categoryCategory:Homebrew using GRRLiblibfat]]
82
edits

Navigation menu