Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

How to solve maths problems with examples

Answered: 1 week ago

Question

1. Design an effective socialization program for employees.

Answered: 1 week ago