diff options
| author | jerome <jerome@xlinfo.fr> | 2024-10-04 18:00:49 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2024-10-04 18:00:49 +0200 |
| commit | 30afbf0852b8821d023eb84d2c69979e2b6733e3 (patch) | |
| tree | 6ff94f997de5e294c802343b8904f643c82b1d6a /elf | |
| parent | ab03754617b30c830ce3d0324da7ef6b6887094e (diff) | |
| download | forensic-30afbf0852b8821d023eb84d2c69979e2b6733e3.tar.gz forensic-30afbf0852b8821d023eb84d2c69979e2b6733e3.zip | |
repertoire caché source bufferflow.c
Diffstat (limited to 'elf')
| -rw-r--r-- | elf/.cache/bufferflow.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/elf/.cache/bufferflow.c b/elf/.cache/bufferflow.c new file mode 100644 index 0000000..a0054c1 --- /dev/null +++ b/elf/.cache/bufferflow.c @@ -0,0 +1,28 @@ +#include <stdio.h> +#include <string.h> + +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; +} + |
