Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Ω /prog/ FINAL CHALLENGE Ω

Name: Anonymous 2011-04-27 18:36

THE CHALLENGE:

Program a spambot that target's /prog/ in the language of your choice and post the source code here. Most effective spammer wins. Remember, this is the final challenge for a reason.

+-This challenge is designed to kill /prog/ for goood-+

THE DEADLINE: Cinco de Mayo 00:00 /prog/ time.

I watched as the Lamb opened the first of the seven seals. Then I heard one of the four living creatures say in a voice like thunder, "Come and see!" I looked, and there before me was a white horse! Its rider held a bow, and he was given a crown, and he rode out as a conqueror bent on conquest.— Revelation 6:1-2

Good luck!

Name: Anonymous 2011-04-27 18:42

CHALLENGE MY ANUS

Name: Anonymous 2011-04-27 18:49

in b4 python

Name: Haxus the revelation 2011-04-27 19:13

Haxus the revelation

Name: Anonymous 2011-04-27 19:20

I already have one. The mainloop is:


(let loop ((x (read-subject-txt 'all)))
 (for-each
  (λ (x)
   (reply " " (thread-id x) #:meiru "sage") (sleep 5))
  x))


I will not kill /prog/.

Name: Anonymous 2011-04-27 20:12

>>3


import urllib2, httplib, time

def scan_first_post(threadid, phrases):
    resp = urllib2.urlopen('http://dis.4chan.org/read/prog/' + threadid + '/1')
    page = resp.read()
    page = page.lower().strip('. _-*,\'"')
    for i in range(0, len(phrases)):
        if page.find(phrases[i]) != -1:
            return 1
    return 0

def scan_until(phrases, stopat):
    ret = []
    pagenum = 1
    found = 0
    while len(ret) < stopat:
        resp = urllib2.urlopen('http://dis.4chan.org/list/prog/' + str(pagenum))
        page = resp.read()
        hrefstr = '<a href=\'read/prog/'
        while len(ret) < stopat:
            i = page.find(hrefstr)
            if i == -1:
                break
            i += len(hrefstr)
            page = page[i:]
            i = page.find(hrefstr)
            if i == -1:
                break
            i += len(hrefstr)
            page = page[i:]
            i = page.find('\'')
            threadid = page[:i]
            page = page[i+2:]
            i = page.find('</a>')
            if i == -1:
                break
            title = page[:i].strip('. _-*,\'"')
            page = page[i:]
            i = page.find('<td>')
            if i == -1:
                break
            i += len('<td>')
            page = page[i:]
            i = page.find('<')
            if i == -1:
                break
            numposts = page[:i]
            numposts = int(numposts)
            if numposts >= 1000:
                continue
            title = title.lower()
            canpush = 1
            for i in range(0, len(phrases)):
                if title.find(phrases[i]) != -1:
                    canpush = 0
                    break
            if scan_first_post(threadid, phrases) != 0:
                canpush = 0
            if canpush == 1:
                ret.append(threadid)
            else:
                found = 1
        pagenum = pagenum + 1
    return ret, found

def post_prog(threadid, comment, email):
    body = 'bbs=prog&id=' + threadid + '& lol what 2&kotehan=&meiru=' + email + '&com=' + comment + '&email=%27'
    h = httplib.HTTP('dis.4chan.org')
    h.putrequest('POST', '/post')
    h.putheader('Content-Type', 'application/x-www-form-urlencoded')
    h.putheader('Host', 'dis.4chan.org')
    h.putheader('Content-Length', len(body))
    h.endheaders()
    h.send(body)
    h.getreply()


while 1:
    try:
        bumplist, found = scan_until(['fart', 'autism', 'autist', '20lbs'], 40)
        if found == 1:
            bumplist.reverse()
            print 'Bumping list: ' + str(bumplist)
            for i in range(0, len(bumplist)):
                post_prog(bumplist[i], ' ', '')
                time.sleep(5)
        else:
            print 'Front page is clean'
            time.sleep(20)
    except urllib2.HTTPError:
        print 'HTTP Error'
    except urllib2.URLError:
        print 'URL Error'
    except httplib.HTTPException:
        print 'HTTP Error'
    except httplib.NotConnected:
        print 'Not Connected Error'
    except httplib.IncompleteRead:
        print 'Incomplete Read Error'
    except httplib.ImproperConnectionState:
        print 'Improper Connection State Error'
    except httplib.CannotSendRequest:
        print 'Cannot Send Request Error'
    except httplib.CannotSendHeader:
        print 'Cannot Send Header Error'
    except httplib.ResponseNotReady:
        print 'Response Not Ready Error'
    except httplib.BadStatusLine:
        print 'Bad Status Line Error'

Name: Anonymous 2011-04-27 20:18

>>6

body = 'bbs=prog&id=' + threadid + '&shiichan=proper2&kotehan=&meiru=' + email + '&com=' + comment + '&email=%27'

Name: Anonymous 2011-04-28 0:30

NO! I AM THE FLAMING HOMOSEXUAL!

Name: Anonymous 2011-04-28 3:39

sage

Name: Anonymous 2011-04-28 4:20

Name: Anonymous 2011-04-28 15:14

bump

Name: Anonymous 2011-04-28 17:29


VICTORY TO THE FARTISTS!

Name: Anonymous 2011-04-28 17:33


VICTORY TO THE FARTISTS!

Name: Anonymous 2011-04-28 17:33


VICTORY TO THE FARTISTS!

Name: Anonymous 2011-04-28 17:35


VICTORY TO THE FARTISTS!

Name: Anonymous 2011-04-28 19:20


VICTORY TO THE FARTISTS!

Name: Anonymous 2011-04-28 19:33

But whom will save Xarn?

Name: Anonymous 2011-04-28 21:16

>>6

   except urllib2.HTTPError:
       print 'HTTP Error'
   except urllib2.URLError:
       print 'URL Error'
   except httplib.HTTPException:
       print 'HTTP Error'
   except httplib.NotConnected:
       print 'Not Connected Error'
   except httplib.IncompleteRead:
       print 'Incomplete Read Error'
   except httplib.ImproperConnectionState:
       print 'Improper Connection State Error'
   except httplib.CannotSendRequest:
       print 'Cannot Send Request Error'
   except httplib.CannotSendHeader:
       print 'Cannot Send Header Error'
   except httplib.ResponseNotReady:
       print 'Response Not Ready Error'
   except httplib.BadStatusLine:
       print 'Bad Status Line Error'

JAVA PROGRAMMER DETECTED

Name: Anonymous 2011-04-29 2:28

I am in a country where they frown upon my killing your server.

Name: Anonymous 2011-04-29 3:33

>>18
That is Python, baby!

Name: Anonymous 2011-04-29 13:26

>>20
Python being used like Java. Protip: Python doesn't have checked exceptions and will print out the exception and a helpful stack trace for you when it hits the top of the stack.

Name: Anonymous 2011-04-29 14:06

>>21
Besides, unlike Java, Python can catch more than one exception type in one line, so you don't have to repeat the same error handling code EVERY FUCKING LINE OH MY GOD THIS CODE IS DRIVING ME INSANE

Name: Anonymous 2011-04-29 14:10

This is just another dumbass fartist thread pushing anti-/prog/ agenda. I say we abandon this thread and start coming up with an anti-spam program/javascript filter.

Name: Anonymous 2011-04-29 14:28

>>20

Used like Java. Protip: Python exceptions are not checked. You don't need to check them.

Name: Anonymous 2011-04-29 14:30

bot test

Name: Anonymous 2011-04-29 14:30

bot test

Name: Anonymous 2011-04-29 14:30

bot test

Name: Anonymous 2011-04-29 14:31

bot test

Name: Anonymous 2011-04-29 14:33

bot test

Name: Anonymous 2011-04-29 14:33

bot test

Name: Fartist 2011-04-29 14:35

Love me, Love me, say that you love me!

Name: Anonymous 2011-04-29 14:35

bot test

Name: Fartist 2011-04-29 14:35

Love me, Love me, say that you love me!

Name: Fartist 2011-04-29 14:35

Love me, Love me, say that you love me!

Name: Fartist 2011-04-29 14:35

Love me, Love me, say that you love me!

Name: Fartist 2011-04-29 14:35

Love me, Love me, say that you love me!

Name: Anonymous 2011-04-29 14:35

bot test

Name: Anonymous 2011-04-29 14:36

bot test

Name: Anonymous 2011-04-29 14:36

bot test

Name: Anonymous 2011-04-29 14:36

bot test

Name: Anonymous 2011-04-29 14:38

>>40
Which bot are you running?

Name: Anonymous 2011-04-29 14:42

>>41
My python bot.

Name: Anonymous 2011-04-29 16:52

>>21
But then it will stop executing the script

Name: Anonymous 2011-04-29 21:24

>>22
Java 7 allows catching multiple exceptions in one block. Your criticism is invalid.

Name: BLACK HITLER 2011-04-30 0:43

glory BLACK AFRIKA HEIL NIGGERS. HEIL BLACK AFRIKA. NIG HEIL BLACK HITLER!

Name: Anonymous 2011-04-30 0:43

bump

Name: BLACK HITLER 2011-04-30 0:44

glory BLACK AFRIKA HEIL NIGGERS. HEIL BLACK AFRIKA. NIG HEIL BLACK HITLER!

Name: WHITE HITLER 2011-04-30 0:47

glory WHITE EUROPE HEIL HONKEYS. HEIL WHITE EUROPE. SIG HEIL WHITE HITLER!

Name: WHITE HITLER 2011-04-30 0:48

glory WHITE EUROPE HEIL HONKEYS. HEIL WHITE EUROPE. SIG HEIL WHITE HITLER!

Name: WHITE HITLER 2011-04-30 0:51

glory WHITE EUROPE HEIL HONKEYS. HEIL WHITE EUROPE. SIG HEIL WHITE HITLER!

Name: WHITE HITLER 2011-04-30 0:51

glory WHITE EUROPE HEIL HONKEYS. HEIL WHITE EUROPE. SIG HEIL WHITE HITLER!

Name: Anonymous 2011-04-30 1:04

>>44
Didn't know that. But I assume that Oracle must have added major shittiness at some other point to compensate for this improvement.

Name: Anonymous 2011-04-30 1:43

\n o \n o

Name: Anonymous 2011-04-30 6:23

Name: Anonymous 2011-04-30 11:14

http://ompldr.org/vOGhtdA/prague-2011-04-29.tgz

In the memory of when /prog/ was GOOD.

Name: Anonymous 2011-04-30 11:25

>>55
  Implants. Those aren't your memories, they're somebody else's.

Name: Anonymous 2011-04-30 11:35

>>55
C#
I'm not installing Mono just so I can peruse your false memories. Who do you think I am?! Miguel de Icaza?!

Name: Anonymous 2011-04-30 14:04

And so, /prog/ imitates /b/. Spam, retardness and shit everywhere, not a single decent discussion, everyone calls everyone a faggot, spammers try to imitate the /prog/riders by saging from time to time, and >>57[1].

[1] I can peruse your false memories[2].
[2] false memories.

This is enough for me. See you after summer, maybe.

Name: Anonymous 2011-04-30 14:17

Don't leave. We need you.

Name: Anonymous 2011-04-30 18:17

Am I the only one who doesn't think /prog/ is too bad right now? I mean it's not great, but I've seen it a lot worse.

Name: Anonymous 2011-04-30 18:54

>>58
So this is how /prog/ dies — with thunderous farting.

Name: Anonymous 2011-04-30 19:44

>>61
No.

Name: Anonymous 2011-04-30 20:05

>>58
fuck you polefag, leave immediately

Don't change these.
Name: Email:
Entire Thread Thread List