Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uftpd.py: Implement SITE for exec'd statements.
By @jdsmith Various FTP servers implement SITE "to provide services to a client that may not be universally supported by all FTP clients". This small addition implements a SITE command which simply exec's Python statements. Since FTP commands may not contain newlines, the commany payload shall contain \x00 characters as line ends, whcih are substituted by \n. The only catch is that if the user supplies a SITE command which blocks when exec'd, uftpd blocks as well.
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters