docs(lvl09): adding the readme
This commit is contained in:
parent
aec69f0c2b
commit
172d833b39
1 changed files with 43 additions and 0 deletions
43
level09/README.md
Normal file
43
level09/README.md
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
Lors de mon arriver sur le level09 je remarque un fichier level09
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ls -l
|
||||||
|
total 12
|
||||||
|
-rwsr-sr-x 1 flag09 level09 7640 Mar 5 2016 level09
|
||||||
|
----r--r-- 1 flag09 level09 26 Mar 5 2016 token
|
||||||
|
```
|
||||||
|
|
||||||
|
Token a plein de character illisible
|
||||||
|
```bash
|
||||||
|
cat token
|
||||||
|
f4kmm6p|=<3D>p<EFBFBD>n<EFBFBD><6E>DB<44>Du{<7B><>
|
||||||
|
```
|
||||||
|
|
||||||
|
Afin de recuperer les characteres
|
||||||
|
```bash
|
||||||
|
cat token | hexdump -C
|
||||||
|
00000000 66 34 6b 6d 6d 36 70 7c 3d 82 7f 70 82 6e 83 82 |f4kmm6p|=..p.n..|
|
||||||
|
00000010 44 42 83 44 75 7b 7f 8c 89 0a |DB.Du{....|
|
||||||
|
0000001a
|
||||||
|
```
|
||||||
|
|
||||||
|
Je pense que le binaire est donc le programme qui permet "d'encrypter" le fichier si c'est correct alors l'algorithme suivi est donc str\[i] + i
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./level09 aaa
|
||||||
|
abc
|
||||||
|
```
|
||||||
|
a + 0 = a
|
||||||
|
a + 1 = b
|
||||||
|
a + 2 = c
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./a.out
|
||||||
|
f3iji1ju5yuevaus41q1afiuq
|
||||||
|
```
|
||||||
|
|
||||||
|
Je tente de me connect sur flag09 et ca marche et j'obtient donc le flag:
|
||||||
|
```bash
|
||||||
|
getflag
|
||||||
|
Check flag.Here is your token : s5cajpm8ev6xhw998prwg728z
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue