docs(lvl13): adding the english readme
This commit is contained in:
parent
22cbba27fe
commit
63b373efde
1 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
ls -l 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
|
||||
ltrace ./level13
|
||||
__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
|
||||
exit(1 <unfinished ...>
|
||||
+++ exited (status 1) +++
|
||||
|
||||
```
|
||||
|
||||
en le lancant (plus proprement), il attente l'UID 4242
|
||||
By launching it (more cleanly), it expects the UID 4242.
|
||||
```bash
|
||||
level13@SnowCrash:~$ ./level13
|
||||
./level13
|
||||
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
|
||||
0804858c <main>:
|
||||
804858c: 55 push ebp
|
||||
|
|
@ -59,13 +59,13 @@ Voici le code de la fonction main
|
|||
80485ef: 90 nop
|
||||
```
|
||||
|
||||
Notamment cette ligne (7) qui vas nous interesser
|
||||
Notably this line (7) which will interest us.
|
||||
```asm
|
||||
804859a: cmp eax,0x1092
|
||||
```
|
||||
|
||||
0x1092 = 0d4242
|
||||
il suffit de changer la valeur de notre uid lors de la comparaison (a l'aide de gdb)
|
||||
0x1092 = 0d4242.
|
||||
It is enough to change the value of our uid during the comparison (with the help of gdb).
|
||||
```asm
|
||||
(gdb) b main
|
||||
Breakpoint 1 at 0x804858f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue