Re: FTP over NCAT
nnposter <[email protected]> Wed, 9 Jan 2019 13:46:47 -0700
| Newsgroups | gmane.comp.security.nmap.devel |
|---|---|
| Message-ID | <[email protected]> |
FTP and SFTP are principally different protocols so using a client for one to really talk the other is not going to work. Secondarily, FTP is a complex protocol that involves secondary TCP connections (data channels) managed through a primary TCP connection (control channel). Because of this complexity, the protocol is not well suited for traversing simple TCP proxies. Cheers, nnposter On 1/5/19 6:43 PM, Siva wrote: > NMAP team > Could u please advice syntax for using ncat to use proxy to download > files from a external ftp host ? > > While the following is working for destinations on port 22 - sftp, i am > unable to reach a ftp destination using this syntax. > > Could you please advice ? > > sftp -v -oPort=21 "ProxyCommand=/usr/bin/ncat -v --proxy $proxy_server > --proxy-type socks5 --proxy-auth $proxy_user:$proxy_pwd %h %p" > $ftp_user@$ftp_host > > Regards > Siva > > _______________________________________________ > Sent through the dev mailing list > https://nmap.org/mailman/listinfo/dev > Archived at http://seclists.org/nmap-dev/ > _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/