Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int FuncionOBJETIVO()
- {
- printf("Buffer Overflow con exito... :)\n\n");
- }
- int Verificar()
- {
- char buffer[15];
- int iFlag;
- printf("Ingresar palabra clave: ");
- scanf("%s", buffer);
- iFlag=strcmp(buffer,"passw0rd");
- if (iFlag == 0) {
- FuncionOBJETIVO();
- }
- else {
- printf ("Password Incorrecto\n");
- }
- }
- int main()
- {
- Verificar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement