Slashdot Mirror


Python Conference Coming Soon

nnorwitz writes "PyCon 2004 is coming to Washington, DC at the end of March. It's a great place to meet lots of smart people and learn new things. Many interesting discussions go far beyond Python into other programming languages and topics. We should find out more about the Pie-thon, the OSAF since Mitch Kapor is the keynote speaker. There may even be a few surprises. The price is only $175, but early bird registration ends soon. It's not too late to submit a presentation either. I hope to see lots of new faces this year! I want to talk to some Perl and Ruby zealots^Wconverts^Wprogrammers. :-)"

1 of 45 comments (clear)

  1. MovableType SPAMMING script!!! by (gnaa)RKZ · · Score: 0, Flamebait

    Python is great.
    import urllib
    import sys
    from whrandom import choice
    import string
    entryid = 2979
    cgiurl = "http://www.jayallen.org/cgi-bin/mt/mt-comments.cg i"

    message_text = """

    """

    def GenEmail():
    chars = string.letters
    username = ""
    hostname = ""
    for i in range(5):
    username = username + choice(chars)
    hostname = hostname + choice(chars)
    email = username + "@" + hostname + ".com"
    return email

    def GenWebsite():
    chars = string.letters
    site = ""
    for i in range(8):
    site = site + choice(chars)
    site = site + ".com"
    return site

    def RandomProxy():
    # high anonymity from 2004.01.06
    proxylist = ["http://213.131.72.19:8080/", "http://203.124.247.50:80/", "http://66.123.154.53:80/", "http://200.29.132.50:8000/"]
    rtnprox = choice(proxylist)
    return rtnprox
    def pseudoname():
    chars = string.letters
    name = ""
    for w in range(6):
    name = name + choice(chars)
    return name

    def rndmessage():
    chars = string.letters
    msize = [10, 15, 20, 25]
    wsize = [2, 4, 5, 6, 7, 8, 10, 12]
    message = ""
    for l in range(choice(msize)):
    for m in range(choice(wsize)):
    message = message + choice(chars)
    message = message + " "
    return message
    thisproxy = RandomProxy()

    for i in range(int(sys.argv[1])):
    proxies = {'http': thisproxy}
    opendev = urllib.FancyURLopener(proxies)
    par = urllib.urlencode(
    {
    'entry_id': entryid,
    'author': pseudoname(),
    'email': GenEmail(),
    'text': rndmessage(),
    #'text': message_text
    'post': " Post ",
    'checkbox': "false",
    'url': GenWebsite()}
    )
    f = opendev.open(cgiurl, par)
    print f.read(8096)

    --
    This shows how much of a non-issue spam is, and a small but loud minority shout about spam until their head explodes.