PDA

Click to See Complete Forum and Search --> : FTPCommands


L0phtpDK
Mar 22nd, 2001, 05:42 AM
Ok, after being on a roll for a while now, i finaly just hit a brick wall

and i'm not sure where to ask this question or how/where to find it.

But im hoping that one of u people may know this.

When you log onto a FTP server. You send/receive the following commands.

*** WinSock Connects To the FTP SERVER NOW ***
RECIEVE - 220 Server ready ...
SEND - USER FtpTest
RECIEVE - 331 Password required for FtpTest.
SEND - PASS ********
RECIEVE - 230 User FtpTest logged in.
SEND - CWD
RECIEVE - 250 CWD command successful. "/C:/" is current directory.
SEND - PWD
RECIEVE - 257 "/C:/" is current directory.
SEND - TYPE A
RECIEVE - 200 Type set to A.
SEND - PORT 127,0,0,1,4,512

Then it gives me an ok message and then i my client send the list command to get the DIR tree (Learned all of that on my own, no tuts, no Vb-World, no nothing! SO HA! ).

But how does the PORT command work. I'm taking a wild stab that the 127,0,0,1 is your ip address (i'm %99 sure). But what about the last two #'s? How does the server and the client recat to them? How did the client pick thouse two #'s and why (theses are made up numbers for now. In real life it was 5, 206)?

Also is there some type of website on the net that shows you what all the comands are for a ftp Server/Client program? I allready have ftp://ftp.isi.edu/in-notes/rfc959.txt

But who is realy going to read all of that anyways?

well, thats all from me now

§tay |{ewl,
L0phtpDK