Slashdot Mirror


The 2006 Underhanded C Contest Begins

Xcott Craver writes "The second annual Underhanded C Code Contest is live as of April 4th, and runs until July 4th. The object is to write malicious C code that looks perfectly readable and innocent under informal inspection of the source."

15 of 232 comments (clear)

  1. I Win by ExE122 · · Score: 5, Funny

    In this contest you must write code that is as readable, clear, innocent and straightforward as possible, and yet it must fail to perform at its apparent function. To be more specific, it should do something subtly evil.

    system("c:\Program Files\Internet Explorer\iexplore.exe");

    Where's my prize?

    --
    "Man Bites Dog
    Then Bites Self"
    --
    Capitalism: When it uses the carrot, it's called democracy. When it uses the stick, it's called fascism.
    1. Re:I Win by Anonymous Coward · · Score: 2, Funny

      system("c:\Program Files\Internet Explorer\iexplore.exe");

      Where's my prize?


      I don't think you read the task description very good, it said:
        "it should do something subtly evil"

    2. Re:I Win by darkmeridian · · Score: 3, Funny
      In this contest you must write code that is as readable, clear, innocent and straightforward as possible ...


      Read the conditions of the contest clearly. You obviously lose.
      --
      A NYC lawyer blogs. http://www.chuangblog.com/
  2. Re:I'll submit the source code for... by gitargr8 · · Score: 1, Funny
    Oh darn, it's not written in C.


    //Here you go

    void main(){

    install(WindowsME);
    return(0);

    }
  3. Re:Can someone explain this to me? by bluelip · · Score: 3, Funny

    It provides a method to enumerate the techniques used by those with less than pure intentions.

    IOW, it helps folks learn to spot these 'bugs' more readily.

    --

    Yep, I never spell check.
    More incorrect spellings can be found he
  4. I know... by scolby · · Score: 5, Funny

    ...I'll design a media player that appears to be playing a CD when it's actually installing a root kit that creates an easy way back door for malware.

    And then I'll get sued by Sony for copyright infringement.

  5. Re:I'll submit the source code for... by Lumpy · · Score: 2, Funny

    Windows!

    Oh darn, it's not written in C.


    Hey Windows XP and Vista are great examples of how powerful and fast VB.NET is!

    You cant write as robust of a Operating system in Python or Ruby!

    --
    Do not look at laser with remaining good eye.
  6. Re:Can someone explain this to me? by adyus · · Score: 5, Funny

    Um, I think your signature should be number three:
    1. It teaches you not to take all code at face value, and actually read into it.
    2. It's fun.
    3. It's like sex, except I'm having it!

    :)
  7. Re:Can someone explain this to me? by Guignol · · Score: 5, Funny

    Yes, for instance we could say it is malicious if it wouldn't halt

  8. Re:Can someone explain this to me? by bitt3n · · Score: 3, Funny

    It's like a wet t-shirt contest, allowing you to show off your rack in a controlled environment. Except in this case it's the metaphorical rack nerds develop from years of programming prowess, and not the actual rack they develop from scarfing down doritos and Mountain Dew during the same interval.

  9. My entry! by radiumhahn · · Score: 4, Funny
    #include <stdio.h>

    main() {

    /* Rob a bank! */
    /* Steal Stuff! */
    printf("hello, world\n");
    /* Use Drugs! */
    /* Kill, Kill, Kill! */
    }

  10. My entry -- the world's last C bug by PeeAitchPee · · Score: 4, Funny

    An oldie but goodie . . .

    while (1)
    {
    status = GetRadarInfo();
    if (status = 1)
    LaunchMissiles();
    }
    1. Re:My entry -- the world's last C bug by CoughDropAddict · · Score: 3, Funny
      or:
      while(1)
      {
        status = GetRadarInfo();
        if(status == 1);
          LaunchMissles();
      }
  11. Re:Can someone explain this to me? by kimvette · · Score: 4, Funny

    Perhaps this "contest" is sponsored behind the scenes by Sony, in their search for more stealtht rootkit implementation methodologies in their next Anti-Fair-Use software release. They're counting on some smartass or two submitting really clever malicious code, I just know they are!

    This has been the crackpot conspiracy theory of the day.

    (Why yes, I'm bored! Why do you ask?)

    --
    The Christian Right is Neither (Christian nor right). See: Matthew 23, Matthew 25, Ezekiel 16:48-50
  12. Re:Compiler says by Richy_T · · Score: 2, Funny

    #include "texan.h"