docs(lvl13): adding the english readme

This commit is contained in:
Raphael 2026-01-29 12:54:20 +01:00
parent 22cbba27fe
commit 63b373efde
No known key found for this signature in database

View file

@ -1,11 +1,11 @@
Lors de l'arriver sur le level13 je remarque le fichier level13 When arriving on level13 I notice the file level13.
```bash ```bash
ls -l level13 ls -l level13
-rwsr-sr-x 1 flag13 level13 7303 Aug 30 2015 level13 -rwsr-sr-x 1 flag13 level13 7303 Aug 30 2015 level13
``` ```
Et je remarque egallement que c'est du C And I also notice that it is C.
```c ```c
ltrace ./level13 ltrace ./level13
__libc_start_main(0x804858c, 1, 0xbffff7f4, 0x80485f0, 0x8048660 <unfinished ...> __libc_start_main(0x804858c, 1, 0xbffff7f4, 0x80485f0, 0x8048660 <unfinished ...>
@ -15,16 +15,16 @@ printf("UID %d started us but we we expe"..., 2013UID 2013 started us but we we
) = 42 ) = 42
exit(1 <unfinished ...> exit(1 <unfinished ...>
+++ exited (status 1) +++ +++ exited (status 1) +++
``` ```
en le lancant (plus proprement), il attente l'UID 4242 By launching it (more cleanly), it expects the UID 4242.
```bash ```bash
level13@SnowCrash:~$ ./level13 ./level13
UID 2013 started us but we we expect 4242 UID 2013 started us but we we expect 4242
``` ```
Voici le code de la fonction main Here is the code of the main function.
```asm ```asm
0804858c <main>: 0804858c <main>:
804858c: 55 push ebp 804858c: 55 push ebp
@ -59,13 +59,13 @@ Voici le code de la fonction main
80485ef: 90 nop 80485ef: 90 nop
``` ```
Notamment cette ligne (7) qui vas nous interesser Notably this line (7) which will interest us.
```asm ```asm
804859a: cmp eax,0x1092 804859a: cmp eax,0x1092
``` ```
0x1092 = 0d4242 0x1092 = 0d4242.
il suffit de changer la valeur de notre uid lors de la comparaison (a l'aide de gdb) It is enough to change the value of our uid during the comparison (with the help of gdb).
```asm ```asm
(gdb) b main (gdb) b main
Breakpoint 1 at 0x804858f Breakpoint 1 at 0x804858f