C+ Vulnerabilities

Begin Learning Cyber Security for FREE Now!

Already a Member Login Here

Background: Scott is a C programmer. He develops the following C program:

#include <stdlib.h>#include <stdio.h>#include <string.h> int buffer(char *str) { char buffer1[10]; strcpy(buffer1, str); return 1;} int main(int argc, char *argv[]) { buffer (argv[1]); printf(“Executed\n”); return 1;}

Q: What kind attack does Scott’s program have little to no protection against?

a. SQL injection

b. Cross site scripting

c. Denial-of-Service

d. Buffer overflow

View Topics

Our Revolution

We believe Cyber Security training should accessible for everyone, everywhere. Everyone deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is the world's largest community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

We recommend always using caution when following any link

Are you sure you want to continue?