Thread: IDEA: Obfuscate a common program as much as possible

  1. #1
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490

    IDEA: Obfuscate a common program as much as possible

    Write a program that's really complicated-looking but still does something

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    *bump*

    One for next time round...... (hopefully!)
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    yeah, i'd like to see this one done, too. flashdaddee did its own a while ago, maybe in 2001. it's at the flashdaddee forums and under contest entries section of the web site if anyone wants to look around.

    *bump*

  4. #4
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    *bump*

  5. #5
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198
    Did you know there is a real contest for this.
    I have a link for it, I dont know if I shoud put it here, if you do want it Ill post itl.
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

  6. #6
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    i know: the ioccc

    flashdaddee did one, too. 7 ppl participated (which is remarkable for flashdaddee). you can check it out on the contests page at flashdaddee

  7. #7
    Christian
    Join Date
    Mar 2002
    Posts
    612
    Ygf do you mean a program that I don't know adds a couple of number together, but contains 800 or so lines of code and does a lot with it?
    I shall call egypt the harmless dragon

    -Isaiah 30.7

  8. #8
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    basically, a topic is picked. let's say... prining a name. (flashdaddee already did this idea, but bear with me). your job is to make code that does that but is as complicated and needlessly wasteful as possible, but still has some kind of creative order to it.

    it's hard to explain. flashdaddee.com and the ioccc web sites have some examples.

  9. #9
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198
    *bump*

    As long as it doesnt have to do much, Ill just have fun making it look complicated etc.

    Ill probably enter, if this is nominated, I would assume a lot more poeple would, since it doesnt deal with a lot of programming.
    Im personally not very sound with anything but Java right now. I just know a little C, and learning C++ soon.
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

  10. #10
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Ygf do you mean a program that I don't know adds a couple of number together, but contains 800 or so lines of code and does a lot with it?
    Possibly, but a simple explanation would be the most compact, and/or impossible to understand spawn of satan that you can manage. Here is a quickie example:
    Code:
    #include<stdio.h>
    g(p,i)char*p;int(i);{if(*p!=0&&g(*&p+i++-01+1,++i-1
    +0x1)){}return(i);}s(o,t)char*o;char*t;{char*m=*&o;
    while((*m++=*t++)!=00){}}c(h,f)char*h;char*f;{
    while(*&*h+0x1-4+03&&h++){}while(*&*&*h++=*f++){}}r(s)
    char*s;{char**i,*j=&*(g(s,0)+s-1);for(i=&*&s;*i<*
    &*&*&j;**i^=*&*j,*&*j^=**i,**i^=*&*j,*--&*i,&*--&
    *j);}h(v,b,m,i)int(v);char*b;int(m);int(i);{char(
    t)[100]={0};do*(i+t)=*(v%0x10+"0123456789ABCDEF")
    ;while((v/=017)&&~i++<-~m);r(t);s(b,"0x");c(b,t);}
    main(){char(p)[102]={0};h(27,p,((char*)(&p+1)-(char
    *)&p)/((char*)(p+1)-(char*)p),0);puts(p);return(0);}
    All it does is convert a decimal value to hexadecimal, but it goes nuts in the process.

    -Prelud
    My best code is written with the delete key.

  11. #11
    Shadow12345
    Guest
    Umm not to be anti climatic or anything but what would be the point of doing this program? I mean the other ideas have all been ones that can somehow hone your programming skills. How can writing crap make you not write crap?

  12. #12
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198
    I think this one would just be for fun!
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

  13. #13
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    How about a very short contest in which we obfuscate "Hello World!"

  14. #14
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by ygfperson
    basically, a topic is picked. let's say... prining a name. (flashdaddee already did this idea, but bear with me). your job is to make code that does that but is as complicated and needlessly wasteful as possible, but still has some kind of creative order to it.

    it's hard to explain. flashdaddee.com and the ioccc web sites have some examples.
    i like the ioccc methodology better; there is no one program you have to make, all it has to be is something simple that is overcomplicated with obfuscation
    hello, internet!

  15. #15
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by Prelude
    >Ygf do you mean a program that I don't know adds a couple of number together, but contains 800 or so lines of code and does a lot with it?
    Possibly, but a simple explanation would be the most compact, and/or impossible to understand spawn of satan that you can manage. Here is a quickie example:
    Code:
    #include<stdio.h>
    g(p,i)char*p;int(i);{if(*p!=0&&g(*&p+i++-01+1,++i-1
    +0x1)){}return(i);}s(o,t)char*o;char*t;{char*m=*&o;
    while((*m++=*t++)!=00){}}c(h,f)char*h;char*f;{
    while(*&*h+0x1-4+03&&h++){}while(*&*&*h++=*f++){}}r(s)
    char*s;{char**i,*j=&*(g(s,0)+s-1);for(i=&*&s;*i<*
    &*&*&j;**i^=*&*j,*&*j^=**i,**i^=*&*j,*--&*i,&*--&
    *j);}h(v,b,m,i)int(v);char*b;int(m);int(i);{char(
    t)[100]={0};do*(i+t)=*(v%0x10+"0123456789ABCDEF")
    ;while((v/=017)&&~i++<-~m);r(t);s(b,"0x");c(b,t);}
    main(){char(p)[102]={0};h(27,p,((char*)(&p+1)-(char
    *)&p)/((char*)(p+1)-(char*)p),0);puts(p);return(0);}
    All it does is convert a decimal value to hexadecimal, but it goes nuts in the process.

    -Prelud
    Code:
    C:\WINDOWS\Desktop>gcc -c dum.c -o dum.o
    dum.c: In function `r':
    dum.c:7: invalid lvalue in decrement
    dum.c:8: invalid lvalue in decrement
    hello, internet!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. program quits unexpected
    By skelesp in forum C Programming
    Replies: 34
    Last Post: 12-10-2008, 09:10 AM
  2. C program idea not sure!
    By newbiecoderguy in forum C Programming
    Replies: 6
    Last Post: 07-02-2008, 11:31 AM
  3. Replies: 3
    Last Post: 01-14-2003, 10:34 PM
  4. IDEA: A program to make a graphic of any file
    By carrja99 in forum Contests Board
    Replies: 1
    Last Post: 10-21-2002, 12:33 PM