Documentation ¶
Overview ¶
ex8.2 is a minimal ftp server as per section 5.1 of RFC 959.
TYPE - ASCII Non-print MODE - Stream STRUCTURE - File, Record COMMANDS - USER, QUIT, PORT, TYPE, MODE, STRU, for the default values RETR, STOR, NOOP. The default values for transfer parameters are: TYPE - ASCII Non-print MODE - Stream STRU - File
There's a contradiction above for the STRU command. Only File structure (the default) is supported.
Additionally, passive transfers are supported.
Only IPv4 is supported.
DJB's recommendations at http://cr.yp.to/ftp.html have mostly been implemented when noticed and applicable.
TODO: respond to telnet codes as described at http://cr.yp.to/ftp/request.html TODO: protect against path traversal attacks.
Click to show internal directories.
Click to hide internal directories.