How can I keep track of what commands the ftp application is sending to the ftp server

F Is there a way to control the FTP port so I can know what commands my FTP application is sending to the FTP server?

I am using a closed source FTP client application that does not work with the closed source FTP application server. The client and server do not communicate well with each other and I would like to know why. I want to redesign the client to see what wishes the client is sending to the server. I used to use a web testing tool that allowed me to track content transfers over HTTP, but I can't find such a tool for FTP. I appreciate it if you can help me, thanks.

0


source to share


6 answers


Sounds like you need a packet sniffer - if your network admins / company policy allows it ... I've used wireshark quite successfully.



Basic FTP commands should be visible in packages.

+5


source


You can use Wireshark app: http://www.wireshark.org/



It should have decent parsing capabilities for FTP as well as other protocols.

+4


source


Can you set up a proxy server with a client? Then you can set up an ftp proxy using the log to see what is going on?

There is a proxy for Linux here: http://frox.sourceforge.net/doc/FAQ.html

Paul.

+1


source


Do you have access to ftp-server logs? These teams will probably be registered there.

If they are not, the next option would be to configure a server to register them if you have access.

If this is not an option or the server is not logging such things, then you need to go to a packet sniffer or proxy as suggested by previous posters.

+1


source


On Unix, tcpdump can be your friend. Perhaps you should first specify which OS you are targeting.

0


source


If you have the ability (often requiring root access) to use a packet sniffer, tcpflow sniffing the TCP control channel will display you running commands and responses back and forth in an easy-to-read format.

If you don't have that access, tools like ktrace

and strace

will allow you to see all the data read and written on the socket for that connection, although it will be a little work to fetch it.

If you could tell us which tool you used for HTTP traffic, it would allow us to search for something similar for FTP traffic.

0


source







All Articles