Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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-vulStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started