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

imgboard . php

Name: Anonymous 2009-02-01 1:48

So I was browsing /b/ when it crashed, and a download popped up for imgboard.php

http://pastebin.com/m2c2883d7

Haven't gotten a chance to look through it yet. Is this win?

Name: Anonymous 2009-02-02 15:40

>>78
Actually, MrVacBob posted a link with a zip somewhere.

Name: Anonymous 2009-02-02 16:07

>>81
hnto dess krrr?

Name: Anonymous 2009-02-02 17:43

Name: Anonymous 2009-02-02 17:50

>>82
YARLY

Name: Anonymous 2009-02-02 18:28

>>81
>>83
Thank you, good sir.

Name: Anonymous 2009-02-02 18:39

>>83
Thanks bro, by the way, it's because of me we call the guy MrVacBob-sama.

Name: Anonymous 2009-02-02 18:43

>>86
Is that even relevant to the matter at hand, or is that just your way of saying I invented that meme?

Name: Anonymous 2009-02-02 18:53

>>87
That is just my way of saying that, yes.

I'd provide you with some supporting links, but my /prog/ archive seems terribly incomplete, I can only find three references to MrVacBob-sama (only 1 if case matters)... (I have only archived to May of last year though)

Name: Anonymous 2009-02-02 19:05

>>1
so whats the point of this???? i tried to use it and it didn't even work

Name: Anonymous 2009-02-02 19:05

I would kill myself if I was the developer that had to maintain that file.

Name: Anonymous 2009-02-02 19:28

>>88
http://dis.4chan.org/read/prog/1208022792/19 is the first one my database knows of.

There are 20 in total.

Name: Anonymous 2009-02-02 20:07

>>71,73
Oh, I forgot. No one on here is actually a programmer.

Once you've graduated high school, and gotten through college, and had a couple of jobs, try and remember that post, ok? Good luck.

By the way, you'll note that I never said it was good code. I just said that it was normal code.

Name: Anonymous 2009-02-02 20:08

>>91
Yeah, I couldn't find anything earlier either... I suppose his name is only used in certain contexts that are unlikely to survive for long.

Name: Anonymous 2009-02-02 20:42

>>92
This is a board about programming, not about business sense, greed and the harsh realities of the real world. That means we're allowed to diss ugly and unmaintainable code that works, and praise useless code on its technical merits.

Name: Anonymous 2009-02-02 20:59

>>94
That's right. We're just pure, innocent Lispniks and Pythonistas without perversions in our minds.

Name: Anonymous 2009-02-02 22:16

>>95
What?  I use Python code to browse for hentai

Name: 73 2009-02-03 0:11

>>92
I never said it was good code. I just said that it was normal code.
I never said that you said it was good code. i actually misquoted you as saying it was
the norm
of course we all know the code is shit. a fucking blind codemonkey can see that. my problem lies in your apathetic, ``well, bad code exists everywhere, deal with it'', attitude. i would continue arguing but >>94 summed it up already.

Name: Anonymous 2009-02-03 1:02

>>96
You still have 4scrape scraping the porn boards, Taro? And you're saving it all that for yourself?

Name: Anonymous 2009-02-03 2:48

>>83
WHY not post to pastebin?

Name: Anonymous 2009-02-03 7:30

>>98
Taro uses the dead-dog-oriented programming language Haskell, not the Anticudder's vile weapon.

Name: Anonymous 2009-02-03 7:36

>>99
He wants to EARN CASH with his files.

Name: Anonymous 2009-02-03 8:20

>>98
See >>100, and yes, I do. fap fap fap.

Name: Anonymous 2009-02-03 11:35

>>96
O SHI-, i do the same with PHP. fap fap fap

Name: Anonymous 2009-02-03 18:01

LOL leaked 4chan source. The fact that the mods didn't delete this thread is proof that they don't give a shit.

Name: Anonymous 2009-02-03 18:11

I'm too lazy (read: stupid) to search that entire file for it, so somebody tell me.  What is 4chan's secure trip salt?

Name: Anonymous 2009-02-03 18:44

>>105
CTRL-F + "salt"

#
            if ($sectrip != "") {
#
                $salt = "LOLLOLOLOLOLOLOLOLOLOLOLOLOLOLOL"; #this is ONLY used if the host doesn't have openssl
#
                                                        #I don't know a better way to get random data
#
            if (file_exists(SALTFILE)) { #already generated a key
#
                $salt = file_get_contents(SALTFILE);
#
            } else {
#
                system("openssl rand 448 > '".SALTFILE."'",$err);
#
                if ($err === 0) {
#
                    chmod(SALTFILE,0400);
#
                    $salt = file_get_contents(SALTFILE);
#
                }
#
            }
#
                $sha = base64_encode(pack("H*",sha1($sectrip.$salt)));
#
                $sha = substr($sha,0,11);
#
                            if($trip=="") $name.=" <span class=\"postertrip\">";
#
                            $name.="!!".$sha;
#
            }

Name: Anonymous 2009-02-04 1:52

>>106
..Its actually stored in SALTFILE.

Name: Anonymous 2009-02-04 13:01

>>106
I don't know a better way to get random data
Just for the reference: head -c 1024 /dev/urandom > rand

Name: Anonymous 2009-02-04 13:26

>>108
Also, if binary is not wanted for some reason use tr -dc. But you're forgetting that such characters might wanted on MICROSOFT WINDOWS SERVER 2008.

Name: Anonymous 2009-02-04 13:38

>>108
Can't reading from /dev/urandom block indefinitely, or at least for PHP's timeout!?

Name: Anonymous 2009-02-04 13:46

>>110
% man head

Name: Anonymous 2009-02-04 13:59

>>111
Head doesn't appear to include a configurable timeout, or was there some other thing you were trying to point out?

Name: Anonymous 2009-02-04 14:17

>>112
YAAT.

>>109
You have to use tr -dc '[:print:]' on BSD, apparently.

Name: Anonymous 2009-02-04 14:24

>>112
Oh, sorry, I thought you were an idiot because you didn't know that -c 1024 only takes 1024 bytes. It appears that you are an idiot because you don't know that urandom doesn't block.

Name: Anonymous 2009-02-04 14:40

>>114
Not knowing that urandom doesn't block makes you an idiot now? Or do you just want to call people names on the internet?

Name: Anonymous 2009-02-04 14:55

>>108
dd if=/dev/random of=rand bs=1024 count=1
or
openssl rand -out rand 1024

Name: Anonymous 2009-02-04 15:22

>>111
% man urandom
Fixed.

Name: Anonymous 2009-02-04 15:23

>>115
Yes, it does.

Name: Anonymous 2009-02-04 15:37

>>118
considering this is the only difference between /dev/urandom and /dev/random (and urandom being less random of course), I tend to agree

Name: Anonymous 2009-02-04 16:03

>>119
(and urandom being less random of course)
This is why I wrote a kernel module to provide /dev/penguinofd00m. Not even /dev/random was random enough.

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