Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Gui Ambros's Content

There have been 2 items by Gui Ambros (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#11903 Simple multi-threaded web server

Posted by Gui Ambros on 10 April 2011 - 10:32 PM in Project Showcase

Great stuff Jasper, thanks.

Just a quick bug report: the webserver will crash whenever it receives a request with less than 5 chars due to the string.Substring being used on unchecked data. For example, try telnet <netduino IP> and just hit enter..

Under controlled environments accessed only via a browser this won't be a problem, but if you expose your netduino to the outside world this could be an easy DoS.

I fixed this by changing the initial lines of InterpretRequest to:

            string commandData;

            // Remove GET + Space
            if (rawData.Length > 5)
                commandData = rawData.Substring(5, rawData.Length - 5);
            else
                return null;



#11803 netduino plus spotted on amazon.com

Posted by Gui Ambros on 08 April 2011 - 06:22 AM in Netduino Plus 2 (and Netduino Plus 1)

Just in case you were waiting for the netduino plus to get back in stock like me, just found out that amazon has some available now. If you're planning to get one, rush! Shouldn't last much longer.. http://www.amazon.co...s/dp/B004FRZ4E6 (note: no affiliate link or anything). happy hacking!




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.