Your a lesbic!
by Atomix October 07, 2003
by atomix July 25, 2004
by atomix July 31, 2004
Like, dude, What gives?
by Atomix October 07, 2003
A type of exploitation in programming in which a set buffer is created in a program and a user has the advantage of overflowing that buffers set limit to allow the user to execute arbitrary code by overwriting a memory block, held for the buffer.
#include <stdio.h>
int main(int argc, char **argv) {
buffer300; //set buffer to store 300 bytes
if(argc<=2) {
printf("usage: %s <data to put in buffer>", argv0);
}else{
memset(buffer, argv1); //add 2nd argument (the data) into the buffer
printf("%s",buffer); //print data that resides in the buffer
}
if more than 300 bytes are put into the buffer, it will cause a segmentation fault causing a buffer overflow.
int main(int argc, char **argv) {
buffer300; //set buffer to store 300 bytes
if(argc<=2) {
printf("usage: %s <data to put in buffer>", argv0);
}else{
memset(buffer, argv1); //add 2nd argument (the data) into the buffer
printf("%s",buffer); //print data that resides in the buffer
}
if more than 300 bytes are put into the buffer, it will cause a segmentation fault causing a buffer overflow.
by atomix April 25, 2004