usr bin python from socket import from time import from select import

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/usr/bin/python
from socket import *
from time import *
from select import *
HOST='69.49.123.241'
sock = socket(AF_INET,SOCK_STREAM)
sock.connect((HOST,110))
sock.send('user ****\npass *****\nlist\nretr 1\n')
while 1:
sock.setblocking(0)
select([sock],[],[],0)
sock.recv(1024)
print data
sock.close()