-def crackpop(host, port, user, passwords):
- print "Testing %d passwords." % len(passwords)
- for p in passwords:
+# the passwords parameter is a tuple: (n, L)
+# where L is an iterable type and n is the number of elements in L
+def crackpop(host, port, ssl, user, passwords):
+ if ssl:
+ pop3_connect = poplib.POP3_SSL
+ else:
+ pop3_connect = poplib.POP3
+
+ print "Testing %d passwords." % passwords[0]
+ for p in passwords[1]: