Advertisement
Guest User

finalcode

a guest
Sep 10th, 2016
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4.  
  5. int FuncionOBJETIVO()
  6. {
  7.     printf("Buffer Overflow con exito... :)\n\n");
  8. }
  9.  
  10. int Verificar()
  11. {
  12.     char buffer[15];
  13.     int iFlag;
  14.    
  15.     printf("Ingresar palabra clave: ");
  16.     scanf("%s", buffer);
  17.     iFlag=strcmp(buffer,"passw0rd");
  18.     if (iFlag == 0) {
  19.         FuncionOBJETIVO();
  20.     }
  21.     else {
  22.     printf ("Password Incorrecto\n");
  23. }
  24. }
  25.  
  26. int main()
  27. {
  28.     Verificar();
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement