Board

Go Back   Board > Community > Competition
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Competition a0tu's commuinity competitions. Join in the fun!

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2008, 12:11 PM
Twitch Twitch is offline
Valued Member
 
Join Date: Oct 2005
Location: Ireland!
Posts: 475
Twitch is an unknown quantity at this point
Default First hacking competition

Ok folks, here's that competition I was promising.. Basically, the objective of this is to find a way of executing the hidden() function. You need to use any way possible (WITHOUT changing the code given, obviously) to launch the hidden function. I have done it myself, so message me your ideas, and I'll post whoever get's it right. If you give up, I'll message you the solution, just don't go giving the solution to others .

In the next programming challenge (I have one done already) I'll give the answer this time next Sunday. However, because this one is rather simple, I probably won't be publicly posting the answer for a while..

The program is written in C, and can be compiled using the following:
Quote:
gcc file.c -o file
Anyway, here's the code! Best of luck!

Code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

void hidden(){
  printf("Well done!\n");
  exit(0);
}

int main(int argc, char *argv[]){
  char buffer[5];
  if(argv<2){
    printf("Usage: %s <your name>\n",argv[0]);
    exit(0);
  }
  strcpy(buffer, argv[1]);
  printf("Your name is: %s\n",buffer);
  return 0;
}
Good luck!
__________________
Twitch`

Last edited by Twitch; 12-10-2008 at 12:56 PM.
Reply With Quote
Reply

Bookmarks

Tags
challenge , competition , exploitation , hacking , programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacking..? death11284 Hacking and Phreaking 7 29-06-2008 09:04 PM
What got you into hacking? Twitch Hacking and Phreaking 10 26-01-2008 09:12 PM
paddy bog space people programming competition Jamkirk Web design and Programming 21 04-12-2007 11:22 PM
im new to hacking 3 Hacking and Phreaking 18 17-04-2007 07:30 PM
Website Design Competition Jamkirk Competition 15 16-02-2007 10:50 AM


All times are GMT +1. The time now is 12:35 AM.


Copyright a0tu.com