Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include int main ( int argc, char * * argv ) { char buffer [ 6 4 ] ; gets ( buffer ) ; /

#include
int main(int argc, char **argv)
{
char buffer[64];
gets(buffer);
//strcpy(password, buffer);
if (strcmp(buffer, "pass123")==0)
{
printf("Access Granted!
");
}
else
{
printf("Access Denied!
");
}
return 0;
}
Above is a snippet of my code. With following being the question1. The C Program file (Task2_1.c) has been provided on AULA:
a. Exploit the vulnerability in the code (20 marks)
b. Explain the vulnerability by using reverse engineering techniques (10 marks)
c. Provide a solution to the vulnerability (10 marks)s.

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions