patrickjuchli / basic-ftp

FTP client for Node.js, supports FTPS over TLS, passive mode over IPv6, async/await, and Typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration of active FTP

malee1975 opened this issue · comments

I have been looking into integrating compatibility for active FTP into your node. At the moment I am just going through the distributed source, making some minor adjustments to see if it is possible or not.

Just wondering if you have any pointers that might help...

Basically I have added a new method name to the Array that is sent to the enterFirstCompatibleMode function. For example enterActiveMode . This function is just a copy of the enterPassiveModeIPv4 function.

Due to the fact that PORT like PASV is reliant on IPV4.

I am hard coding the PORT connection command as PORT 127,0,0,1,0,21

The connection to the server is successful, however as soon as connection is made I receive an error message.

The real IP has been blacked out.

Screenshot 2024-03-27 173121

I figure the issue may well relate to the command and control ports, but at the moment it is hard to tell...