Okay I am a bit new to python and not really a programmer so if my question seem stupid please bear with me
So I am trying to program a proxy ftp (for now anyway) but I have a problem. Here is how a connection is established in ftp (took it from the RFC):
Connection Establishment
120
220
220
421
Which means:
LOCAL COMMANDS BY USER ACTION INVOLVED
ftp (host) multics<CR> Connect to host S, port L,
establishing control connections.
<---- 220 Service ready <CRLF>.
So so far I've just made a code that creates a socket, binds it to ftp port (21) and waits for a connection. When a client tries to connect using ftp, the proxy just sends a 220 --> newSocket.send("220 This is the proxy. \r\n")
but this doesnt seem to trigger anything for the client, and when I sniff sent packets I only see the syn, syn ack, ack and not the 220 I sent, as if it was never sent.
Anyone has ideas/suggestions? I dont mind posting my whole code if needed. But I've been stuck with this for a little while and I would really love to start the real work...
Thanks in advance.
So I am trying to program a proxy ftp (for now anyway) but I have a problem. Here is how a connection is established in ftp (took it from the RFC):
Connection Establishment
120
220
220
421
Which means:
LOCAL COMMANDS BY USER ACTION INVOLVED
ftp (host) multics<CR> Connect to host S, port L,
establishing control connections.
<---- 220 Service ready <CRLF>.
So so far I've just made a code that creates a socket, binds it to ftp port (21) and waits for a connection. When a client tries to connect using ftp, the proxy just sends a 220 --> newSocket.send("220 This is the proxy. \r\n")
but this doesnt seem to trigger anything for the client, and when I sniff sent packets I only see the syn, syn ack, ack and not the 220 I sent, as if it was never sent.
Anyone has ideas/suggestions? I dont mind posting my whole code if needed. But I've been stuck with this for a little while and I would really love to start the real work...
Thanks in advance.