Question: please complete the first and second problem if not both one works Problem 2 (1.5 points). Given the stack of the program (string-vul.c), which we

please complete the first and second problem if not both one works
Problem 2 (1.5 points). Given the stack of the program (string-vul.c), which we discussed in our lectures and has format string vulnerability, assume we know the address of int var starts from Oxbffff308 and the value of it is Ox11223344. %.8x%.8x%.8x%n Oxbffff300 var: 0x11223344 4 bytes Oxbffff308 Oxbfffecte 4 bytes 4 bytes Oxbff0b5ff Oxb7fba5a0 4 bytes Ox64 4 bytes va_list pointer starts here Address format string Fig. 1. Stack of the program string-vul.c. If we run the following commands to write a format string into a file named input and run the program by reading the file, what will happen? $echo $(printf "\x00\xf3\xff\xbf")\%.8x\%. 8x\%. 8x\%n > input $string-vul input $string-vul
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
