Skip to content
Permalink
e92cac757b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (21 sloc) 463 Bytes
#include <stdio.h>
#include <string.h>
#include <unistd.h>
int BUFFER=240;
void helper(){
//Screw you compiler optimisation and LibC changes...
__asm__("pop %rdi; ret");
}
int copy(){
char buf[BUFFER];
int r = read(0, buf, 400); //Copy data in the Buffer
printf("%d Bytes Read\n", r);
}
int main(int argc, char* argv[]){
/* Main Function*/
printf("Smash The Stack\n");
//Get the data
int out = copy();
printf("Lose :(\n");
return 0;
}