1 2 3 4 56 7 8 9 1011 12 13 14 1516 17 18 19 2021 22 23 24 2526 27 28 | #include <stdio.h> #include <stdlib.h> #include <string.h> void hint(){ printf("Need to bypass aslr\n"); exit(0); } void vulnfunc(char *input){ char vulnbuf[300]; memcpy(vulnbuf, input, strlen(input)); } int main(int argc, char *argv[]){ if(argc > 1) { vulnfunc(argv[1]); } else { printf("%s <input>\n", argv[0]); return 1; } return 0; } |
Say *NO* to advertisements!