c programming help

Anonymous
timer Asked: Nov 11th, 2016

Question description

1. Write a program that demonstrates the use of format strings for output functions. It should be a suitable example for an introductory programming course.

2. Write a program that has a format string flaw. Exploit the flaw to return the value of an unrelated variable. Using this program, exploit the flaw and modify the value of the unrelated variable. Show how to control the result.

3. Create a web application that uses a MySQL database backend. Demonstrate it. Next, create a web application that uses a MySQL database backend that suffers from a SQL injection vulnerability. Demonstrate it. Correct the flaw in the previous problem by correctly sanitizing the input.

4. Write a PHP script that suffers from a cross-site scripting vulnerability that can be exploited by a malicious link. Exploit the vulnerability to show a forged web page. Modify the previous script so that it retains the same functionality, but no longer suffers from a cross site scripting flaw.



put each question answer in one folder and put all the four folders in zip file

Tutor Answer

(Top Tutor) Studypool Tutor
School: Carnegie Mellon University
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors