From 2c5b490a0183d08c480e6661ed57bb338ff146bf Mon Sep 17 00:00:00 2001 From: jerome Date: Mon, 7 Oct 2024 17:03:44 +0200 Subject: bufferflow.c --- elf/bufferflow.c | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 elf/bufferflow.c (limited to 'elf') diff --git a/elf/bufferflow.c b/elf/bufferflow.c deleted file mode 100644 index 924c3ae..0000000 --- a/elf/bufferflow.c +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include - -int main(void) -{ - int pass=0; - char buff[10]; - - printf("\nDonne le mot de passe pour avoir le flag : \n"); - scanf("%s",buff); - - if(!strcmp(buff,"s3cr3t")) - { - pass = 1; - } - - if(pass) - { - printf ("\nBien joué !\nVoilà ton flag\n"); - } - else - { - printf("\nMauvais mot de passe.\nBye\n"); - } - - return 0; -} - -- cgit v1.2.3