ex8.2

command
v0.0.0-...-a8a07f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL