Main Server - Listen to different ports and write information to SD card, synchronize RTC with NTP over the internet, and stream events over serial
Fork of HoneyPot by
Honeypot Server - WIZnet W7500
Main server library responsible for detecting and report unwanted activities.
Features:
- listen up to 7 different ports.
- synchronize RTC with NTP service.
- support http chunks responses.
- write connection details to log file on SD card.
- inject data to pattern html file (like real server).
- administrator control panel.
- visitors display message over http.
Http Server Upgrade
the based code of wiznet http server example load file from the sd card and return it to the user, using content-length to define the size of the package, because reading from file the size is fixed so it's very easy to handle but if you want to use the file as pattern and then inject dynamic data directly like a real server it's become more difficult because memory limitation of the device, to solved this we must to remove the content length header and replace it with transfer-encoding, this way we can stream the data to the client without knowing the content length only the chunks size.
header["Transfer-Encoding"] = "chunked";
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
3:1d6096332358 | 2017-09-01 | proxytype | (none) |
2:f52734664057 | 2017-09-01 | proxytype | (none) |
1:772534e3b627 | 2015-06-30 | hjjeon | Change timeout value and set non blocking |
0:e59cc54df17c | 2015-06-29 | hjjeon | httpServer |