Skip to content
Permalink
Browse files
Randomize buffer sizes
  • Loading branch information
aa9863 committed Jan 24, 2023
1 parent 46cd1c4 commit 621aad95f2f6189269f8aa3fc852b696e1ab7cd2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
@@ -23,10 +23,10 @@ int processConnection(int fd, int argc, char* argv[]) {

if(getenv("RUN_ALSR")) {
printf("Running with ALSR turned off\n");
int out = personality(ADDR_NO_RANDOMIZE);
fflush(stdout);
personality(ADDR_NO_RANDOMIZE);
}

execvp(argv[1], &argv[1]);
}

@@ -7,8 +7,10 @@ services:
ports:
- "1337:1337"
- "22:22"
#cap_add:
# - CAP_SYS_ADMIN
cap_add:
- CAP_SYS_ADMIN
privileged: true
environment:
- RUN_ALSR
- RUN_ALSR=1


@@ -4,7 +4,7 @@
#include <unistd.h>

int INPUT=300; //Give enough to overflow
int BUFFER=150;
int BUFFER=175;

void win(void){
/*Win Condition

0 comments on commit 621aad9

Please sign in to comment.