Solved

FTP Client

Posted on 2004-04-19
5
849 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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 and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

691 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