i come back to python; just some questions

ppcdev ppcdev at hotmail.com
Sun Jul 14 12:08:20 EDT 2002


hi. i used to develop little windows application in python some years
ago. today i come back to this language because i 'd like to test the
security of some ftp servers. it's really easy to connect to a ftp
server with python (for newer newbies here it is ):

import socket; s=socket.socket(socket.AF_INET, socket.SOCK_STREAM);
vr=s.connect(('127.0.0.1',21)); s.setblocking(0); s.send('user
user1\r\n');
d=s.recv(1024); print d;

i was working on an old pentium II and wanted to send a very long
string in the USER parameter but it made my computer bug.. is it
normal???

str='a'; r=range(1024);
for x in r[:]:
    str=str+str

but it even bugs with a value of 512 and 256 for r=range(..)


thanks



More information about the Python-list mailing list