Solved

FTP Client

Posted on 2004-04-19
5
828 Views
Last Modified: 2010-04-15
I am looking for sources/code for a simple FTP Client to connect, authenticate, and perform the 'ls' and 'cd' commands!
0
Comment
Question by:sporenza
5 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10865715
homework ?
0
 
LVL 11

Expert Comment

by:avizit
ID: 10865723
http://lftp.yar.ru/get.html

i doubt anyone is going to paste source code for a ftp client here  

/abhijit/
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10865923
sporenza,

Your question history does not indicate that you ask homework questions, however we have had exactly same question being asked by students. So please take time to clarify if this is homework question. This will allow us to provide help accordingly. For a homework assignment, you may need more tutorials and help rather than source code while for a professional project, a couple of good links that I have may suffice.

sunnycoder
0
 
LVL 24

Expert Comment

by:fridom
ID: 10866444
why should one want to write such a thing, if one can get prebuild libraries for that?
If it's about socket programming, well fine, then post your code

Friedrich
0
 
LVL 22

Accepted Solution

by:
grg99 earned 500 total points
ID: 10867774
Here's the basic idea:

Get the relevant RFC's for FTP.  

Connect to port 21
accept any lines beginning with "100" or "200" series codes
Open up a listening socket on a random port.
inform the server of that port number with the "PORT" commmand.
Send the "ls" command.
Read the data from the random port.
Handle any response codes on the port 21 connection.


Voila!

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question