It just doesn't want to go past PASV. Spent past 3 hours trying to figure this one out. Any help is appreciated.<br><br><br>Log:<br><br>2009-09-17 16:26:56-0700 [-] Log opened.<br>2009-09-17 16:26:56-0700 [-] twisted.protocols.ftp.FTPFactory starting on *****<br>
2009-09-17 16:26:56-0700 [-] Starting factory <twisted.protocols.ftp.FTPFactory instance at 0x2b3a031037a0><br>2009-09-17 16:26:59-0700 [twisted.protocols.ftp.FTPFactory] client connected<br>2009-09-17 16:26:59-0700 [twisted.protocols.ftp.FTPFactory] --> 220 Twisted 8.2.0 FTP Server<br>
2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] <-- USER fnet<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --> 331 Password required for fnet.<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] <-- PASS *****<br>
2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --> 230 User logged in, proceed<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] <-- TYPE A<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --> 200 Type set to A.<br>
2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] <-- SYST<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --> 215 UNIX Type: L8<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] <-- PWD<br>
2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --> 257 "/"<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] <-- PASV<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] DTPFactory.setTimeout set to 10 seconds<br>
2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] twisted.protocols.ftp.DTPFactory starting on 38637<br>2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] Starting factory <twisted.protocols.ftp.DTPFactory instance at 0x2b3a0544a170><br>
2009-09-17 16:27:00-0700 [ProtocolWrapper,0,24.43.31.21] --> 227 Entering Passive Mode (65,61,232,130,150,237).<br>2009-09-17 16:27:10-0700 [-] timed out waiting for DTP connection<br>2009-09-17 16:27:10-0700 [-] Unexpected FTP error<br>
2009-09-17 16:27:10-0700 [-] Unhandled Error<br> Traceback (most recent call last):<br> Failure: twisted.internet.defer.TimeoutError: <br> <br>2009-09-17 16:27:10-0700 [-] --> 550 Requested action not taken: internal server error<br>
2009-09-17 16:27:10-0700 [-] dtpFactory.stopFactory<br><br><br><br>Code:<br><br>from twisted.protocols.ftp import FTPFactory, FTPRealm, FTP<br>from twisted.cred.portal import Portal<br>from twisted.cred.checkers import FilePasswordDB<br>
from twisted.internet import reactor<br>from twisted.python import log<br>import sys<br><br>log.startLogging(sys.stdout)<br><br>class bcFTPProtocol(FTP):<br> def connectionMade(self):<br> log.msg("client connected")<br>
<br> FTP.connectionMade(self)<br> <br> def lineReceived(self, line):<br> log.msg("<-- " + line)<br> FTP.lineReceived(self, line)<br> <br> def sendLine(self, msg):<br>
log.msg("--> " + msg)<br> FTP.sendLine(self, msg)<br><br>ftp_portal = Portal(FTPRealm('data/'), [FilePasswordDB("ftp.users")])<br>ftp_factory = FTPFactory(ftp_portal)<br>ftp_factory.protocol = bcFTPProtocol<br>
<br>reactor.listenTCP(*****, ftp_factory)<br>reactor.run()<br><br><br><br><br><br><br clear="all">Thank you,<br><br>Slava Yanson<br>Positive Blue, LLC<br><br>web: <a href="http://www.positiveblue.com">www.positiveblue.com</a><br>
tel: (323) 963-4787<br>aim/yahoo/skype: urbansoot<br><br><a href="http://www.LinuxDecals.com/">http://www.LinuxDecals.com/</a><br>