Answered You can hire a professional tutor to get the answer.
c) contains a stack buffer overflow vulnerability. Please write exploit (by modifying data.txt) to open a shell on Linux.
Exploiting Buffer Overflow (50 points)
The attached C code (sort.c) contains a stack buffer overflow vulnerability. Please write exploit (by
modifying data.txt) to open a shell on Linux. The high level idea is to overwrite the return address with
the address of function system(), and pass the parameter "/bin/sh" to this function. Once the return
instruction is executed, this function will be called to open a shell.