Skip to content
Permalink
Browse files
Update so we have gadgets
  • Loading branch information
aa9863 committed Nov 22, 2022
1 parent 17ddb60 commit bc5fccb05b35c4d5bd3b83b5439c3be1f6a79959
Showing 1 changed file with 7 additions and 3 deletions.
@@ -2,12 +2,16 @@
#include <string.h>
#include <unistd.h>

int BUFFER=200;
int BUFFER=240;

void helper(){
//Screw you compiler optimisation and LibC changes...
__asm__("pop %rdi; ret");
}

int copy(){
char buf[BUFFER];
int r;
r = read(0, buf, 400); //Copy data in the Buffer
int r = read(0, buf, 400); //Copy data in the Buffer
printf("%d Bytes Read\n", r);
}

0 comments on commit bc5fccb

Please sign in to comment.