Im working on a class assignment which requires us to create sploit.c file which exploits a given /usr/bin program. The sploit.c file initiates the /usr/bin program with an execve(TARGET, args, env) call.
I do not know how to debug the /usr/bin program when its called by sploit.c program?
My sploit program currently causes the /usr/bin program to segfault. I am able to gdb the sploit.c program and examine registers/stack and time of segfault but I want to be able to step through the execution of the /usr/bin program?
Note: we have been provided with the source that generated the /usr/bin program
Note: We are provided with virtual machine which have limited ability to download/install new software.