Passive Mode Bug

Post a message here if you find anything wrong in ScriptFTP.

Passive Mode Bug

Postby gitse » 22 May 2012, 16:30

Hey,

I definitely found a bug which just occurs in rare situations. When you are using a FTP bouncer on the server side that bounces the control connection, ScriptFTP cant handle it when using the passive mode. ScriptFTP interprets just the Port part of the PASV command, not the IP-Address part.

Technically spoken, my server has IP-address a.a.a.a for the control connection and Ip-address b.b.b.b for the data connection. What happens when I login is the following:

Connecting to a.a.a.a Port: xxxx
Connected to a.a.a.a.
220 READY
.
.
.
USER xxxx
331 Password required for xxxx.
PASS xxxx
230 User xxxx logged in.
.
.
.
PASV
227 Entering Passive Mode (b.b.b.b,224,151)
Opening data connection to a.a.a.a Port: 57495
LIST
Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.
425 Can't open data connection.
***** GETLIST Error #17425: Cannot get remote directory listing.
***** The server said: Can't open data connection.



So as you can see, ScriptFTP tries to connect to the control connection Ip-address instead of the right data connection IP. Would be cool if this gets fixed any time in the future.
gitse
 
Posts: 1
Joined: 22 May 2012, 16:20

Re: Passive Mode Bug

Postby ScriptFTP support » 06 Jun 2012, 16:04

Thanks for reporting this
ScriptFTP support
Site Admin
 
Posts: 624
Joined: 04 Aug 2008, 15:08
Location: Burgos, Spain, EU


Return to Bug reports



Who is online

Users browsing this forum: No registered users and 1 guest