Some trojans simply encourage the user to put an FTP server on their machine. Other more complex trojans contain built-in FTP servers.