Question: Exploit the vulnerability and execute function 4 instead of function 3 ( 3 2 - bit system ) . It is important to note that
Exploit the vulnerability and execute function instead of functionbit system It is important to note that function never gets called by the main function. Your task is to inject a command line argument such that function gets called, instead of function Include screenshots of the stack exploitation demonstration. #include
#include
#include
int functionint x int y int z
int resultfunc;
resultfunc x y z;
return resultfunc;
int functionint x int y char inputstring
int resultfunc;
char buffer;
strcpybuffer inputstring;
printfYour input string s is copied in the buffer
inputstring;
resultfunc x y;
return resultfunc;
void functionint result int result
printfThe result of function is d
result;
printfThe result of function is d
result;
void functionvoid
printfThis function never gets called
;
exit;
int mainint argc, char argv
int result;
int result;
result function;
result function argv;
functionresult result;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
