Hi, Just tried lftp-3.0.5rc2. There is a new problem this time. Please see the log below. Note that I must use set ftp:fxp-passive-source no here. It works fine with set ftp:ssl-protect-fxp yes but not with set ftp:ssl-protect-fxp no.
As for FEAT, what is the standard between sending FEAT before login and sending FEAT after login? If Raiden doesn't conform the standard I can try asking them. Cheers, Rob. [C:\Temp]lftp lftp :~> version Lftp | Version 3.0.5rc2 | Copyright (c) 1996-2004 Alexander V. Lukyanov This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details. Send bug reports and questions to <[EMAIL PROTECTED]>. lftp :~> debug -c 20 lftp :~> set ftp:fxp-passive-source no lftp :~> set ftp:ssl-protect-fxp yes lftp :~> set ftp:fxp-passive-sscn no lftp :~> mirror -vv ftp://anonymous:lftp@@ftp.smartftp.com/Common/InstMsi ftps://upload:[EMAIL PROTECTED]:2121/InstMsi ftp.smartftp.com ---- Resolving host address... ftp.smartftp.com ---- 1 address found ftp.smartftp.com ---- Connecting to ftp.smartftp.com (213.144.155.6) port 21 ftp.smartftp.com <--- 220-SmartFTP Server ftp.smartftp.com <--- 220 service ready ftp.smartftp.com ---> FEAT ftp.smartftp.com <--- 503 Bad sequence of commands. ftp.smartftp.com ---> AUTH TLS ftp.smartftp.com <--- 234 Negotiating secure session... ftp.smartftp.com ---> USER anonymous Certificate depth: 0; subject: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x00 i\x00c\x00h/ST=ZH/C=CH; issuer: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x0 0i\x00c\x00h/ST=ZH/C=CH WARNING: Certificate verification: unable to get local issuer certificate WARNING: Certificate verification: unable to verify the first certificate ftp.smartftp.com <--- 331 User name okay, need password. ftp.smartftp.com ---> PASS XXXX ftp.smartftp.com <--- 230 User logged in, proceed. ftp.smartftp.com ---> FEAT ftp.smartftp.com <--- 211-Extensions supported: ftp.smartftp.com <--- SIZE ftp.smartftp.com <--- REST ftp.smartftp.com <--- MDTM ftp.smartftp.com <--- AUTH TLS ftp.smartftp.com <--- AUTH SSL ftp.smartftp.com <--- PBSZ ftp.smartftp.com <--- PROT ftp.smartftp.com <--- CLNT ftp.smartftp.com <--- SSCN ftp.smartftp.com <--- XCRC ftp.smartftp.com <--- EPRT ftp.smartftp.com <--- EPSV ftp.smartftp.com <--- MLST type*;size*;modify*;create*;perm*;unix.owner;unix.group;windows.lastaccesstime; ftp.smartftp.com <--- 211 END ftp.smartftp.com ---> PWD ftp.smartftp.com <--- 257 "/" is the current directory ftp.smartftp.com ---> PBSZ 0 ftp.smartftp.com <--- 200 Command okay. ftp.smartftp.com ---> CLNT lftp/3.0.5rc2 ftp.smartftp.com <--- 200 Noted. ftp.smartftp.com ---> OPTS MLST type;size;modify;perm;unix.owner;unix.group; ftp.smartftp.com <--- 200 MLST OPTS type;size;modify;perm;unix.owner;unix.group; ftp.smartftp.com ---> CWD /Common/InstMsi ftp.smartftp.com <--- 250 Requested file action okay, completed. 111.111.111.111 ---- Resolving host address... 111.111.111.111 ---- 1 address found 111.111.111.111 ---- Connecting to 111.111.111.111 (111.111.111.111) port 2121 Certificate depth: 0; subject: /CN=Serv-V/L=Washington/ST=DC/O=Serv-V Incoporated/C=US/[EMAIL PROTECTED]/OU=George Town; issuer: /CN=Serv-V/L=Washington/ST=DC/O=Serv-V Incoporated/C=US/[EMAIL PROTECTED]/OU=George Town WARNING: Certificate verification: self signed certificate 111.111.111.111 <--- 220 Serv-U FTP Server v4.0 for WinSock ready... 111.111.111.111 ---> FEAT 111.111.111.111 <--- 211-Extension supported 111.111.111.111 <--- AUTH TLS 111.111.111.111 <--- PBSZ 111.111.111.111 <--- PROT 111.111.111.111 <--- MDTM 111.111.111.111 <--- MDTM YYYYMMDDHHMMSS[+-TZ] filename 111.111.111.111 <--- SIZE 111.111.111.111 <--- SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG 111.111.111.111 <--- REST STREAM 111.111.111.111 <--- 211 End 111.111.111.111 ---> USER upload 111.111.111.111 <--- 331 User name okay, need password. 111.111.111.111 ---> PASS XXXX 111.111.111.111 <--- 230 User logged in, proceed. 111.111.111.111 ---> PWD 111.111.111.111 <--- 257 "/" is current directory. 111.111.111.111 ---> PBSZ 0 111.111.111.111 <--- 200 PBSZ command OK. Protection buffer size set to 0. 111.111.111.111 ---> TYPE I 111.111.111.111 <--- 200 Type set to I. 111.111.111.111 ---> MKD /InstMsi 111.111.111.111 <--- 257 "/InstMsi" directory created. 111.111.111.111 ---> CWD /InstMsi 111.111.111.111 <--- 250 Directory changed to /InstMsi ---> PROT P ---> TYPE A 111.111.111.111 <--- 200 Type set to A. 111.111.111.111 ---> PASV 111.111.111.111 <--- 227 Entering Passive Mode (111,111,111,111,23,156) 111.111.111.111 ---- Connecting data socket to (111.111.111.111) port 6044 111.111.111.111 ---> LIST ftp.smartftp.com <--- 200 Command okay. ftp.smartftp.com ---> PASV 111.111.111.111 <--- 150 Opening ASCII mode data connection for /bin/ls. ftp.smartftp.com <--- 227 Entering Passive Mode (213,144,155,6,62,168) ftp.smartftp.com ---- Connecting data socket to (213.144.155.6) port 16040 ftp.smartftp.com ---> LIST 111.111.111.111 <--- 226 Transfer complete. 111.111.111.111 ---- Closing data socket ftp.smartftp.com <--- 150 File status okay; about to open data connection. Certificate depth: 0; subject: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x00 i\x00c\x00h/ST=ZH/C=CH; issuer: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x0 0i\x00c\x00h/ST=ZH/C=CH WARNING: Certificate verification: unable to get local issuer certificate WARNING: Certificate verification: unable to verify the first certificate ftp.smartftp.com <--- 226 Closing data connection. Transfer Complete (165 bytes) ftp.smartftp.com ---- Closing data socket ftp.smartftp.com ---> TYPE I ftp.smartftp.com <--- 200 Command okay. ftp.smartftp.com ---> MDTM INSTMSIA.EXE ftp.smartftp.com <--- 213 20020127221452 ftp.smartftp.com ---> MDTM INSTMSIW.EXE ftp.smartftp.com <--- 213 20020127221930 Transferring file `INSTMSIA.EXE' 111.111.111.111 ---> TYPE I ftp.smartftp.com ---> SSCN ON 111.111.111.111 <--- 200 Type set to I. 111.111.111.111 ---> CPSV ftp.smartftp.com <--- 200 SSCN: CLIENT METHOD. 111.111.111.111 <--- 500 'CPSV': command not understood. **** FXP: trying to reverse ftp:fxp-passive-source 111.111.111.111 ---> SIZE INSTMSIA.EXE 111.111.111.111 <--- 550 /InstMsi/INSTMSIA.EXE: No such file. ftp.smartftp.com ---> SSCN OFF ftp.smartftp.com <--- 200 SSCN: SERVER METHOD. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. ftp.smartftp.com ---> CPSV ftp.smartftp.com <--- 502 Command not implemented. Interrupt ftp.smartftp.com ---> RETR INSTMSIA.EXE ftp.smartftp.com <--- 451 Requested action aborted: Use PORT or PASV before downloading. lftp :~> quit ftp.smartftp.com ---> QUIT ftp.smartftp.com ---- Closing control socket 111.111.111.111 ---> QUIT 111.111.111.111 ---- Closing control socket [C:\Temp]lftp lftp :~> version Lftp | Version 3.0.5rc2 | Copyright (c) 1996-2004 Alexander V. Lukyanov This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details. Send bug reports and questions to <[EMAIL PROTECTED]>. lftp :~> debug -c 20 lftp :~> set ftp:fxp-passive-source no lftp :~> set ftp:ssl-protect-fxp yes lftp :~> set ftp:fxp-passive-sscn yes lftp :~> mirror -vv ftp://anonymous:lftp@@ftp.smartftp.com/Common/InstMsi ftps://upload:[EMAIL PROTECTED]:2121/InstMsi ftp.smartftp.com ---- Resolving host address... ftp.smartftp.com ---- 1 address found ftp.smartftp.com ---- Connecting to ftp.smartftp.com (213.144.155.6) port 21 ftp.smartftp.com <--- 220-SmartFTP Server ftp.smartftp.com <--- 220 service ready ftp.smartftp.com ---> FEAT ftp.smartftp.com <--- 503 Bad sequence of commands. ftp.smartftp.com ---> AUTH TLS ftp.smartftp.com <--- 234 Negotiating secure session... ftp.smartftp.com ---> USER anonymous Certificate depth: 0; subject: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x00 i\x00c\x00h/ST=ZH/C=CH; issuer: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x0 0i\x00c\x00h/ST=ZH/C=CH WARNING: Certificate verification: unable to get local issuer certificate WARNING: Certificate verification: unable to verify the first certificate ftp.smartftp.com <--- 331 User name okay, need password. ftp.smartftp.com ---> PASS XXXX ftp.smartftp.com <--- 230 User logged in, proceed. ftp.smartftp.com ---> FEAT ftp.smartftp.com <--- 211-Extensions supported: ftp.smartftp.com <--- SIZE ftp.smartftp.com <--- REST ftp.smartftp.com <--- MDTM ftp.smartftp.com <--- AUTH TLS ftp.smartftp.com <--- AUTH SSL ftp.smartftp.com <--- PBSZ ftp.smartftp.com <--- PROT ftp.smartftp.com <--- CLNT ftp.smartftp.com <--- SSCN ftp.smartftp.com <--- XCRC ftp.smartftp.com <--- EPRT ftp.smartftp.com <--- EPSV ftp.smartftp.com <--- MLST type*;size*;modify*;create*;perm*;unix.owner;unix.group;windows.lastaccesstime; ftp.smartftp.com <--- 211 END ftp.smartftp.com ---> PWD ftp.smartftp.com <--- 257 "/" is the current directory ftp.smartftp.com ---> PBSZ 0 ftp.smartftp.com <--- 200 Command okay. ftp.smartftp.com ---> CLNT lftp/3.0.5rc2 ftp.smartftp.com <--- 200 Noted. ftp.smartftp.com ---> OPTS MLST type;size;modify;perm;unix.owner;unix.group; ftp.smartftp.com <--- 200 MLST OPTS type;size;modify;perm;unix.owner;unix.group; ftp.smartftp.com ---> CWD /Common/InstMsi ftp.smartftp.com <--- 250 Requested file action okay, completed. 111.111.111.111 ---- Resolving host address... 111.111.111.111 ---- 1 address found 111.111.111.111 ---- Connecting to 111.111.111.111 (111.111.111.111) port 2121 Certificate depth: 0; subject: /CN=Serv-V/L=Washington/ST=DC/O=Serv-V Incoporated/C=US/[EMAIL PROTECTED]/OU=George Town; issuer: /CN=Serv-V/L=Washington/ST=DC/O=Serv-V Incoporated/C=US/[EMAIL PROTECTED]/OU=George Town WARNING: Certificate verification: self signed certificate 111.111.111.111 <--- 220 Serv-U FTP Server v4.0 for WinSock ready... 111.111.111.111 ---> FEAT 111.111.111.111 <--- 211-Extension supported 111.111.111.111 <--- AUTH TLS 111.111.111.111 <--- PBSZ 111.111.111.111 <--- PROT 111.111.111.111 <--- MDTM 111.111.111.111 <--- MDTM YYYYMMDDHHMMSS[+-TZ] filename 111.111.111.111 <--- SIZE 111.111.111.111 <--- SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG 111.111.111.111 <--- REST STREAM 111.111.111.111 <--- 211 End 111.111.111.111 ---> USER upload 111.111.111.111 <--- 331 User name okay, need password. 111.111.111.111 ---> PASS XXXX 111.111.111.111 <--- 230 User logged in, proceed. 111.111.111.111 ---> PWD 111.111.111.111 <--- 257 "/" is current directory. 111.111.111.111 ---> PBSZ 0 111.111.111.111 <--- 200 PBSZ command OK. Protection buffer size set to 0. 111.111.111.111 ---> TYPE I 111.111.111.111 <--- 200 Type set to I. 111.111.111.111 ---> MKD /InstMsi 111.111.111.111 <--- 257 "/InstMsi" directory created. 111.111.111.111 ---> CWD /InstMsi 111.111.111.111 <--- 250 Directory changed to /InstMsi ---> PROT P ---> TYPE A 111.111.111.111 <--- 200 Type set to A. 111.111.111.111 ---> PASV ftp.smartftp.com <--- 200 Command okay. ftp.smartftp.com ---> PASV 111.111.111.111 <--- 227 Entering Passive Mode (111,111,111,111,23,157) 111.111.111.111 ---- Connecting data socket to (111.111.111.111) port 6045 111.111.111.111 ---> LIST ftp.smartftp.com <--- 227 Entering Passive Mode (213,144,155,6,62,146) ftp.smartftp.com ---- Connecting data socket to (213.144.155.6) port 16018 ftp.smartftp.com ---> LIST 111.111.111.111 <--- 150 Opening ASCII mode data connection for /bin/ls. ftp.smartftp.com <--- 150 File status okay; about to open data connection. 111.111.111.111 <--- 226 Transfer complete. 111.111.111.111 ---- Closing data socket Certificate depth: 0; subject: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x00 i\x00c\x00h/ST=ZH/C=CH; issuer: /CN=smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x0 0i\x00c\x00h/ST=ZH/C=CH WARNING: Certificate verification: unable to get local issuer certificate WARNING: Certificate verification: unable to verify the first certificate ftp.smartftp.com <--- 226 Closing data connection. Transfer Complete (165 bytes) ftp.smartftp.com ---- Closing data socket ftp.smartftp.com ---> TYPE I ftp.smartftp.com <--- 200 Command okay. ftp.smartftp.com ---> MDTM INSTMSIA.EXE ftp.smartftp.com <--- 213 20020127221452 ftp.smartftp.com ---> MDTM INSTMSIW.EXE ftp.smartftp.com <--- 213 20020127221930 Transferring file `INSTMSIA.EXE' 111.111.111.111 ---> TYPE I 111.111.111.111 <--- 200 Type set to I. 111.111.111.111 ---> CPSV 111.111.111.111 <--- 500 'CPSV': command not understood. **** FXP: trying to reverse ftp:fxp-passive-source 111.111.111.111 ---> SIZE INSTMSIA.EXE 111.111.111.111 <--- 550 /InstMsi/INSTMSIA.EXE: No such file. ftp.smartftp.com ---> SSCN ON ftp.smartftp.com <--- 200 SSCN: CLIENT METHOD. ftp.smartftp.com ---> PASV ftp.smartftp.com <--- 227 Entering Passive Mode (213,144,155,6,62,192) ftp.smartftp.com ---> RETR INSTMSIA.EXE 111.111.111.111 ---> PORT 213,144,155,6,62,192 111.111.111.111 <--- 200 PORT Command successful. 111.111.111.111 ---> STOR INSTMSIA.EXE ftp.smartftp.com <--- 150 File status okay; about to open data connection. 111.111.111.111 <--- 150 Opening BINARY mode data connection for INSTMSIA.EXE. ftp.smartftp.com <--- 425 Timeout occurred while waiting for PASV connection to be established [REF: 90D7D8D9494D] ---> ABOR ftp.smartftp.com ---> PASV 111.111.111.111 <--- 426 Data connection closed, receive file INSTMSIA.EXE aborted. 111.111.111.111 <--- 226 ABOR command successful. ftp.smartftp.com <--- 227 Entering Passive Mode (213,144,155,6,62,137) ftp.smartftp.com ---> RETR INSTMSIA.EXE 111.111.111.111 ---> PORT 213,144,155,6,62,137 111.111.111.111 <--- 200 PORT Command successful. ftp.smartftp.com <--- 150 File status okay; about to open data connection. 111.111.111.111 ---> STOR INSTMSIA.EXE 111.111.111.111 <--- 150 Opening BINARY mode data connection for INSTMSIA.EXE. ftp.smartftp.com <--- 425 Timeout occurred while waiting for PASV connection to be established [REF: 90D7D8D9494D] ---> ABOR ftp.smartftp.com ---> PASV 111.111.111.111 <--- 426 Data connection closed, receive file INSTMSIA.EXE aborted. 111.111.111.111 <--- 226 ABOR command successful. ftp.smartftp.com <--- 227 Entering Passive Mode (213,144,155,6,62,142) ftp.smartftp.com ---> RETR INSTMSIA.EXE 111.111.111.111 ---> PORT 213,144,155,6,62,142 ftp.smartftp.com <--- 150 File status okay; about to open data connection. 111.111.111.111 <--- 200 PORT Command successful. 111.111.111.111 ---> STOR INSTMSIA.EXE 111.111.111.111 <--- 150 Opening BINARY mode data connection for INSTMSIA.EXE. Interrupt ---> ABOR ---> ABOR 111.111.111.111 <--- 426 Data connection closed, receive file INSTMSIA.EXE aborted. 111.111.111.111 <--- 226 ABOR command successful. ftp.smartftp.com <--- 426 Abort initiated by control connection [REF: D0162B0CF6D6] ftp.smartftp.com <--- 226 ABOR command successful. lftp :~> quit ftp.smartftp.com ---> QUIT ftp.smartftp.com ---- Closing control socket 111.111.111.111 ---> QUIT 111.111.111.111 ---- Closing control socket [C:\Temp] --- "Alexander V. Lukyanov" <[EMAIL PROTECTED]> wrote: > On Thu, May 27, 2004 at 02:52:27AM -0700, Roboco > Sanchez wrote: > > Seems like lftp doesn't handle FEAT sequence > correctly > > when logging on to BlackMoon and RaidenFTPd. > Please > > see the log from lftp and SmartFTP below. I guess > it's > > the SYST command? Cheers. > > Those ftp servers don't allow FEAT before login. > This is quite bad, as > AUTH should be used before login and ftp client > won't know for sure > if it is supported. Besides, Raiden ftp server uses > code 500 to indicate > FEAT error, 500 means that the command is > unsupported, that is why lftp > doesn't retry FEAT after login. BlackMoon uses 503 > which is better and > means 'invalid sequence of commands'. I have added > 503 to the list of > codes on which FEAT is retried after login. > > Please try lftp-3.0.5rc2. > > -- > Alexander. __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/
