Linux is alive and very well, doing real work in the real world. Share your successes, your questions and your ideas with authors and others in the developerWorks community.
I was trying to simulate a buffer overflow attack using a simple C program on my Ubuntu machine. I have read a bit of theory on stack smashing etc using buffer overflows so wanted to give a try on my own. I wrote the following C code :
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
char key[10];
int jackpot_open = 0;
memset(key, 0, sizeof(key));
printf("\n Enter the key : \n");
gets(key);
if (!strcmp(key,"Linux"))
{
... [More]